MindFormal v1.0.0One Mind

MindFormal.Tools.ReflectedLocal

Localization of the reflected equation of ReflectedSDE. The coefficients are Lipschitz only on bounded sets of states, with a constant lip R on the ball of radius R, and of at most linear growth (EQUATIONS.md, C1). Truncated at radius R (the state clamped to the box [-R, R]^I, the ball of radius R in the sup norm) they are Lipschitz, with the same linear growth, so the truncated equation has a unique solution on any horizon. The moment bound for linear growth (Grönwall with a constant term) bounds the mean squared running maximum of every truncated solution by one constant; so the chance that the truncated solution leaves the ball of radius R before T is at most that constant over R². Up to its exit time, a truncated solution is the solution for any larger radius (ReflectedLocality), and the coefficients it reads there are the original ones.

Grönwall with a constant term #

theorem MindFormal.le_series_of_le_add_integral {F : NNReal → ENNReal} {A : ENNReal} {C T : NNReal} (hle : ∀ (t : NNReal), F t ≤ F T) (h : ∀ (t : NNReal), F t ≤ A + ↑C * ∫⁻ (u : NNReal) in Set.Ioc 0 (min t T), F u ∂MathFin.ItoIntegralL2.timeMeasure) (n : ℕ) (t : NNReal) :
F t ≤ A * ↑(∑ k ∈ Finset.range n, (C * min t T) ^ k / ↑k.factorial) + F T * ↑((C * min t T) ^ n / ↑n.factorial)

The partial sums of the exponential series bound the iterates of F ≤ A + C ∫ F.

theorem MindFormal.le_exp_of_le_add_integral {F : NNReal → ENNReal} {A : ENNReal} {C T : NNReal} (hT : F T < ⊤) (hle : ∀ (t : NNReal), F t ≤ F T) (h : ∀ (t : NNReal), F t ≤ A + ↑C * ∫⁻ (u : NNReal) in Set.Ioc 0 (min t T), F u ∂MathFin.ItoIntegralL2.timeMeasure) :
F T ≤ A * ENNReal.ofReal (Real.exp (↑C * ↑T))

Grönwall with a constant term: if F ≤ F T < ∞ and F t ≤ A + C ∫_{(0, t ∧ T]} F, then F T ≤ A exp(C T).

The clamp to a box, and truncated coefficients #

def MindFormal.clampBox {I : Type u_1} (R : NNReal) (x : I → ℝ) :
I → ℝ

The clamp of a state to the box [-R, R]^I, the closed ball of radius R in the sup norm.

