MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch07.PracticeCorners

Derive the held-pattern scalar clock from the full verified II row. The logarithmic readings and threshold inversions are comparisons only.

theorem MindFormal.PracticeCorners.scalar {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) (C x : Fin N → ℝ) (e m : ℝ) (z : ℝ → ℝ) {t : ℝ} (ht : 0 ≤ t) (hH : t ≤ ↑H) (hCj : C j ≠ 0) (h_presence : ∀ w ∈ Set.Icc 0 t, ∀ (k : Fin N), d.presence (mindTrace (↑(R.realPath w)) k) = C k) (h_activity : ∀ w ∈ Set.Icc 0 t, ∀ (k : Fin N), mindActivity (↑(R.realPath w)) k = x k) (h_drive : ∀ w ∈ Set.Icc 0 t, d.drive (R.input w i) (R.mode w i) (mindValue (↑(R.realPath w)) i) = e) (h_gain : ∀ w ∈ Set.Icc 0 t, currentGain d (R.input w) ↑(R.realPath w) = m) (h_projection : ∀ w ∈ Set.Icc 0 t, ∀ (k : Fin N), mindRelation (↑(R.realPath w)) i k = z w * C k) (h_rate : m * (d.β * x i + (1 - d.β) * ∑ k : Fin N, C k * x k) ≠ 0) :
have rate := m * (d.β * x i + (1 - d.β) * ∑ k : Fin N, C k * x k); have root := m * ((1 - d.β) * e + d.β * x i) / rate; z t = root + (z 0 - root) * Real.exp (-rate * t)