MindFormal v1.0.0One Mind

MindFormal.Run.RationalCorridor

02.20: the contraction corridor's two field conditions from a checked contraction certificate. The certificate's one-sided checker already bounds μ on each piece's weighted tube around its path; a second rational check bounds the drift's weighted Lipschitz constant Kw there, and fixes a width rc that, added to each piece's radius, stays inside the tube. On the weighted tube of width rc around a certified reference, at every time of the schedule, the drift at the reference's input and focus then has one-sided constant μ against the reference and Lipschitz constant Kw: the two conditions LearningContractionControl asks of the reference.

theorem MindFormal.RationalMind.exists_piece_Ico {N n : ℕ} {T Λ J : Type} (D : RationalMind N n T Λ J) {t : ℝ} (ht : t ∈ Set.Ico 0 ↑(D.breaks D.schedule.length)) :
∃ k < D.schedule.length, t ∈ Set.Ico ↑(D.breaks k) ↑(D.breaks (k + 1))

02.20: every time of [0, τ_m) lies in a piece's half-open interval [τ_k, τ_{k+1}).

def MindFormal.RationalMind.corridorCheck {N n : ℕ} {T Λ J : Type} (D : RationalMind N n T Λ J) [DecidableEq T] [DecidableEq Λ] (C : ContractionCertificate N n T Λ) (Kw rc : ℚ) :

02.20: THE CORRIDOR CHECK, by rational arithmetic only: on every piece the Lipschitz checker passes with constant Kw on the piece's weighted tube, and the width rc plus the piece's radius is at most the tube's width.

Equations
Instances For
    theorem MindFormal.RationalMind.certificate_corridor {N n : ℕ} {T Λ J : Type} (D : RationalMind N n T Λ J) [DecidableEq T] [DecidableEq Λ] [Fintype T] [Fintype Λ] {C : ContractionCertificate N n T Λ} {d : MindDriftData (Fin N) n T Λ} {H : NNReal} {R : LearningReference d H} (hR : D.ContractionCertified C R) {Kw rc μ : ℚ} (hc : D.corridorCheck C Kw rc = true) (hμ : ∀ k < D.schedule.length, (C.at k).μ ≤ μ) (t : ℝ) :
    t ∈ Set.Ico 0 ↑(D.breaks D.schedule.length) → ∀ (z z' : MindState (Fin N) n T Λ), (∀ (i : Fin N), 0 ≤ mindTrace z i) → (∀ (i : Fin N), 0 ≤ mindTrace z' i) → ‖(weightMap C.weight) (z - (ContinuousMap.IccExtend ⋯ R.path) t)‖ ≤ ↑rc → ‖(weightMap C.weight) (z' - (ContinuousMap.IccExtend ⋯ R.path) t)‖ ≤ ↑rc → (∃ h₀ > 0, ∀ h ∈ Set.Ioo 0 h₀, ‖(weightMap C.weight) (z - (ContinuousMap.IccExtend ⋯ R.path) t + h • (assembledDrift d (R.input t) (R.mode t) z - assembledDrift d (R.input t) (R.mode t) ((ContinuousMap.IccExtend ⋯ R.path) t)))‖ ≤ (1 + h * ↑μ) * ‖(weightMap C.weight) (z - (ContinuousMap.IccExtend ⋯ R.path) t)‖) ∧ ‖(weightMap C.weight) (assembledDrift d (R.input t) (R.mode t) z - assembledDrift d (R.input t) (R.mode t) z')‖ ≤ ↑Kw * ‖z - z'‖

    02.20: THE CORRIDOR'S FIELD CONDITIONS FROM THE CERTIFICATE. Under ContractionCertified, if the corridor check passes and every piece's one-sided constant is at most μ, then at every time t of [0, τ_m), for states z, z′ with nonnegative traces within rc of the reference in the weighted norm, the drift at the reference's input and focus satisfies: a short Euler step moves z and the reference apart by at most the factor 1 + hμ, and its change from z′ to z is at most Kw‖z − z′‖.