MindFormal v1.0.0One Mind

MindFormal.Tools.IntervalPushes

Scalar support lemmas for the existing two-sided interval map. The signed cap correction is not itself an increasing upper regulator.

theorem MindFormal.runMin_le_of_mem {H : ℝ} (g : C(↑(HorizonTime H), ℝ)) {s r t : ↑(HorizonTime H)} (hsr : s ≤ r) (hrt : r ≤ t) :
runMin g s t ≤ g r
theorem MindFormal.runMin_antitone_right {H : ℝ} (g : C(↑(HorizonTime H), ℝ)) {q s t : ↑(HorizonTime H)} (hqs : q ≤ s) (hst : s ≤ t) :
runMin g q t ≤ runMin g q s
theorem MindFormal.runMin_split {H : ℝ} (g : C(↑(HorizonTime H), ℝ)) {q s t : ↑(HorizonTime H)} (hqs : q ≤ s) (hst : s ≤ t) :
runMin g q t = min (runMin g q s) (runMin g s t)
theorem MindFormal.capRegulator_attained {H : ℝ} (c : ℝ) (g : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) :
∃ s ≤ t, capRegulator c g t = min (max (g s - c) 0) (runMin g s t)
theorem MindFormal.capRegulator_le_after {H : ℝ} (c : ℝ) (g : C(↑(HorizonTime H), ℝ)) {s t : ↑(HorizonTime H)} (hst : s ≤ t) {A : ℝ} (hA : ∀ r ∈ Set.Icc s t, g r ≤ A) :
capRegulator c g t ≤ max (capRegulator c g s) (max (A - c) 0)

The correction cannot increase past its old value unless the input reaches a correspondingly higher upper-face level.

theorem MindFormal.capRegulator_ge_after {H : ℝ} (c : ℝ) (g : C(↑(HorizonTime H), ℝ)) {s t : ↑(HorizonTime H)} (hst : s ≤ t) :
min (capRegulator c g s) (runMin g s t) ≤ capRegulator c g t

The correction cannot fall below its old value before the input reaches the new running minimum.

theorem MindFormal.capRegulator_nonnegative {H : ℝ} (c : ℝ) (g : C(↑(HorizonTime H), ℝ)) (hg : ∀ (r : ↑(HorizonTime H)), 0 ≤ g r) (t : ↑(HorizonTime H)) :
theorem MindFormal.capRegulator_antitone_away_cap {H c : ℝ} (g : C(↑(HorizonTime H), ℝ)) (hg : ∀ (r : ↑(HorizonTime H)), 0 ≤ g r) {s t : ↑(HorizonTime H)} (hst : s ≤ t) (hcap : ∀ r ∈ Set.Icc s t, (capMap c g) r < c) :

On a closed interval avoiding the upper face, the signed cap correction is nonincreasing.

theorem MindFormal.capRegulator_monotone_away_floor {H c : ℝ} (g : C(↑(HorizonTime H), ℝ)) {s t : ↑(HorizonTime H)} (hst : s ≤ t) (hfloor : ∀ r ∈ Set.Icc s t, 0 < (capMap c g) r) :

On a closed interval avoiding the lower face, the signed cap correction is nondecreasing.

noncomputable def MindFormal.intervalCorrection {H : ℝ} (c : ℝ) (f : C(↑(HorizonTime H), ℝ)) :

The net correction supplied by the existing interval formula.

Equations
Instances For
    theorem MindFormal.intervalCorrection_away_floor {H c : ℝ} (f : C(↑(HorizonTime H), ℝ)) {s t : ↑(HorizonTime H)} (hst : s ≤ t) (hfloor : ∀ r ∈ Set.Icc s t, 0 < (capMap c (floorReflection f)) r) :
    theorem MindFormal.intervalCorrection_away_cap {H c : ℝ} (f : C(↑(HorizonTime H), ℝ)) {s t : ↑(HorizonTime H)} (hst : s ≤ t) (hcap : ∀ r ∈ Set.Icc s t, (capMap c (floorReflection f)) r < c) :

    Positive width and continuity make the net interval correction have bounded variation. A fine finite time mesh avoids one face on each piece.

    theorem MindFormal.intervalCorrection_initial {H c : ℝ} (hH : 0 ≤ H) (f : C(↑(HorizonTime H), ℝ)) (hf : f ⟨0, ⋯⟩ ∈ Set.Icc 0 c) :
    theorem MindFormal.intervalReflection_minimal_pushes {H c : ℝ} (hc : 0 < c) (hH : 0 ≤ H) (f : C(↑(HorizonTime H), ℝ)) (hf : f ⟨0, ⋯⟩ ∈ Set.Icc 0 c) :
    ∃ (kp : C(↑(HorizonTime H), ℝ)) (km : C(↑(HorizonTime H), ℝ)), Monotone ⇑kp ∧ Monotone ⇑km ∧ kp ⟨0, ⋯⟩ = 0 ∧ km ⟨0, ⋯⟩ = 0 ∧ (∀ (t : ↑(HorizonTime H)), (capMap c (floorReflection f)) t = f t + kp t - km t) ∧ (∀ (s t : ↑(HorizonTime H)), s ≤ t → (∀ r ∈ Set.Icc s t, 0 < (capMap c (floorReflection f)) r) → kp s = kp t) ∧ ∀ (s t : ↑(HorizonTime H)), s ≤ t → (∀ r ∈ Set.Icc s t, (capMap c (floorReflection f)) r < c) → km s = km t

    The existing map on a positive-width interval has two continuous increasing zero-start pushes. Each is constant on closed intervals away from its own face. No regulator or minimality premise is supplied.

    theorem MindFormal.intervalReflection_separate_pushes {H : ℝ} (lo hi : Option ℝ) (hH : 0 ≤ H) (hw : ∀ (a b : ℝ), lo = some a → hi = some b → a < b) (f : C(↑(HorizonTime H), ℝ)) (hl : ∀ (a : ℝ), lo = some a → a ≤ f ⟨0, ⋯⟩) (hu : ∀ (b : ℝ), hi = some b → f ⟨0, ⋯⟩ ≤ b) :
    ∃ (kp : C(↑(HorizonTime H), ℝ)) (km : C(↑(HorizonTime H), ℝ)), Monotone ⇑kp ∧ Monotone ⇑km ∧ kp ⟨0, ⋯⟩ = 0 ∧ km ⟨0, ⋯⟩ = 0 ∧ (∀ (t : ↑(HorizonTime H)), (intervalReflection lo hi f) t = f t + kp t - km t) ∧ (lo = none → kp = 0) ∧ (hi = none → km = 0) ∧ (∀ (a : ℝ), lo = some a → ∀ (s t : ↑(HorizonTime H)), s ≤ t → (∀ r ∈ Set.Icc s t, a < (intervalReflection lo hi f) r) → kp s = kp t) ∧ ∀ (b : ℝ), hi = some b → ∀ (s t : ↑(HorizonTime H)), s ≤ t → (∀ r ∈ Set.Icc s t, (intervalReflection lo hi f) r < b) → km s = km t

    Optional floors and caps: both separate pushes are constructed, with zero push at an absent face. The endpoints need not contain zero.