MindFormal v1.0.0One Mind

MindFormal.Tools.ReflectedProcess

The reflected equation of ReflectedLocal, untruncated, solved as one process. The coefficients are Lipschitz only on bounded sets and of linear growth (EQUATIONS.md, C1); at a state in the integrand space they are in it too, so the free path, the reflected path and a solution are defined as for Lipschitz coefficients. Integrands that agree up to a stopping time give drift paths and integrals that agree up to it (ItoStopping), and the reflection at a time reads its input only up to that time; so a solution solves each truncated equation up to its exit time from the truncation's ball. The truncated solutions Zₙ agree up to their exit times and almost surely one of them never exits by T; on every path where that holds and they agree, Zₙ settles, and its limit is one continuous adapted process that solves the untruncated equation. Its squared running maximum has mean at most the truncations' moment constant (Fatou). Two solutions whose coefficients agree along the first up to a stopping time agree up to it, by ReflectedLocality on the truncations up to the exit times; so the solution is unique, and coefficients switched at a stopping time continue it.

Pathwise facts #

theorem MindFormal.reflectPath_eq_of_eqOn {I : Type u_1} [Fintype I] (reflect : PathReflection I) (T : NNReal) {p q : NNReal → I → ℝ} (hp : Continuous p) (hq : Continuous q) {t : NNReal} (h : ∀ s ≤ t, p s = q s) :
reflectPath reflect T p t = reflectPath reflect T q t

The reflection at a time reads its input only up to that time.

theorem MindFormal.eventually_lt_exitTime {Ω : Type u_1} {I : Type u_2} [Fintype I] {Z : NNReal → Ω → I → ℝ} {ω : Ω} (hc : Continuous fun (t : NNReal) => Z t ω) (t : NNReal) :
∀ᶠ (n : ℕ) in Filter.atTop, ↑t < exitTime Z (↑n) ω

A continuous path leaves the ball of radius n after any given time, for every large n.

The integrand measure lives at positive times.

A predictable property that holds almost everywhere for the integrand measure holds, on almost every path, at almost every time of (0,T].

The cut of a function by [0, τ] is where it agrees with another is predictable.

theorem MindFormal.ItoFiltration.driftPath_itoVec_eq_until {Ω : 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 μ] (hB : BrownianFiltration μ ℱ B) {T : NNReal} {τ : Ω → WithTop NNReal} (hτ : MeasureTheory.IsStoppingTime ℱ τ) {β β' : NNReal × Ω → I → ℝ} (hβ : MeasureTheory.StronglyMeasurable β) (hβ' : MeasureTheory.StronglyMeasurable β') {f f' : I → J → ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))} (hb : ∀ᵐ (z : NNReal × Ω) ∂predMeasure ℱ μ T, z ∈ stopSet τ → β z = β' z) (hf : ∀ (i : I) (k : J), ∀ᵐ (z : NNReal × Ω) ∂predMeasure ℱ μ T, z ∈ stopSet τ → ↑↑(f i k) z = ↑↑(f' i k) z) :
∀ᵐ (ω : Ω) ∂μ, ∀ (t : NNReal), ↑t ≤ τ ω → driftPath β T t ω = driftPath β' T t ω ∧ ∀ (i : I), itoVecCont B T (f i) t ω = itoVecCont B T (f' i) t ω

Integrands that agree up to a stopping time give drift paths and integrals that agree up to it, almost surely at all times up to it.

Coefficients Lipschitz on bounded sets: integrands, free path, solution #

The ball of radius ‖x‖ + 1 is a neighborhood of x.

theorem MindFormal.ItoFiltration.LocalCoeff.continuous_drift {Ω : 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) (z : NNReal × Ω) :

The drift is continuous in the state.

theorem MindFormal.ItoFiltration.LocalCoeff.continuous_amp {Ω : 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) (z : NNReal × Ω) :

The amplitude is continuous in the state.

theorem MindFormal.ItoFiltration.LocalCoeff.stronglyMeasurable_drift {Ω : 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) {X : NNReal × Ω → I → ℝ} (hX : Measurable X) :

The drift at a predictable state is predictable.

theorem MindFormal.ItoFiltration.LocalCoeff.stronglyMeasurable_amp {Ω : 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) {X : NNReal × Ω → I → ℝ} (hX : Measurable X) (i : I) (k : J) :
MeasureTheory.StronglyMeasurable fun (z : NNReal × Ω) => c.amp z (X z) i k

Each coordinate of the amplitude at a predictable state is predictable.

theorem MindFormal.ItoFiltration.LocalCoeff.abs_amp_le {Ω : 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) (z : NNReal × Ω) (x : I → ℝ) (i : I) (k : J) :
|c.amp z x i k| ≤ ↑c.K * (1 + ‖x‖)

Each coordinate of the amplitude grows at most linearly.

