MindFormal v1.0.0One Mind

MindFormal.Example.LeadConfidence.WriterCoefficients

theorem MindFormal.LeadConfidence.structural_writer_bound {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (s : MindState (Fin N) n T Λ) (u q : Fin N → ℝ) {C e M W X : ℝ} (hC : 0 ≤ C) (hW : 0 ≤ W) (hX : 0 ≤ X) (hβ : d.β ∈ Set.Icc 0 1) (hp : ∀ (j : Fin N), |d.presence (mindTrace s j)| ≤ C) (hx : ∀ (j : Fin N), |mindActivity s j| ≤ X) (hw : ∀ (i j : Fin N), |mindRelation s i j| ≤ W) (hd : ∀ (i : Fin N), |d.drive (u i) (q i) (mindValue s i)| ≤ e) (hm : |d.gain fun (a : T) (b : Fin n) => |assembledResidual d u s a b|| ≤ M) (i j : Fin N) :
|assembledDrift d u q s (Sum.inl (i, j))| ≤ M * ((1 - d.β) * C * (e + ↑N * W * X) + d.β * X * (C + W))

The full structural bracket gives exactly OC1.13's coefficient bound. The signed learned row, complete pool of senders and gain all remain present.

theorem MindFormal.LeadConfidence.value_writer_bound {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (s : MindState (Fin N) n T Λ) (u q : Fin N → ℝ) {C R : ℝ} (hC : 0 ≤ C) (i : Fin N) (b : Fin n) (τ : T) (hp : |d.presence (mindTrace s i)| ≤ C) (hr : |d.response (assembledResidual d u s τ) b| ≤ R) :
|assembledDrift d u q s (Sum.inr (Sum.inr (Sum.inl (i, b, τ))))| ≤ C * |d.η b| * R

Every value coordinate keeps its own rate and the complete vector surprise response. This is the coefficient bound used before box closure.

theorem MindFormal.LeadConfidence.relation_input_error {N : ℕ} (W W₀ x x₀ eW ex : Fin N → ℝ) {X : ℝ} (hW : ∀ (j : Fin N), |W j - W₀ j| ≤ eW j) (hx : ∀ (j : Fin N), |x j| ≤ X) (hdx : ∀ (j : Fin N), |x j - x₀ j| ≤ ex j) :
|∑ j : Fin N, W j * x j - ∑ j : Fin N, W₀ j * x₀ j| ≤ ∑ j : Fin N, (eW j * X + |W₀ j| * ex j)

The source's support-error calculation pays all changing bank entries and all receiver supports, before normalization by the complete pool.