MindFormal v1.0.0One Mind

MindFormal.Tools.IntervalReflection

Reflection at declared floors and caps. A coordinate may have a floor a, a cap b, both, or neither. The floor map at a is the zero-floor map of Skorokhod translated by a; the cap map at b alone is its mirror image. For both, the path is first reflected at the floor and then at the cap by the explicit map of Kruk, Lehoczky, Ramanan and Shreve (2007) on [0, c], Λ(g)(t) = g(t) - sup_{s ≤ t} min((g(s) - c)₊, inf_{s ≤ r ≤ t} g(r)); translated, this is the minimal two-sided map on [a, b]. Each one-sided map is two-Lipschitz and causal in the sup norm, the cap map Λ is two-Lipschitz, so the two-sided map is four-Lipschitz; a coordinate with a floor stays at or above it, one with a cap at or below it; and when every floor is at most 0 and every cap at least 0, the zero path is fixed. So the product over coordinates is a reflection of paths (PathReflection), and the reflected equation of ReflectedProcess, with coefficients Lipschitz on bounded sets and of linear growth, has with it a unique solution that keeps every coordinate within its declared floor and cap at all times.

The cap map on [0, c] #

noncomputable def MindFormal.runMin {H : ℝ} (g : C(↑(HorizonTime H), ℝ)) (s t : ↑(HorizonTime H)) :

The running minimum of g over [s ∧ t, t].

