MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch02.CompanionLearning

theorem MindFormal.companion_feedback_integral {η τ Q a b : ℝ} {h h' : ℝ → ℝ} (hh : ∀ (t : ℝ), HasDerivAt h (h' t) t) (hh' : Continuous h') :
∫ (t : ℝ) in a..b, -η * Q * h t * (h' t - h t / τ) = η * Q * shockFeedback τ h b a

The complete coefficient, including the derivative of presence, has exactly the accumulated feedback in (16.2).

theorem MindFormal.companion_linear_identification {η τ Q H : ℝ} {h h' R z : ℝ → ℝ} (hH : 0 ≤ H) (hh : ∀ (t : ℝ), HasDerivAt h (h' t) t) (hh' : Continuous h') (hR : IntervalIntegrable R MeasureTheory.volume 0 H) (hz : Continuous z) (heq : ∀ t ∈ Set.Icc 0 H, z t = ∫ (s : ℝ) in 0..t, η * h s * (R s + Q * (h' s - h s / τ) * z s)) :
z H = learnedFactor η τ h R H Q

A solution of the stated scalar comparison equation is identified with the quadrature, even when the shock delivery is only integrable.

theorem MindFormal.companion_linear_lipschitz {D : Type u_1} [Fintype D] (γ v w : D → ℝ) {η h h' τ R L : ℝ} (hL : ∀ (i : D), ∑ j : D, |η * h * (h' - h / τ) * γ i * γ j| ≤ L) (i : D) :
|η * h * γ i * (R + (h' - h / τ) * ∑ j : D, γ j * v j) - η * h * γ i * (R + (h' - h / τ) * ∑ j : D, γ j * w j)| ≤ L * ‖v - w‖

The rank-one linear drift is Lipschitz in the maximum norm with its row-sum bound, retaining every reference-eligible cue.

theorem MindFormal.finite_drift_comparison {D : Type u_1} [Fintype D] {H e0 b d L : ℝ} (hH : 0 ≤ H) (hd : 0 ≤ d) (hL : 0 ≤ L) (v w M F K : ℝ → D → ℝ) (hv : Continuous v) (hw : Continuous w) (hF : ∀ (i : D), IntervalIntegrable (fun (t : ℝ) => F t i) MeasureTheory.volume 0 H) (hK : ∀ (i : D), IntervalIntegrable (fun (t : ℝ) => K t i) MeasureTheory.volume 0 H) (hvEq : ∀ t ∈ Set.Icc 0 H, ∀ (i : D), v t i = (v 0 i + ∫ (s : ℝ) in 0..t, F s i) + M t i) (hwEq : ∀ t ∈ Set.Icc 0 H, ∀ (i : D), w t i = w 0 i + ∫ (s : ℝ) in 0..t, K s i) (h0 : ‖v 0 - w 0‖ ≤ e0) (hM : ∀ t ∈ Set.Icc 0 H, ‖M t‖ ≤ b) (hdef : ∀ t ∈ Set.Icc 0 H, ∀ (i : D), |F t i - K t i| ≤ d + L * ‖v t - w t‖) (t : ℝ) :
t ∈ Set.Icc 0 H → ‖v t - w t‖ ≤ (e0 + b + H * d) * Real.exp (L * H)

Integrated finite-dimensional Grönwall with a continuous innovation. The reference equation is the mathematical comparison being asked about; the defect is between the complete drift and that comparison at the same value. No estimate of a solved noisy path is assumed.

theorem MindFormal.companion_vector_equation {D : Type u_1} [Fintype D] (γ : D → ℝ) {η τ H : ℝ} {h h' R z : ℝ → ℝ} (heq : ∀ t ∈ Set.Icc 0 H, z t = ∫ (s : ℝ) in 0..t, η * h s * (R s + (∑ j : D, γ j ^ 2) * (h' s - h s / τ) * z s)) (t : ℝ) :
t ∈ Set.Icc 0 H → ∀ (i : D), γ i * z t = ∫ (s : ℝ) in 0..t, η * h s * γ i * (R s + (h' s - h s / τ) * ∑ j : D, γ j * (γ j * z s))

The vector p z solves the reference linear equation (16.1), with all eligible contexts in Q. This is an identity of the mathematical comparison.

theorem MindFormal.companion_value_run {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (b : Fin n) (a : T) (γ : Fin N → ℝ) {H e0 bv dv Lv : ℝ} {h h' R z : ℝ → ℝ} (hH : 0 ≤ H) (he0 : 0 ≤ e0) (hb : 0 ≤ bv) (hdv : 0 ≤ dv) (hLv : 0 ≤ Lv) (hh : ∀ (t : ℝ), HasDerivAt h (h' t) t) (hh' : Continuous h') (hR : IntervalIntegrable R MeasureTheory.volume 0 H) (hz : Continuous z) (hzEq : ∀ t ∈ Set.Icc 0 H, z t = ∫ (s : ℝ) in 0..t, G.data.η b * h s * (R s + (∑ j : Fin N, γ j ^ 2) * (h' s - h s / G.data.τ a) * z s)) (hstart : ∀ (i : Fin N), |mindValue (G.state 0) i b a| ≤ e0) (hnoise : ∀ t ∈ Set.Icc 0 H, ∀ (i : Fin N), |G.driver t.toNNReal (Sum.inr (Sum.inr (Sum.inl (i, b, a))))| ≤ bv) (hrow : ∀ t ∈ Set.Icc 0 H, ∀ (i : Fin N), ∑ j : Fin N, |G.data.η b * h t * (h' t - h t / G.data.τ a) * γ i * γ j| ≤ Lv) (hdefect : ∀ t ∈ Set.Icc 0 H, ∀ (i : Fin N), |assembledDrift G.data (G.input t) (G.pulse t) (G.state t) (Sum.inr (Sum.inr (Sum.inl (i, b, a)))) - G.data.η b * h t * γ i * (R t + (h' t - h t / G.data.τ a) * ∑ j : Fin N, γ j * mindValue (G.state t) j b a)| ≤ dv) :
z H = learnedFactor (G.data.η b) (G.data.τ a) h R H (∑ j : Fin N, γ j ^ 2) ∧ ∀ t ∈ Set.Icc 0 H, ∀ (i : Fin N), |mindValue (G.state t) i b a - γ i * z t| ≤ (e0 + bv + H * dv) * Real.exp (Lv * H)

(16.4) on the actual complete run, with a reference solution of the stated linear equation. The full III defect is priced at the same value, and every component of the actual value innovation is charged.