MindFormal v1.0.0One Mind

MindFormal.Run.LearningContraction

02.20 paragraph 4: the corridor from a verified continuing reference to the actual run with the drift's one-sided (contraction) constant μ in place of its Lipschitz constant. In the weighted sup norm max_v w_v|·| the error is Grönwall's bound at μ from the start error, its rate the field's change over the noise's displacement, plus the input and focus mismatch, plus the noise's own displacement; where μ < 0 it stays below the larger of the start error and rate/|μ| rather than growing as e^{2KH}. The activity floor's reflection is included and never charged.

noncomputable def MindFormal.learningContractionError {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (hd : PhysicalCoefficientRegularity d) (H U B C W Kw μ d0 dw Δu Δq : ℝ) :

02.20 paragraph 4: THE CONTRACTION CORRIDOR'S ERROR, in the weighted sup norm with weights at most W. With start error d0, driver norm dw, the field's weighted Lipschitz constant Kw over the noise's displacement (at most 2dw) and its one-sided constant μ on the tube, K the proved joint drift constant on input radius U and state radius B+C, and Δu, Δq the prefix integrals of the input and focus mismatch: the larger of W·d0 and Grönwall's bound at μ with rate 2·Kw·dw at H, plus max(1, e^{μH})·W·K·(Δu+Δq), plus the displacement 2·W·dw.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem MindFormal.coupled_learning_contraction {H : NNReal} {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (D : PhysicalCouplingData (↑H) N n T Λ) (R : LearningReference D.data H) (w : CoordinateIndex (Fin N) n T Λ → ℚ) {U B C W wmin Kw μ r d0 dw Δu Δq : ℝ} (hU : 0 ≤ U) (hB : 0 ≤ B) (hC : 0 ≤ C) (hdw : 0 ≤ dw) (hΔu : 0 ≤ Δu) (hΔq : 0 ≤ Δq) (hwmin : 0 < wmin) (hwlo : ∀ (v : CoordinateIndex (Fin N) n T Λ), wmin ≤ ↑(w v)) (hwhi : ∀ (v : CoordinateIndex (Fin N) n T Λ), ↑(w v) ≤ W) (hW0 : 0 ≤ W) (hKw : 0 ≤ Kw) (href : ∀ (t : ↑(HorizonTime ↑H)), ‖R.path t‖ ≤ B) (hinput : ∀ t ∈ Set.Icc 0 ↑H, ‖D.coupledInput t‖ ≤ U) (hrefinput : ∀ t ∈ Set.Icc 0 ↑H, ‖R.input t‖ ≤ U) (hstart : ‖↑D.start - ↑R.start‖ ≤ d0) (hdriver : ∀ (t : ↑(HorizonTime ↑H)), ‖D.driver t‖ ≤ dw) (hinput_error : ∀ (t : ↑(HorizonTime ↑H)), ∫ (s : ℝ) in 0..↑t, ‖D.coupledInput s - R.input s‖ ≤ Δu) (hfocus_error : ∀ (t : ↑(HorizonTime ↑H)), ∫ (s : ℝ) in 0..↑t, ‖D.coupledMode s - R.mode s‖ ≤ Δq) (hbox : r / wmin ≤ C) (osl : ∀ t ∈ Set.Ico 0 ↑H, ∀ (z : MindState (Fin N) n T Λ), (∀ (i : Fin N), 0 ≤ mindTrace z i) → ‖(weightMap w) (z - (ContinuousMap.IccExtend ⋯ R.path) t)‖ ≤ r → ∃ h₀ > 0, ∀ h ∈ Set.Ioo 0 h₀, ‖(weightMap w) (z - (ContinuousMap.IccExtend ⋯ R.path) t + h • (assembledDrift D.data (R.input t) (R.mode t) z - assembledDrift D.data (R.input t) (R.mode t) ((ContinuousMap.IccExtend ⋯ R.path) t)))‖ ≤ (1 + h * μ) * ‖(weightMap w) (z - (ContinuousMap.IccExtend ⋯ R.path) t)‖) (lip : ∀ t ∈ Set.Ico 0 ↑H, ∀ (z z' : MindState (Fin N) n T Λ), (∀ (i : Fin N), 0 ≤ mindTrace z i) → (∀ (i : Fin N), 0 ≤ mindTrace z' i) → ‖(weightMap w) (z - (ContinuousMap.IccExtend ⋯ R.path) t)‖ ≤ r → ‖(weightMap w) (z' - (ContinuousMap.IccExtend ⋯ R.path) t)‖ ≤ r → ‖(weightMap w) (assembledDrift D.data (R.input t) (R.mode t) z - assembledDrift D.data (R.input t) (R.mode t) z')‖ ≤ Kw * ‖z - z'‖) (hclose : learningContractionError D.data ⋯ (↑H) U B C W Kw μ d0 dw Δu Δq < r) (t : ↑(HorizonTime ↑H)) :
    ‖(weightMap w) ((D.response D.coupledHistory) t - R.path t)‖ ≤ learningContractionError D.data ⋯ (↑H) U B C W Kw μ d0 dw Δu Δq

    02.20 RP7/RP9--RP10 paragraph 4, THE CONTRACTION CORRIDOR, constant-additive actual coupled run versus a verified continuing reference. Primitive PhysicalCouplingData supply the actual solved equation, its own input and pulse, physical invariance and start. Assume nonnegative radii U, B, C, reference norm ≤ B, both input norms ≤ U, start error ≤ d0, driver norm ≤ dw, the prefix integral bounds Δu, Δq on the input and native-focus mismatch, and positive weights w between wmin and W with r/wmin ≤ C. On the reference's weighted tube of width r, at every time before H and at the reference's input and focus: the drift's one-sided Lipschitz constant against the reference is at most μ (of any sign), and its change between two states is at most Kw times their sup distance (both for states with nonnegative traces). If the computed contraction error is below r, the actual run stays within it of the reference in the weighted norm through H. No corridor, box membership or actual bound is supplied; the floor's reflection is never charged.

    structure MindFormal.LearningContractionControl {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (S : PhysicalNoiseData Ω N n T Λ J 𝒩) {H : NNReal} (R : Ω → LearningReference S.data H) :
    Type (max (max (max u_1 u_2) u_3) u_4)

    02.20 paragraph 4: quantitative controls of the CONTRACTION CORRIDOR for the actual run, for any case of noise: the corridor's radii, start and integrated input/focus mismatch, the positive source levels whose driver allowance is at most dw, and the world event, as in the Lipschitz corridor; and, on the reference's weighted tube of width r (r/wmin ≤ C) at every time before H, the drift's one-sided Lipschitz constant μ against the reference and its weighted Lipschitz constant Kw, with the computed contraction error below r. No actual state, distance, event mass or solved equation is a field.

    Instances For
      noncomputable def MindFormal.LearningContractionControl.error {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} {S : PhysicalNoiseData Ω N n T Λ J 𝒩} {H : NNReal} {R : Ω → LearningReference S.data H} (P : LearningContractionControl S R) :

      02.20 paragraph 4: the contraction corridor's computed weighted error.

      Equations
      Instances For
        def MindFormal.LearningContractionControl.failure {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} {S : PhysicalNoiseData Ω N n T Λ J 𝒩} {H : NNReal} {R : Ω → LearningReference S.data H} (P : LearningContractionControl S R) :

        02.20 RP6/RP10: one failure allowance, the noise driver's stray failure at the levels plus explicit world-input failure, clipped at one.

        Equations
        Instances For
          theorem MindFormal.physical_learning_contraction_event {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (S : PhysicalNoiseData Ω N n T Λ J 𝒩) [MeasureTheory.IsProbabilityMeasure S.μ] {H : NNReal} (R : Ω → LearningReference S.data H) (P : LearningContractionControl S R) :
          ∃ (good : Set Ω), MeasurableSet good ∧ 1 - P.failure ≤ S.μ.real good ∧ ∀ z ∈ good, ∀ t ∈ Set.Icc 0 ↑H, ‖(weightMap P.weight) ((S.globalData z).state t - (ContinuousMap.IccExtend ⋯ (R z).path) t)‖ ≤ P.error

          02.20 RP9--RP10 paragraph 4, THE CONTRACTION CORRIDOR'S EVENT, actual run, for any case of noise: under the complete primitive PhysicalNoiseData hypotheses, a probability measure, a family of verified continuing references and LearningContractionControl, one measurable event of mass at least 1-failure on which every actual global state stays within the computed contraction error of the reference in the weighted sup norm through H. The actual equations, native modes and corridor are proved, never assumed.