MindFormal v1.0.0One Mind

MindFormal.Tools.Skorokhod

@[reducible, inline]

02.12: the compact time interval on a finite real horizon.

Equations
Instances For
    noncomputable def MindFormal.floorRegulator {H : ℝ} (f : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) :

    02.12: the running negative-part maximum, written on a fixed compact domain by stopping every time argument at t. For nonnegative H this is exactly supremum of max(-f(s),0) over 0 <= s <= t.

    Equations
    Instances For

      02.12. For any continuous scalar path on [0,H], the explicitly defined floor regulator is continuous as a function of time. This topological result also allows an empty time interval; positivity and initial conditions are handled separately. No probability or loading premise is used.

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

      02.12: the minimal activity-floor correction as a continuous map.

      Equations
      Instances For
        noncomputable def MindFormal.floorReflection {H : ℝ} (f : C(↑(HorizonTime H), ℝ)) :

        02.12: the scalar Skorokhod map Gamma at the zero floor.

        Equations
        Instances For
          theorem MindFormal.floorRegulator_ge {H : ℝ} (f : C(↑(HorizonTime H), ℝ)) (s t : ↑(HorizonTime H)) (hst : s ≤ t) :
          max (-f s) 0 ≤ floorRegulator f t

          02.12. For a continuous path f on [0,H] and times s <= t, its running floor regulator at t dominates max(-f(s),0). The existence of the supplied times already makes the interval nonempty.

          theorem MindFormal.floorRegulator_le {H : ℝ} (f : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) {A : ℝ} (hA : 0 ≤ A) (hf : ∀ s ≤ t, -f s ≤ A) :

          02.12. For a continuous path on [0,H], a time t in that interval and a nonnegative bound A, if -f(s) <= A at every s <= t, the floor regulator at t is at most A. This is the upper half of the explicit running-supremum formula.

          02.12. For every continuous scalar input on [0,H] and every time in that interval, the explicit regulator and its reflected path are nonnegative. There is no hypothesis that the input path stays above the floor.

          02.12. The running floor regulator of any continuous scalar path on [0,H] is nondecreasing. This derives the sign of the boundary push from its formula, rather than supplying that sign as an interface hypothesis.

          theorem MindFormal.floorReflection_initial {H : ℝ} (hH : 0 ≤ H) (f : C(↑(HorizonTime H), ℝ)) (hf : 0 ≤ f ⟨0, ⋯⟩) :
          floorRegulator f ⟨0, ⋯⟩ = 0 ∧ (floorReflection f) ⟨0, ⋯⟩ = f ⟨0, ⋯⟩

          02.12. If H >= 0 and a continuous input starts at f(0) >= 0, its floor regulator starts at zero and reflection preserves the initial value. No assumption is made about later signs of the input.

          theorem MindFormal.floorRegulator_attained {H : ℝ} (f : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) :
          ∃ s ≤ t, floorRegulator f t = max (-f s) 0

          02.12. At any time t in [0,H], the running floor correction of a continuous path is attained as max(-f(s),0) at some s <= t. This also includes zero correction and follows from compactness, not differentiability.

          theorem MindFormal.floorRegulator_flat {H : ℝ} (f : C(↑(HorizonTime H), ℝ)) (a b : ↑(HorizonTime H)) (hab : a ≤ b) (hpos : ∀ t ∈ Set.Icc a b, 0 < (floorReflection f) t) :

          02.12. If the reflected path from a continuous input is strictly positive on the closed interval [a,b] of times, with a <= b, its regulator has equal values at a and b. This proves the minimal-floor support condition in CompleteRun.reflection; contacts elsewhere may occur infinitely often.

          theorem MindFormal.floorRegulator_error {H : ℝ} (f g : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) {δ : ℝ} (hd : 0 ≤ δ) (hfg : ∀ s ≤ t, |f s - g s| ≤ δ) :

          02.12. For continuous paths f,g on [0,H], a nonnegative error allowance delta, and a time t, if |f(s)-g(s)| <= delta for all s <= t, the two running regulators differ by at most delta at t. This proves causality and the one-Lipschitz bound for the regulator without any initial-value restriction.

          theorem MindFormal.floorReflection_error {H : ℝ} (f g : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) {δ : ℝ} (hd : 0 ≤ δ) (hfg : ∀ s ≤ t, |f s - g s| ≤ δ) :

          02.12, 02.20 RP9. For two continuous scalar inputs on [0,H], delta >= 0, and a time t, a uniform input difference at most delta through t gives reflected difference at most 2*delta at t. This is the pathwise floor-map Lipschitz bound; it applies to additive driving paths without asserting a probability bound.

          def MindFormal.pathCoordinate {H : ℝ} {I : Type u_1} (f : C(↑(HorizonTime H), I → ℝ)) (i : I) :

          02.12: a continuous coordinate read of a vector-valued path.

          Equations
          Instances For
            noncomputable def MindFormal.productReflection {H : ℝ} {I : Type u_1} (reflect : I → Bool) (f : C(↑(HorizonTime H), I → ℝ)) :
            C(↑(HorizonTime H), I → ℝ)

            02.12: product reflection applies the zero-floor map exactly to the coordinates marked by reflect, and the identity to every other coordinate. In the ordinary mind domain the marked coordinates are activities; relation and value coordinates remain signed, and traces can remain unreflected.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem MindFormal.productReflection_error {H : ℝ} {I : Type u_1} [Fintype I] (reflect : I → Bool) (f g : C(↑(HorizonTime H), I → ℝ)) (t : ↑(HorizonTime H)) {δ : ℝ} (hd : 0 ≤ δ) (hfg : ∀ s ≤ t, ‖f s - g s‖ ≤ δ) :
              ‖(productReflection reflect f) t - (productReflection reflect g) t‖ ≤ 2 * δ

              02.12, 02.20. For a finite coordinate set, any chosen subset of zero-floor reflected coordinates, continuous paths f,g on [0,H], delta >= 0 and time t, an input supremum-norm difference at most delta through t gives product-reflected difference at most 2*delta at t. Unreflected coordinates are retained. This is the additive-path estimate; no probability or independent loading is used.

              theorem MindFormal.productReflection_lipschitz {H : ℝ} {I : Type u_1} [Fintype I] (reflect : I → Bool) :

              02.12. On a finite coordinate set and any finite horizon, the product of the zero-floor reflection maps and identities is two-Lipschitz in the uniform supremum metric on continuous vector paths. The bound does not grow with the number of coordinates. No probability premise is involved.

              theorem MindFormal.productReflection_coordinates {H : ℝ} {I : Type u_1} (reflect : I → Bool) (f : C(↑(HorizonTime H), I → ℝ)) (t : ↑(HorizonTime H)) (i : I) :
              (reflect i = true → 0 ≤ (productReflection reflect f) t i) ∧ (reflect i = false → (productReflection reflect f) t i = f t i)

              02.12. For any continuous vector input, every coordinate selected for zero-floor reflection is nonnegative at every time. The other coordinates are exactly the original signed input coordinates. No finite-set assumption is needed for this coordinatewise fact.

              theorem MindFormal.productReflection_initial {H : ℝ} {I : Type u_1} (hH : 0 ≤ H) (reflect : I → Bool) (f : C(↑(HorizonTime H), I → ℝ)) (hf : ∀ (i : I), reflect i = true → 0 ≤ f ⟨0, ⋯⟩ i) :
              (productReflection reflect f) ⟨0, ⋯⟩ = f ⟨0, ⋯⟩

              02.12. If H >= 0, a continuous vector input is given and every coordinate marked for floor reflection starts nonnegative, product reflection preserves the entire starting vector. Signed unreflected coordinates have no sign restriction.

              theorem MindFormal.productReflection_zero {H : ℝ} {I : Type u_1} (reflect : I → Bool) :
              productReflection reflect 0 = 0

              02.12. Product floor reflection sends the identically zero continuous vector path to itself, for any horizon and coordinate mask. This is the zero comparison used in the pathwise growth estimate; no coordinate is discarded.