theorem MindFormal.ItoFiltration.LocalCoeff.memLp_drift {Ω : Type u_1} {I : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} [Fintype I] [Fintype J] (c : LocalCoeff ℱ I J) {T : NNReal} [MeasureTheory.IsFiniteMeasure μ] (X : ↥(MeasureTheory.Lp (I → ℝ) 2 (predMeasure ℱ μ T))) :
MeasureTheory.MemLp (fun (z : NNReal × Ω) => c.drift z (↑↑X z)) 2 (predMeasure ℱ μ T)

The drift at a state in the integrand space is in it.

theorem MindFormal.ItoFiltration.LocalCoeff.memLp_amp {Ω : Type u_1} {I : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} [Fintype I] [Fintype J] (c : LocalCoeff ℱ I J) {T : NNReal} [MeasureTheory.IsFiniteMeasure μ] (X : ↥(MeasureTheory.Lp (I → ℝ) 2 (predMeasure ℱ μ T))) (i : I) (k : J) :
MeasureTheory.MemLp (fun (z : NNReal × Ω) => c.amp z (↑↑X z) i k) 2 (predMeasure ℱ μ T)

Each coordinate of the amplitude at a state in the integrand space is in it.

noncomputable def MindFormal.ItoFiltration.LocalCoeff.ampLp {Ω : Type u_1} {I : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} [Fintype I] [Fintype J] (c : LocalCoeff ℱ I J) {T : NNReal} [MeasureTheory.IsFiniteMeasure μ] (X : ↥(MeasureTheory.Lp (I → ℝ) 2 (predMeasure ℱ μ T))) (i : I) (k : J) :
↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))

Coordinate (i, k) of the amplitude at a state, in the integrand space.

