MindFormal v1.0.0One Mind

MindFormal.Tools.CorridorCertificate

02.20: the checkable form of the corridor's noise term. The actual run's drift is read at its noisy state, so the corridor charges the field's change over the noise's displacement: a Lipschitz bound of a field of expressions from the sup norm into a weighted sup norm, on the weighted tube around a piece's path, certified in rational arithmetic by the same slope enclosure the one-sided checker uses.

def MindFormal.PieceData.lipRate {S P : Type u} (d : PieceData S P) [DecidableEq S] [DecidableEq P] (Svars : List S) (F : S → RExpr (S ⊕ P)) (w : S → ℚ) (r : ℚ) (i : S) :

02.20: THE QUANTITY CERTIFIED FOR THE NOISE TERM, coordinate i's rate on the weighted box: its weight times the sum over every state coordinate j of the largest magnitude of i's coefficient on j.

Equations
Instances For
    def MindFormal.PieceData.lipCheck {S P : Type u} (d : PieceData S P) [DecidableEq S] [DecidableEq P] (Svars : List S) (F : S → RExpr (S ⊕ P)) (w : S → ℚ) (r K : ℚ) :

    02.20: THE LIPSCHITZ CHECKER, by rational arithmetic only: every weight positive, every field coordinate defined on the weighted box, and every coordinate's rate at most K.

    Equations
    Instances For
      theorem MindFormal.PieceData.lipCheck_sound {S P : Type u} (d : PieceData S P) [DecidableEq S] [DecidableEq P] [Fintype S] [Finite P] {Svars : List S} {F : S → RExpr (S ⊕ P)} {w : S → ℚ} {r K : ℚ} (hS : ∀ (v : S), v ∈ Svars) (hc : d.lipCheck Svars F w r K = true) {x : ℝ} (hx : x ∈ Set.Icc 0 ↑d.h) {π : P → ℝ} (hπ : ∀ (v : P), |π v - d.paramR x v| ≤ ↑d.η) {z z' : S → ℝ} (hz : ‖(weightMap w) (z - d.pathR x)‖ ≤ ↑r) (hz' : ‖(weightMap w) (z' - d.pathR x)‖ ≤ ↑r) :
      ‖(weightMap w) (fieldR F π z - fieldR F π z')‖ ≤ ↑K * ‖z - z'‖

      02.20: soundness of the Lipschitz checker. If it passes (with a list naming every state variable), then at every time x of the piece, for parameters π within η of their polynomials and any two states z, z′ within r of the path in the weighted norm, the field's change is at most K times their distance: ‖W(F(z) − F(z′))‖ ≤ K‖z − z′‖, W the weights' map, ‖·‖ the sup norm.