Equations
Instances For
    theorem MindFormal.clampBox_mem {I : Type u_1} [Fintype I] (R : NNReal) (x : I → ℝ) :
    theorem MindFormal.clampBox_of_mem {I : Type u_1} [Fintype I] {R : NNReal} {x : I → ℝ} (hx : x ∈ Metric.closedBall 0 ↑R) :
    clampBox R x = x
    theorem MindFormal.clampBox_zero {I : Type u_1} (R : NNReal) :
    clampBox R 0 = 0
    theorem MindFormal.norm_clampBox_le {I : Type u_1} [Fintype I] (R : NNReal) (x : I → ℝ) :
    structure MindFormal.ItoFiltration.LocalCoeff {Ω : Type u_1} [mΩ : MeasurableSpace Ω] (ℱ : MeasureTheory.Filtration NNReal mΩ) (I : Type u_4) (J : Type u_5) [Fintype I] [Fintype J] :
    Type (max (max u_1 u_4) u_5)

    Coefficients Lipschitz on bounded sets, of at most linear growth (C1): a drift and an amplitude, predictable in (s, ω) at each state, Lipschitz on the ball of radius R with constant lip R, and bounded by K (1 + ‖x‖).

    Instances For

      A function Lipschitz on the ball of radius R, after the clamp to that ball, is Lipschitz.

      def MindFormal.ItoFiltration.LocalCoeff.truncate {Ω : Type u_1} {I : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} [Fintype I] [Fintype J] (c : LocalCoeff ℱ I J) (R : NNReal) :

      The coefficients truncated at radius R: the state clamped to the ball of radius R. They are Lipschitz with the constant lip R, and bounded by K at the zero state.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem MindFormal.ItoFiltration.LocalCoeff.truncate_eq {Ω : Type u_1} {I : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} [Fintype I] [Fintype J] (c : LocalCoeff ℱ I J) {R : NNReal} {x : I → ℝ} (hx : ‖x‖ ≤ ↑R) (z : NNReal × Ω) :
        (c.truncate R).drift z x = c.drift z x ∧ (c.truncate R).amp z x = c.amp z x

        Inside the ball of radius R, the truncated coefficients are the original ones.

        theorem MindFormal.ItoFiltration.LocalCoeff.truncate_drift_growth {Ω : Type u_1} {I : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} [Fintype I] [Fintype J] (c : LocalCoeff ℱ I J) (R : NNReal) (z : NNReal × Ω) (x : I → ℝ) :
        ‖(c.truncate R).drift z x‖ ≤ ↑c.K * (1 + ‖x‖)

        The truncated drift keeps the linear growth.

        theorem MindFormal.ItoFiltration.LocalCoeff.truncate_amp_growth {Ω : Type u_1} {I : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} [Fintype I] [Fintype J] (c : LocalCoeff ℱ I J) (R : NNReal) (z : NNReal × Ω) (x : I → ℝ) :
        ‖(c.truncate R).amp z x‖ ≤ ↑c.K * (1 + ‖x‖)

        The truncated amplitude keeps the linear growth.

        The integrand measure of the strip (0,s] × Ω is |(0, s ∧ T]|.

        theorem MindFormal.ItoFiltration.LipschitzCoeff.cut_growth_le {Ω : Type u_1} {I : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} [Fintype I] {T : NNReal} [MeasureTheory.IsProbabilityMeasure μ] {K : NNReal} (X : ↥(MeasureTheory.Lp (I → ℝ) 2 (predMeasure ℱ μ T))) {g : NNReal × Ω → ENNReal} (hg : ∀ᵐ (z : NNReal × Ω) ∂predMeasure ℱ μ T, g z ≤ ↑K * (1 + ‖↑↑X z‖ₑ)) (s : NNReal) :
        ∫⁻ (z : NNReal × Ω) in cutSet s, g z ^ 2 ∂predMeasure ℱ μ T ≤ 2 * ↑K ^ 2 * (MathFin.ItoIntegralL2.timeMeasure (Set.Ioc 0 (min s T)) + ∫⁻ (z : NNReal × Ω) in cutSet s, ‖↑↑X z‖ₑ ^ 2 ∂predMeasure ℱ μ T)

        A coefficient of linear growth: its cut squared size is at most 2K² times the strip's measure plus the state's cut squared size.

        theorem MindFormal.ItoFiltration.LipschitzCoeff.moment_bound_growth {Ω : 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] (c : LipschitzCoeff ℱ I J) {T : NNReal} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (reflect : PathReflection I) {x₀ : Ω → I → ℝ} (hx₀ : MeasureTheory.StronglyMeasurable x₀) (hx₀2 : MeasureTheory.MemLp x₀ 2 μ) {K : NNReal} (hb : ∀ (z : NNReal × Ω) (x : I → ℝ), ‖c.drift z x‖ ≤ ↑K * (1 + ‖x‖)) (ha : ∀ (z : NNReal × Ω) (x : I → ℝ), ‖c.amp z x‖ ≤ ↑K * (1 + ‖x‖)) {Z : NNReal → Ω → I → ℝ} (hZ : c.IsSolution B reflect x₀ Z) :
        ∫⁻ (ω : Ω), (⨆ (t : NNReal), ⨆ (_ : t ≤ T), ‖Z t ω‖ₑ) ^ 2 ∂μ ≤ (↑(3 * reflect.lip ^ 2) * ∫⁻ (ω : Ω), ‖x₀ ω‖ₑ ^ 2 ∂μ + ↑(6 * reflect.lip ^ 2 * K ^ 2 * (T + 4 * (↑(Fintype.card I) * ↑(Fintype.card J))) * T)) * ENNReal.ofReal (Real.exp (↑(6 * reflect.lip ^ 2 * K ^ 2 * (T + 4 * (↑(Fintype.card I) * ↑(Fintype.card J)))) * ↑T))

        The moment bound for linear growth. If the drift and the amplitude grow at most like K (1 + ‖x‖), a solution's squared running maximum up to T has mean at most (3 lip² E‖x₀‖² + 6 lip² K² (T + 4|I||J|) T) exp(6 lip² K² (T + 4|I||J|) T), lip the reflection's constant (lip = 2 for the zero floor: (12 E‖x₀‖² + 24 K² (T + 4|I||J|) T) exp(24 K² (T + 4|I||J|) T)), whatever the Lipschitz constant.

        Exit times #

        noncomputable def MindFormal.exitTime {Ω : Type u_1} {I : Type u_2} [Fintype I] (Z : NNReal → Ω → I → ℝ) (R : NNReal) (ω : Ω) :

        The exit time of a path from the open ball of radius R: the first time its size reaches R, or ⊤ if it never does.

        Equations
        Instances For
          theorem MindFormal.exitTime_le_iff {Ω : Type u_1} {I : Type u_2} [Fintype I] {Z : NNReal → Ω → I → ℝ} {R : NNReal} {ω : Ω} (hc : Continuous fun (t : NNReal) => Z t ω) (t : NNReal) :
          exitTime Z R ω ≤ ↑t ↔ ∃ s ≤ t, ↑R ≤ ‖Z s ω‖

          For a continuous path, the exit time is at most t exactly when the size reaches R by t.

          theorem MindFormal.norm_lt_of_lt_exitTime {Ω : Type u_1} {I : Type u_2} [Fintype I] {Z : NNReal → Ω → I → ℝ} {R : NNReal} {ω : Ω} (hc : Continuous fun (t : NNReal) => Z t ω) {s : NNReal} (hs : ↑s < exitTime Z R ω) :
          ‖Z s ω‖ < ↑R

          Before its exit time, the path is inside the ball.

          theorem MindFormal.norm_le_of_le_exitTime {Ω : Type u_1} {I : Type u_2} [Fintype I] {Z : NNReal → Ω → I → ℝ} {R : NNReal} {ω : Ω} (hc : Continuous fun (t : NNReal) => Z t ω) {s : NNReal} (hs0 : 0 < s) (hs : ↑s ≤ exitTime Z R ω) :
          ‖Z s ω‖ ≤ ↑R

          At positive times up to its exit time, the path is in the closed ball.

          theorem MindFormal.isStoppingTime_exitTime {Ω : Type u_1} {I : Type u_2} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} [Fintype I] {Z : NNReal → Ω → I → ℝ} (hZ : MeasureTheory.StronglyAdapted ℱ Z) (hc : ∀ (ω : Ω), Continuous fun (t : NNReal) => Z t ω) (R : NNReal) :

          The exit time of a continuous adapted process is a stopping time.

          noncomputable def MindFormal.ItoFiltration.LocalCoeff.momentConst {Ω : Type u_1} {I : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} [Fintype I] [Fintype J] (c : LocalCoeff ℱ I J) (reflect : PathReflection I) (μ : MeasureTheory.Measure Ω) (T : NNReal) (x₀ : Ω → I → ℝ) :

          The moment constant (3 lip² E‖x₀‖² + 6 lip² K² (T + 4|I||J|) T) exp(6 lip² K² (T + 4|I||J|) T), the same for every truncation radius.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem MindFormal.ItoFiltration.LocalCoeff.localisation {Ω : 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] (c : LocalCoeff ℱ I J) {T : NNReal} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (reflect : PathReflection I) {x₀ : Ω → I → ℝ} (hnull : ∀ (s : Set Ω), μ s = 0 → MeasurableSet s) (hx₀ : MeasureTheory.StronglyMeasurable x₀) (hx₀2 : MeasureTheory.MemLp x₀ 2 μ) :
            ∃ (Z : ℕ → NNReal → Ω → I → ℝ), (∀ (n : ℕ), (c.truncate ↑n).IsSolution B reflect x₀ (Z n)) ∧ (∀ (n : ℕ) (Z' : NNReal → Ω → I → ℝ), (c.truncate ↑n).IsSolution B reflect x₀ Z' → ∀ᵐ (ω : Ω) ∂μ, ∀ (t : NNReal), Z' t ω = Z n t ω) ∧ (∀ (n : ℕ), MeasureTheory.IsStoppingTime ℱ (exitTime (Z n) ↑n)) ∧ (∀ (n : ℕ) (ω : Ω) (s : NNReal), 0 < s → ↑s ≤ exitTime (Z n) (↑n) ω → (c.truncate ↑n).drift (s, ω) (Z n s ω) = c.drift (s, ω) (Z n s ω) ∧ (c.truncate ↑n).amp (s, ω) (Z n s ω) = c.amp (s, ω) (Z n s ω)) ∧ (∀ (n m : ℕ), n ≤ m → ∀ᵐ (ω : Ω) ∂μ, ∀ (t : NNReal), ↑t ≤ exitTime (Z n) (↑n) ω → Z n t ω = Z m t ω) ∧ (∀ (n : ℕ), ↑n ^ 2 * μ {ω : Ω | exitTime (Z n) (↑n) ω ≤ ↑T} ≤ c.momentConst reflect μ T x₀) ∧ c.momentConst reflect μ T x₀ < ⊤ ∧ ∀ᵐ (ω : Ω) ∂μ, ∃ (n : ℕ), ↑T < exitTime (Z n) (↑n) ω

            Localization. For coefficients Lipschitz only on bounded sets and of at most linear growth (C1), every null set known at time 0 and a start known at time 0 and in L²: for each radius n the equation truncated at n has a unique solution Z n on [0,T]; up to its exit time from the ball of radius n (at positive times) it reads the original coefficients, and it is the solution for every larger radius; its exit time is a stopping time, and by the moment bound the chance of exiting by T is at most M / n² with M the same for every n; so almost surely some Z n never exits by T, and on [0,T] it solves the equation with the original coefficients.