Equations
Instances For
    theorem MindFormal.ItoFiltration.LocalCoeff.coeFn_ampLp {Ω : Type u_1} {I : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} [Fintype I] [Fintype J] (c : LocalCoeff ℱ I J) {T : NNReal} [MeasureTheory.IsFiniteMeasure μ] (X : ↥(MeasureTheory.Lp (I → ℝ) 2 (predMeasure ℱ μ T))) (i : I) (k : J) :
    ↑↑(c.ampLp X i k) =ᵐ[predMeasure ℱ μ T] fun (z : NNReal × Ω) => c.amp z (↑↑X z) i k
    noncomputable def MindFormal.ItoFiltration.LocalCoeff.freePath {Ω : Type u_1} {I : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} [Fintype I] [Fintype J] (c : LocalCoeff ℱ I J) {T : NNReal} [MeasureTheory.IsFiniteMeasure μ] (B : J → NNReal → Ω → ℝ) (x₀ : Ω → I → ℝ) (X : ↥(MeasureTheory.Lp (I → ℝ) 2 (predMeasure ℱ μ T))) (t : NNReal) (ω : Ω) :
    I → ℝ

    The free path at a state X: the start, plus the drift integral of b(s, X_s), plus for each coordinate i the integral Σₖ ∫₀ᵗ σᵢₖ(s, X_s) dBᵏ, on [0,T].

    Equations
    Instances For
      noncomputable def MindFormal.ItoFiltration.LocalCoeff.solPath {Ω : Type u_1} {I : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} [Fintype I] [Fintype J] (c : LocalCoeff ℱ I J) {T : NNReal} [MeasureTheory.IsFiniteMeasure μ] (B : J → NNReal → Ω → ℝ) (reflect : PathReflection I) (x₀ : Ω → I → ℝ) (X : ↥(MeasureTheory.Lp (I → ℝ) 2 (predMeasure ℱ μ T))) (t : NNReal) (ω : Ω) :
      I → ℝ

      The reflected path at a state: the reflection of the free path.

      Equations
      Instances For
        theorem MindFormal.ItoFiltration.LocalCoeff.continuous_freePath {Ω : 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) (x₀ : Ω → I → ℝ) (X : ↥(MeasureTheory.Lp (I → ℝ) 2 (predMeasure ℱ μ T))) :
        ∀ᵐ (ω : Ω) ∂μ, Continuous fun (t : NNReal) => c.freePath B x₀ X t ω

        The free path is continuous, almost surely.

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

        A process solves the reflected equation on [0,T]: its paths are continuous, it is adapted, it is in the integrand space, and almost surely at all times it is the reflection of x₀ + ∫₀ᵗ b(s, Z_s) ds + Σₖ ∫₀ᵗ σₖ(s, Z_s) dBᵏ, the integrands read at its own class.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem MindFormal.ItoFiltration.LocalCoeff.isSolutionUntil_truncate {Ω : 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 → ℝ} {Z : NNReal → Ω → I → ℝ} (hZ : c.IsSolution B reflect x₀ Z) (R : NNReal) {ρ : Ω → WithTop NNReal} (hρ : MeasureTheory.IsStoppingTime ℱ ρ) (hle : ∀ (ω : Ω), ρ ω ≤ exitTime Z R ω) :
          (c.truncate R).IsSolutionUntil B reflect x₀ ρ Z

          A solution solves each truncated equation up to its exit time from the truncation's ball, and up to any earlier stopping time.

          A stopping time that is ⊤ everywhere.

          theorem MindFormal.ItoFiltration.LocalCoeff.eq_of_agree_until {Ω : 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) {τ : Ω → WithTop NNReal} (hτ : MeasureTheory.IsStoppingTime ℱ τ) (c' : LocalCoeff ℱ I J) {Z Z' : NNReal → Ω → I → ℝ} (hZ : c.IsSolution B reflect x₀ Z) (hZ' : c'.IsSolution B reflect x₀ Z') (hagree : ∀ᵐ (ω : Ω) ∂μ, ∀ (s : NNReal), 0 < s → ↑s ≤ τ ω → c.drift (s, ω) (Z s ω) = c'.drift (s, ω) (Z s ω) ∧ c.amp (s, ω) (Z s ω) = c'.amp (s, ω) (Z s ω)) :
          ∀ᵐ (ω : Ω) ∂μ, ∀ (t : NNReal), ↑t ≤ τ ω → Z t ω = Z' t ω

          Agreement up to a stopping time. Let Z solve the reflected equation with coefficients c and Z' with coefficients c' (both Lipschitz on bounded sets, of linear growth), from one start, on [0,T], every null set being known at time 0. If along Z, up to a stopping time τ, the two drifts and the two amplitudes agree, then almost surely Z and Z' agree at every time up to τ.

          theorem MindFormal.ItoFiltration.LocalCoeff.exists_unique_solution {Ω : 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 μ) :
          ∃ (X : NNReal → Ω → I → ℝ), c.IsSolution B reflect x₀ X ∧ (∀ (X' : NNReal → Ω → I → ℝ), c.IsSolution B reflect x₀ X' → ∀ᵐ (ω : Ω) ∂μ, ∀ (t : NNReal), X' t ω = X t ω) ∧ ∫⁻ (ω : Ω), (⨆ (t : NNReal), ⨆ (_ : t ≤ T), ‖X t ω‖ₑ) ^ 2 ∂μ ≤ c.momentConst reflect μ T x₀

          The reflected equation, untruncated, as one process. 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², the reflected equation has a solution X on [0,T], the truncated solutions patched where they settle; every solution is almost surely equal to X at all times; and the squared running maximum of X up to T has mean at most the moment constant (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.

          Restarts at a stopping time #

          noncomputable def MindFormal.ItoFiltration.LocalCoeff.switchAt {Ω : Type u_1} {I : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} [Fintype I] [Fintype J] {τ : Ω → WithTop NNReal} (c₀ c₁ : LocalCoeff ℱ I J) (hτ : MeasureTheory.IsStoppingTime ℱ τ) :
          LocalCoeff ℱ I J

          Coefficients switched at a stopping time: c₀ on [0, τ] and c₁ after τ. The coefficients after τ may read what is known at τ, so long as they are predictable.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem MindFormal.ItoFiltration.LocalCoeff.exists_unique_solution_switchAt {Ω : 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] {T : NNReal} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (reflect : PathReflection I) {x₀ : Ω → I → ℝ} {τ : Ω → WithTop NNReal} (hnull : ∀ (s : Set Ω), μ s = 0 → MeasurableSet s) (hx₀ : MeasureTheory.StronglyMeasurable x₀) (hx₀2 : MeasureTheory.MemLp x₀ 2 μ) (c₀ c₁ : LocalCoeff ℱ I J) (hτ : MeasureTheory.IsStoppingTime ℱ τ) :
            ∃ (X : NNReal → Ω → I → ℝ), (c₀.switchAt c₁ hτ).IsSolution B reflect x₀ X ∧ (∀ (X' : NNReal → Ω → I → ℝ), (c₀.switchAt c₁ hτ).IsSolution B reflect x₀ X' → ∀ᵐ (ω : Ω) ∂μ, ∀ (t : NNReal), X' t ω = X t ω) ∧ ∀ (X₀ : NNReal → Ω → I → ℝ), c₀.IsSolution B reflect x₀ X₀ → ∀ᵐ (ω : Ω) ∂μ, ∀ (t : NNReal), ↑t ≤ τ ω → X t ω = X₀ t ω

            The solution continued from a stopping time. With coefficients c₀ up to a stopping time τ and c₁ after it (both Lipschitz on bounded sets, of linear growth), every null set known at time 0 and a start known at time 0 and in L², the reflected equation has a solution X on [0,T], unique almost surely at all times; and X agrees, almost surely at all times up to τ, with any solution for c₀ alone. Switching again at a later stopping time is the same statement with switchAt c₀ c₁ hτ in place of c₀.