Equations
Instances For
    theorem MindFormal.bddBelow_runMin {H : ℝ} (g : C(↑(HorizonTime H), ℝ)) (s t : ↑(HorizonTime H)) :
    BddBelow ((fun (r : ↑(HorizonTime H)) => g (max (min s t) (min r t))) '' Set.univ)
    theorem MindFormal.runMin_le {H : ℝ} (g : C(↑(HorizonTime H), ℝ)) (s t r : ↑(HorizonTime H)) :
    runMin g s t ≤ g (max (min s t) (min r t))
    theorem MindFormal.le_runMin {H : ℝ} (g : C(↑(HorizonTime H), ℝ)) (s t : ↑(HorizonTime H)) {A : ℝ} (h : ∀ (r : ↑(HorizonTime H)), A ≤ g (max (min s t) (min r t))) :
    A ≤ runMin g s t
    theorem MindFormal.continuous_runMin {H : ℝ} (g : C(↑(HorizonTime H), ℝ)) :
    Continuous fun (p : ↑(HorizonTime H) × ↑(HorizonTime H)) => runMin g p.1 p.2
    theorem MindFormal.runMin_self {H : ℝ} (g : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) :
    runMin g t t = g t
    noncomputable def MindFormal.capRegulator {H : ℝ} (c : ℝ) (g : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) :

    The cap regulator sup_{s ≤ t} min((g(s) - c)₊, inf_{s ≤ r ≤ t} g(r)).

    Equations
    Instances For
      theorem MindFormal.bddAbove_capRegulator {H : ℝ} (c : ℝ) (g : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) :
      BddAbove ((fun (s : ↑(HorizonTime H)) => min (max (g (min s t) - c) 0) (runMin g s t)) '' Set.univ)
      theorem MindFormal.capRegulator_ge {H : ℝ} (c : ℝ) (g : C(↑(HorizonTime H), ℝ)) (s t : ↑(HorizonTime H)) :
      min (max (g (min s t) - c) 0) (runMin g s t) ≤ capRegulator c g t
      theorem MindFormal.capRegulator_le {H : ℝ} (c : ℝ) (g : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) {A : ℝ} (h : ∀ (s : ↑(HorizonTime H)), min (max (g (min s t) - c) 0) (runMin g s t) ≤ A) :
      noncomputable def MindFormal.capMap {H : ℝ} (c : ℝ) (g : C(↑(HorizonTime H), ℝ)) :

      The cap map on [0, c]: Λ(g) = g minus its cap regulator.

      Equations
      Instances For
        theorem MindFormal.capMap_apply {H : ℝ} (c : ℝ) (g : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) :
        (capMap c g) t = g t - capRegulator c g t
        theorem MindFormal.capRegulator_error {H : ℝ} (c : ℝ) (g g' : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) {δ : ℝ} (hδ : ∀ s ≤ t, |g s - g' s| ≤ δ) :

        The cap regulator is one-Lipschitz and causal.

        theorem MindFormal.capMap_error {H : ℝ} (c : ℝ) (g g' : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) {δ : ℝ} (hδ : ∀ s ≤ t, |g s - g' s| ≤ δ) :
        |(capMap c g) t - (capMap c g') t| ≤ 2 * δ

        The cap map is two-Lipschitz and causal.

        theorem MindFormal.capMap_mem {H c : ℝ} (hc : 0 ≤ c) (g : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) :
        0 ≤ (capMap c g) t ∧ (capMap c g) t ≤ c

        The cap map on [0, c] lands in [0, c].

        theorem MindFormal.capMap_const {H c k : ℝ} (hk0 : 0 ≤ k) (hkc : k ≤ c) :

        The cap map fixes a constant path in [0, c].

        One coordinate: floor, cap, both or neither #

        noncomputable def MindFormal.intervalReflection {H : ℝ} :

        The reflection of one coordinate at an optional floor lo and an optional cap hi.

        Equations
        Instances For
          theorem MindFormal.intervalReflection_error {H : ℝ} (lo hi : Option ℝ) (f g : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) {δ : ℝ} (hd : 0 ≤ δ) (hfg : ∀ s ≤ t, |f s - g s| ≤ δ) :
          |(intervalReflection lo hi f) t - (intervalReflection lo hi g) t| ≤ (if lo.isSome = true ∧ hi.isSome = true then 4 else 2) * δ

          Each coordinate's reflection is four-Lipschitz and causal; two-Lipschitz unless it has both a floor and a cap.

          theorem MindFormal.intervalReflection_mem {H : ℝ} (lo hi : Option ℝ) (hlh : ∀ (a b : ℝ), lo = some a → hi = some b → a ≤ b) (f : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) :
          (∀ (a : ℝ), lo = some a → a ≤ (intervalReflection lo hi f) t) ∧ ∀ (b : ℝ), hi = some b → (intervalReflection lo hi f) t ≤ b

          A coordinate with a floor stays at or above it, one with a cap at or below it.

          theorem MindFormal.intervalReflection_zero {H : ℝ} (lo hi : Option ℝ) (hlo : ∀ (a : ℝ), lo = some a → a ≤ 0) (hhi : ∀ (b : ℝ), hi = some b → 0 ≤ b) :

          A floor at most 0 and a cap at least 0 fix the zero path.

          The product over coordinates #

          structure MindFormal.Boundary (I : Type u_1) :
          Type u_1

          The declared boundaries of each coordinate: an optional floor and an optional cap, a floor at most 0, a cap at least 0, so the zero state is inside every range.

          Instances For
            noncomputable def MindFormal.Boundary.lip {I : Type u_1} (bd : Boundary I) :

            The Lipschitz constant of the product reflection: four if some coordinate has both a floor and a cap, two otherwise.

            Equations
            Instances For
              noncomputable def MindFormal.Boundary.reflection {H : ℝ} {I : Type u_1} (bd : Boundary I) (f : C(↑(HorizonTime H), I → ℝ)) :
              C(↑(HorizonTime H), I → ℝ)

              The product reflection: each coordinate at its own floor and cap.

              Equations
              Instances For
                theorem MindFormal.Boundary.reflection_error {H : ℝ} {I : Type u_1} [Fintype I] (bd : Boundary I) (f g : C(↑(HorizonTime H), I → ℝ)) (t : ↑(HorizonTime H)) {δ : ℝ} (hd : 0 ≤ δ) (hfg : ∀ s ≤ t, ‖f s - g s‖ ≤ δ) :
                ‖(bd.reflection f) t - (bd.reflection g) t‖ ≤ ↑bd.lip * δ

                The product reflection is lip-Lipschitz and causal in the sup norm.

                theorem MindFormal.Boundary.reflection_zero {H : ℝ} {I : Type u_1} (bd : Boundary I) :
                bd.reflection 0 = 0

                The product reflection fixes the zero path.

                theorem MindFormal.Boundary.reflection_mem {H : ℝ} {I : Type u_1} (bd : Boundary I) (hbd : ∀ (i : I) (a b : ℝ), bd.lower i = some a → bd.upper i = some b → a ≤ b) (f : C(↑(HorizonTime H), I → ℝ)) (t : ↑(HorizonTime H)) (i : I) :
                (∀ (a : ℝ), bd.lower i = some a → a ≤ (bd.reflection f) t i) ∧ ∀ (b : ℝ), bd.upper i = some b → (bd.reflection f) t i ≤ b

                Every coordinate of the product reflection keeps to its declared range, when each floor is at most the cap.

                noncomputable def MindFormal.Boundary.pathReflection {I : Type u_1} [Fintype I] (bd : Boundary I) :

                Reflection at declared floors and caps, as a reflection of paths.

                Equations
                Instances For
                  theorem MindFormal.Boundary.reflectPath_mem {I : Type u_1} [Fintype I] (bd : Boundary I) (hbd : ∀ (i : I) (a b : ℝ), bd.lower i = some a → bd.upper i = some b → a ≤ b) (T : NNReal) (p : NNReal → I → ℝ) (t : NNReal) (i : I) :
                  (∀ (a : ℝ), bd.lower i = some a → a ≤ reflectPath bd.pathReflection T p t i) ∧ ∀ (b : ℝ), bd.upper i = some b → reflectPath bd.pathReflection T p t i ≤ b

                  A reflected path keeps each coordinate within its declared floor and cap.

                  theorem MindFormal.ItoFiltration.LocalCoeff.exists_unique_solution_boundary {Ω : Type u_1} {I : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {B : J → NNReal → Ω → ℝ} [Fintype I] [Fintype J] [MeasureTheory.IsProbabilityMeasure μ] (c : LocalCoeff ℱ I J) {T : NNReal} (hB : BrownianFiltration μ ℱ B) (bd : Boundary I) (hbd : ∀ (i : I) (a b : ℝ), bd.lower i = some a → bd.upper i = some b → a ≤ b) (hnull : ∀ (s : Set Ω), μ s = 0 → MeasurableSet s) {x₀ : Ω → I → ℝ} (hx₀ : MeasureTheory.StronglyMeasurable x₀) (hx₀2 : MeasureTheory.MemLp x₀ 2 μ) :
                  ∃ (X : NNReal → Ω → I → ℝ), c.IsSolution B bd.pathReflection x₀ X ∧ (∀ (X' : NNReal → Ω → I → ℝ), c.IsSolution B bd.pathReflection x₀ X' → ∀ᵐ (ω : Ω) ∂μ, ∀ (t : NNReal), X' t ω = X t ω) ∧ ∫⁻ (ω : Ω), (⨆ (t : NNReal), ⨆ (_ : t ≤ T), ‖X t ω‖ₑ) ^ 2 ∂μ ≤ c.momentConst bd.pathReflection μ T x₀ ∧ ∀ᵐ (ω : Ω) ∂μ, ∀ (t : NNReal) (i : I), (∀ (a : ℝ), bd.lower i = some a → a ≤ X t ω i) ∧ ∀ (b : ℝ), bd.upper i = some b → X t ω i ≤ b

                  The reflected equation at declared floors and caps. For coefficients Lipschitz on bounded sets and of linear growth (C1), each coordinate reflected at its declared floor and cap (floors at most 0, caps at least 0, each floor at most its cap), every null set known at time 0 and a start known at time 0 and in L²: the equation has a solution on [0,T], every solution is almost surely equal to it at all times, its squared running maximum has mean at most the moment constant of the reflection's constant, and at every time every coordinate lies within its declared floor and cap.