MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch07.Landscape

RC4 paragraph 2: a learning landscape and the circulation of the average write. A continuous 1-form ฯ‰ on an open connected set U is exact (ฯ‰ = dV on U) exactly when its integral around every closed polygon in U is zero; and an exact form has zero integral around every closed piecewise smooth curve in U. With a metric ๐–ฆ the average write b is a landscape b = -๐–ฆโˆ‡V exactly when the 1-form -๐–ฆโปยนbยทdZ is exact; for a family of averages indexed by preparations, one landscape for all exactly when the family is a single function of the learned state (closure) whose form has zero circulation.

inductive MindFormal.PolygonIn {E : Type u_1} [NormedAddCommGroup E] [NormedSpace โ„ E] (U : Set E) {a b : E} :
Path a b โ†’ Prop

RC4: a path in U built from segments in U by concatenation and reversal (a polygon).

Instances For
    inductive MindFormal.PieceSmoothIn {E : Type u_1} [NormedAddCommGroup E] [NormedSpace โ„ E] (ฯ‰ : E โ†’ E โ†’L[โ„] โ„) (U : Set E) {a b : E} :
    Path a b โ†’ Prop

    RC4: a path in U built by concatenation and reversal from pieces in U that are differentiable at every interior time and along which ฯ‰ is integrable (a piecewise smooth curve).

    Instances For
      theorem MindFormal.PolygonIn.integrable {E : Type u_1} [NormedAddCommGroup E] [NormedSpace โ„ E] {U : Set E} {ฯ‰ : E โ†’ E โ†’L[โ„] โ„} (hฯ‰ : ContinuousOn ฯ‰ U) {a b : E} {ฮณ : Path a b} (h : PolygonIn U ฮณ) :
      CurveIntegrable ฯ‰ ฮณ
      theorem MindFormal.curveIntegral_segment_exact {E : Type u_1} [NormedAddCommGroup E] [NormedSpace โ„ E] {U : Set E} {ฯ‰ : E โ†’ E โ†’L[โ„] โ„} (hฯ‰ : ContinuousOn ฯ‰ U) {V : E โ†’ โ„} (hV : โˆ€ z โˆˆ U, HasFDerivAt V (ฯ‰ z) z) {a b : E} (hs : segment โ„ a b โІ U) :
      โˆซแถœ (x : E) in Path.segment a b, ฯ‰ x = V b - V a

      RC4: along a segment in U on which V has derivative ฯ‰, the integral of ฯ‰ is V b - V a.

      theorem MindFormal.curveIntegral_polygon_exact {E : Type u_1} [NormedAddCommGroup E] [NormedSpace โ„ E] {U : Set E} {ฯ‰ : E โ†’ E โ†’L[โ„] โ„} (hฯ‰ : ContinuousOn ฯ‰ U) {V : E โ†’ โ„} (hV : โˆ€ z โˆˆ U, HasFDerivAt V (ฯ‰ z) z) {a b : E} {ฮณ : Path a b} (h : PolygonIn U ฮณ) :
      โˆซแถœ (x : E) in ฮณ, ฯ‰ x = V b - V a

      RC4: an exact form integrates along every polygon in U to the potential's difference.

      theorem MindFormal.curveIntegral_pieceSmooth_exact {E : Type u_1} [NormedAddCommGroup E] [NormedSpace โ„ E] {U : Set E} {ฯ‰ : E โ†’ E โ†’L[โ„] โ„} {V : E โ†’ โ„} (hV : โˆ€ z โˆˆ U, HasFDerivAt V (ฯ‰ z) z) {a b : E} {ฮณ : Path a b} (h : PieceSmoothIn ฯ‰ U ฮณ) :
      CurveIntegrable ฯ‰ ฮณ โˆง โˆซแถœ (x : E) in ฮณ, ฯ‰ x = V b - V a

      RC4: an exact form integrates along every piecewise smooth curve in U, its pieces differentiable inside, to the potential's difference.

      theorem MindFormal.exact_of_polygon_circulation {E : Type u_1} [NormedAddCommGroup E] [NormedSpace โ„ E] {U : Set E} (hU : IsOpen U) (hUc : IsConnected U) {ฯ‰ : E โ†’ E โ†’L[โ„] โ„} (hฯ‰ : ContinuousOn ฯ‰ U) (hcirc : โˆ€ (a : E) (ฮณ : Path a a), PolygonIn U ฮณ โ†’ โˆซแถœ (x : E) in ฮณ, ฯ‰ x = 0) :
      โˆƒ (V : E โ†’ โ„), โˆ€ z โˆˆ U, HasFDerivAt V (ฯ‰ z) z

      RC4: if every closed polygon in an open connected U has zero integral of a continuous ฯ‰, then ฯ‰ is exact on U: some V has derivative ฯ‰ at every point of U.

      def MindFormal.writeForm {k : โ„•} (G : (Fin k โ†’ โ„) โ‰ƒL[โ„] Fin k โ†’ โ„) (b : (Fin k โ†’ โ„) โ†’ Fin k โ†’ โ„) (Z : Fin k โ†’ โ„) :

      RC4: the 1-form -๐–ฆโปยนbยทdZ of an average write b with metric ๐–ฆ (an invertible map).

      Equations
      Instances For
        def MindFormal.IsLandscape {k : โ„•} (G : (Fin k โ†’ โ„) โ‰ƒL[โ„] Fin k โ†’ โ„) (b : (Fin k โ†’ โ„) โ†’ Fin k โ†’ โ„) (U : Set (Fin k โ†’ โ„)) (V : (Fin k โ†’ โ„) โ†’ โ„) :

        RC4: b is a landscape on U with metric ๐–ฆ and potential V: V is differentiable at every point of U and b = -๐–ฆโˆ‡V there, โˆ‡V the coordinate gradient.

        Equations
        Instances For
          theorem MindFormal.clm_eq_of_single {k : โ„•} {L L' : (Fin k โ†’ โ„) โ†’L[โ„] โ„} (h : โˆ€ (j : Fin k), L (Pi.single j 1) = L' (Pi.single j 1)) :
          L = L'
          theorem MindFormal.writeForm_single {k : โ„•} (G : (Fin k โ†’ โ„) โ‰ƒL[โ„] Fin k โ†’ โ„) (b : (Fin k โ†’ โ„) โ†’ Fin k โ†’ โ„) (Z : Fin k โ†’ โ„) (j : Fin k) :
          (writeForm G b Z) (Pi.single j 1) = -G.symm (b Z) j
          theorem MindFormal.isLandscape_iff {k : โ„•} (G : (Fin k โ†’ โ„) โ‰ƒL[โ„] Fin k โ†’ โ„) (b : (Fin k โ†’ โ„) โ†’ Fin k โ†’ โ„) (U : Set (Fin k โ†’ โ„)) (V : (Fin k โ†’ โ„) โ†’ โ„) :
          IsLandscape G b U V โ†” โˆ€ Z โˆˆ U, HasFDerivAt V (writeForm G b Z) Z

          RC4: a landscape with metric ๐–ฆ and potential V is exactly V having derivative -๐–ฆโปยนbยทdZ at every point of U.

          theorem MindFormal.writeForm_continuousOn {k : โ„•} (G : (Fin k โ†’ โ„) โ‰ƒL[โ„] Fin k โ†’ โ„) {b : (Fin k โ†’ โ„) โ†’ Fin k โ†’ โ„} {U : Set (Fin k โ†’ โ„)} (hb : ContinuousOn b U) :
          theorem MindFormal.landscape_iff_closure_circulation {k : โ„•} {ฮน : Type u_1} [Nonempty ฮน] (G : (Fin k โ†’ โ„) โ‰ƒL[โ„] Fin k โ†’ โ„) (bfam : ฮน โ†’ (Fin k โ†’ โ„) โ†’ Fin k โ†’ โ„) (U : Set (Fin k โ†’ โ„)) (hU : IsOpen U) (hUc : IsConnected U) (hb : โˆ€ (ฯ : ฮน), ContinuousOn (bfam ฯ) U) :
          ((โˆƒ (V : (Fin k โ†’ โ„) โ†’ โ„), โˆ€ (ฯ : ฮน), IsLandscape G (bfam ฯ) U V) โ†” โˆƒ (bbar : (Fin k โ†’ โ„) โ†’ Fin k โ†’ โ„), (โˆ€ (ฯ : ฮน), โˆ€ Z โˆˆ U, bfam ฯ Z = bbar Z) โˆง โˆ€ (a : Fin k โ†’ โ„) (ฮณ : Path a a), PolygonIn U ฮณ โ†’ โˆซแถœ (x : Fin k โ†’ โ„) in ฮณ, writeForm G bbar x = 0) โˆง โˆ€ (V : (Fin k โ†’ โ„) โ†’ โ„), (โˆ€ (ฯ : ฮน), IsLandscape G (bfam ฯ) U V) โ†’ โˆ€ (ฯ : ฮน) (a : Fin k โ†’ โ„) (ฮณ : Path a a), PieceSmoothIn (writeForm G (bfam ฯ)) U ฮณ โ†’ โˆซแถœ (x : Fin k โ†’ โ„) in ฮณ, writeForm G (bfam ฯ) x = 0

          RC4 (paragraph 2): for a family of average writes indexed by preparations, one landscape for all exactly when the family is one function of the learned state on U (closure) whose metric-weighted write has zero circulation around every closed polygon in U; a landscape's write then has zero circulation around every closed piecewise smooth curve in U.