MindFormal v1.0.0One Mind

MindFormal.Run.WritingVariation

ORDER O01 additive module. The exact variation-of-constants identity (HW2) for one directed relation, on a verified continuing reference and on the actual constructed run. The accumulated loss is the integral of the actual loss rate; its integrability is derived from the bounded gain and the measurable input.

theorem MindFormal.linear_variation {t W0 : ℝ} (ht : 0 ≤ t) (w ξ μ F : ℝ → ℝ) (hμ : IntervalIntegrable μ MeasureTheory.volume 0 t) (hF : IntervalIntegrable F MeasureTheory.volume 0 t) (hwc : Continuous w) (hξc : Continuous ξ) (hw : ∀ s ∈ Set.Icc 0 t, w s = (W0 + ∫ (u : ℝ) in 0..s, F u - μ u * w u) + ξ s) :
w t = Real.exp (-∫ (u : ℝ) in 0..t, μ u) * ((W0 + ∫ (s : ℝ) in 0..t, Real.exp (∫ (u : ℝ) in 0..s, μ u) * F s) + (Real.exp (∫ (u : ℝ) in 0..t, μ u) * ξ t - ∫ (s : ℝ) in 0..t, Real.exp (∫ (u : ℝ) in 0..s, μ u) * μ s * ξ s))

05.26 (HW2): for a scalar path whose free part w-ξ is the start plus the integral of F-μw, with μ and F integrable on [0,t] and ξ continuous with ξ(0)=0, the path is e^{-V(t)}(w(0)+∫e^{V}F+[e^{V(t)}ξ(t)-∫e^{V}μξ]) with V the integral of μ; the bracket is the integration-by-parts value of ∫e^{V}dξ.

theorem MindFormal.extendMindData_gain_eq {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] [Finite T] (d : MindDriftData (Fin N) n T Λ) (u : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (hu : 0 ≤ u) (hr : ∀ (i : Fin N), 0 ≤ mindTrace s i) :
((extendMindData d).gain fun (a : T) (b : Fin n) => |assembledResidual (extendMindData d) u s a b|) = d.gain fun (a : T) (b : Fin n) => |assembledResidual d u s a b|

05.26 (HW2): on nonnegative inputs and traces the positive-part extension leaves the complete III residual, and hence the common write gain, unchanged.

theorem MindFormal.extended_gain_continuous {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (hd : PhysicalCoefficientRegularity d) :
Continuous fun (p : (Fin N → ℝ) × MindState (Fin N) n T Λ) => (extendMindData d).gain fun (a : T) (b : Fin n) => |assembledResidual (extendMindData d) p.1 p.2 a b|

05.26 (HW2): for physical coefficient data, the extended residual-gain map is continuous in the input array and the full state.

theorem MindFormal.gain_path_integrable {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (hd : PhysicalCoefficientRegularity d) {a b : ℝ} (hab : a ≤ b) (u : ℝ → Fin N → ℝ) (hu : Measurable u) (hun : ∀ s ∈ Set.Icc a b, 0 ≤ u s) (x : ℝ → MindState (Fin N) n T Λ) (hx : Continuous x) (hxr : ∀ s ∈ Set.Icc a b, ∀ (i : Fin N), 0 ≤ mindTrace (x s) i) (g : ℝ → ℝ) (hg : Continuous g) :
IntervalIntegrable (fun (s : ℝ) => (d.gain fun (a' : T) (b' : Fin n) => |assembledResidual d (u s) (x s) a' b'|) * g s) MeasureTheory.volume a b

05.26 (HW2): along any measurable nonnegative input and continuous state path with nonnegative traces on [a,b], the common write gain times a continuous function is interval integrable there; the gain is bounded and measurable.

def MindFormal.writerLoss (β m cj xj xi : ℝ) :

05.26 (HW1): the loss rate μ_ij=M[(1-β)c_j x_j+βx_i] of one relation.

Equations
Instances For
    def MindFormal.writerForcing (β m cj ei Sij xi : ℝ) :

    05.26 (HW1): the forcing F_ij=M c_j[(1-β)(e_i-S_ij)+βx_i] of one relation, with S_ij the prediction from every other sender.

    Equations
    Instances For
      theorem MindFormal.assembled_writer_forcing_loss {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (i j : Fin N) :
      assembledDrift d u q s (Sum.inl (i, j)) = writerForcing d.β (d.gain fun (a : T) (b : Fin n) => |assembledResidual d u s a b|) (d.presence (mindTrace s j)) (d.drive (u i) (q i) (mindValue s i)) (∑ l ∈ Finset.univ.erase j, mindRelation s i l * mindActivity s l) (mindActivity s i) - writerLoss d.β (d.gain fun (a : T) (b : Fin n) => |assembledResidual d u s a b|) (d.presence (mindTrace s j)) (mindActivity s j) (mindActivity s i) * mindRelation s i j

      05.26 (HW1): every complete Equation II drift is forcing minus loss rate times the relation, F_ij-μ_ijW_ij, with S_ij summing all other senders.

      theorem MindFormal.learningReference_relation {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (i j : Fin N) {t : ℝ} (ht0 : 0 ≤ t) (htH : t ≤ ↑H) :

      05.26 (HW2): on a verified continuing reference, the coordinate of relation (i,j) is its start plus the integral of its complete drift coordinate.

      theorem MindFormal.presence_path_continuous {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (hd : PhysicalCoefficientRegularity d) (x : ℝ → MindState (Fin N) n T Λ) (hx : Continuous x) (hxr : ∀ (s : ℝ) (i : Fin N), 0 ≤ mindTrace (x s) i) (j : Fin N) :
      Continuous fun (s : ℝ) => d.presence (mindTrace (x s) j)

      05.26 (HW2): along a path whose traces are nonnegative at every time, the sender presence c(r_j) is continuous in time.