MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch08.DirectValueBounds

Coefficient estimates for (25), before any native noise/event assembly. All contributors to the scalar residual are included. In particular, the derivative term lambda*x is retained when activity is not quiet.

def MindFormal.DirectValueBounds.writer {I : Type u_1} [Fintype I] (eta K : ℝ) (r gamma v : I → ℝ) (i : I) :
Equations
Instances For
    theorem MindFormal.DirectValueBounds.writer_split {I : Type u_1} [Fintype I] (eta K : ℝ) (r rb gamma gb v vb : I → ℝ) (i : I) :
    writer eta K r gamma v i - writer eta K rb gb vb i = eta * r i * ∑ j : I, gamma j * (v j - vb j) + eta * (r i - rb i) * (K + ∑ j : I, gb j * vb j) + eta * r i * ∑ j : I, (gamma j - gb j) * vb j

    Splitting at the continuing reference bank retains the complete moving-presence residual, without freezing another content's learning.

    theorem MindFormal.DirectValueBounds.gamma_error {lam a X P x r rb : ℝ} (hlam : 0 ≤ lam) (ha : lam ≤ a) (hXP : X ≤ P) (hx : x ∈ Set.Icc 0 X) (hr : r ∈ Set.Icc 0 P) (hd : r - rb ∈ Set.Icc 0 X) :
    |lam * x - a * r| ≤ a * P ∧ |lam * x - a * r - -a * rb| ≤ a * X

    The cancellation in lambdax-a(r-rbar) gives a*X, rather than (lambda+a)*X. This is needed for the printed direct value budget.

    theorem MindFormal.DirectValueBounds.sum_product_bound {I : Type u_1} [Fintype I] (a v : I → ℝ) {A V : ℝ} (hA : 0 ≤ A) (hv : ∀ (j : I), |v j| ≤ V) (ha : ∀ (j : I), |a j| ≤ A) :
    |∑ j : I, a j * v j| ≤ ↑(Fintype.card I) * A * V
    theorem MindFormal.DirectValueBounds.linear_error_bound {I : Type u_1} [Fintype I] (eta : ℝ) (r gamma v vb : I → ℝ) (i : I) {P A : ℝ} (heta : 0 ≤ eta) (hP : 0 ≤ P) (hA : 0 ≤ A) (hr : |r i| ≤ P) (hg : ∀ (j : I), |gamma j| ≤ A * P) :
    |eta * r i * ∑ j : I, gamma j * (v j - vb j)| ≤ eta * ↑(Fintype.card I) * A * P ^ 2 * ‖v - vb‖

    The value-dependent part of the error has exactly the source's finite-content Lipschitz constant etamaP^2 when |gamma|<=aP.

    theorem MindFormal.DirectValueBounds.coefficient_error_bound {I : Type u_1} [Fintype I] (eta K : ℝ) (r rb gamma gb vb : I → ℝ) (i : I) {P F X A V Kmax : ℝ} (heta : 0 ≤ eta) (hP : 0 ≤ P) (hF : 0 ≤ F) (hX : 0 ≤ X) (hA : 0 ≤ A) (hr : |r i| ≤ P) (hdr : |r i - rb i| ≤ X) (hK : |K| ≤ Kmax) (hgb : ∀ (j : I), |gb j| ≤ A * F) (hdg : ∀ (j : I), |gamma j - gb j| ≤ A * X) (hvb : ∀ (j : I), |vb j| ≤ V) :
    |eta * (r i - rb i) * (K + ∑ j : I, gb j * vb j) + eta * r i * ∑ j : I, (gamma j - gb j) * vb j| ≤ eta * X * (Kmax + ↑(Fintype.card I) * A * (F + P) * V)

    Expanding both coefficient differences yields (25)'s forcing constant. The reference gamma=-a*rbar is bounded separately; its bank continues to learn and is only enclosed by the declared V.

    theorem MindFormal.DirectValueBounds.writer_error_bound {I : Type u_1} [Fintype I] (eta K : ℝ) (r rb gamma gb v vb : I → ℝ) (i : I) {P F X A V Kmax : ℝ} (heta : 0 ≤ eta) (hP : 0 ≤ P) (hF : 0 ≤ F) (hX : 0 ≤ X) (hA : 0 ≤ A) (hr : |r i| ≤ P) (hdr : |r i - rb i| ≤ X) (hK : |K| ≤ Kmax) (hg : ∀ (j : I), |gamma j| ≤ A * P) (hgb : ∀ (j : I), |gb j| ≤ A * F) (hdg : ∀ (j : I), |gamma j - gb j| ≤ A * X) (hvb : ∀ (j : I), |vb j| ≤ V) :
    |writer eta K r gamma v i - writer eta K rb gb vb i| ≤ eta * ↑(Fintype.card I) * A * P ^ 2 * ‖v - vb‖ + eta * X * (Kmax + ↑(Fintype.card I) * A * (F + P) * V)

    A complete coefficient enclosure gives the full value drift error, including the moving activity derivative, every donor and both error terms.

    theorem MindFormal.DirectValueBounds.value_gronwall {I : Type u_1} [Fintype I] {H z D L : ℝ} {e : ℝ → I → ℝ} (hz : 0 ≤ z) (hD : 0 ≤ D) (hL : 0 ≤ L) (he : Continuous e) (h : ∀ t ∈ Set.Icc 0 H, ‖e t‖ ≤ z + D + L * ∫ (s : ℝ) in 0..t, ‖e s‖) (t : ℝ) :
    t ∈ Set.Icc 0 H → ‖e t‖ ≤ (z + D) * Real.exp (L * t)

    The value-only Gronwall step has no reflection factor. Supplying this integral inequality is not a full native certificate: its derivation from actual III, the trace enclosure and the source event remains separate.