MindFormal v1.0.0One Mind

MindFormal.Tools.StateNoise

Noise that depends on the state, as a case of the noise interface. Its data: one filtration carrying finitely many Brownian sources, with every null set known at time 0; a drift and an amplitude that may read the time, the sample and the state, Lipschitz on bounded sets and of linear growth (EQUATIONS.md, C1); a reflection (at the floor, or at declared floors and caps); a start known at time 0 and in L²; a horizon T; a radius R > 0; and an allowance positive at positive levels. The state is the unique solution of the reflected equation (ReflectedProcess), and the driver is the noise it carries, ξᵢ = Σₖ ∫₀^{t∧T} σᵢₖ(s, X_s) dBᵏ; a row whose amplitude is identically zero drives nothing, on every path. The driver meets NoiseDriver: its paths are continuous almost surely and zero at time 0, each coordinate is adapted, and it strays beyond its allowance by time H with chance at most M/R² + Σᵢ H |J| K² (1 + R)² / allow(a)ᵢ². Either the state leaves the ball of radius R by T, with chance at most M/R² (M the moment constant), or up to T the driver is the integral stopped at that exit, whose integrand is at most K (1 + R) (the stray bound of ItoBounds). The failure is a function of the horizon and the levels alone. Almost surely at all times the state is the reflection of the start plus its drift integral plus the driver, so a run driven by this driver with this drift is the state; and the native events read from the state are stopping times.

theorem MindFormal.ItoFiltration.itoVecCont_eq_zero {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {B : J → NNReal → Ω → ℝ} [Fintype J] [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (T : NNReal) {f : J → ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))} (hf : ∀ (k : J), f k = 0) :
∀ᵐ (ω : Ω) ∂μ, ∀ (t : NNReal), itoVecCont B T f t ω = 0

The continuous version of the vector integral of zero integrands is zero, almost surely at all times.

theorem MindFormal.ItoFiltration.itoVecCont_min {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {B : J → NNReal → Ω → ℝ} [Fintype J] [MeasureTheory.IsFiniteMeasure μ] (T : NNReal) (f : J → ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))) (u : NNReal) (ω : Ω) :
itoVecCont B T f (min u T) ω = itoVecCont B T f u ω

The continuous version of the vector integral is frozen after the horizon.

theorem MindFormal.ItoFiltration.min_stopTime {x : WithTop NNReal} {T : NNReal} (hx : ↑T < x) (t : NNReal) :
min (stopTime x t) T = min t T

A time stopped after the horizon reads the horizon alike.

structure MindFormal.ItoFiltration.StateNoise {Ω : Type u_1} [mΩ : MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) (ℱ : MeasureTheory.Filtration NNReal mΩ) (I : Type u_3) (J : Type u_4) [Fintype I] [Fintype J] :
Type (max (max u_1 u_3) u_4)

Noise that depends on the state: the data of the case.

Instances For
    theorem MindFormal.ItoFiltration.StateNoise.exists_state {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {I : Type u_3} [Fintype I] [Fintype J] (S : StateNoise μ ℱ I J) :
    ∃ (X : NNReal → Ω → I → ℝ), S.coeff.IsSolution S.sources S.reflect S.start X ∧ (∀ (X' : NNReal → Ω → I → ℝ), S.coeff.IsSolution S.sources S.reflect S.start X' → ∀ᵐ (ω : Ω) ∂μ, ∀ (t : NNReal), X' t ω = X t ω) ∧ ∫⁻ (ω : Ω), (⨆ (t : NNReal), ⨆ (_ : t ≤ S.horizon), ‖X t ω‖ₑ) ^ 2 ∂μ ≤ S.coeff.momentConst S.reflect μ S.horizon S.start
    noncomputable def MindFormal.ItoFiltration.StateNoise.state {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {I : Type u_3} [Fintype I] [Fintype J] (S : StateNoise μ ℱ I J) :
    NNReal → Ω → I → ℝ

    The state: the unique solution of the reflected equation.

    Equations
    Instances For
      theorem MindFormal.ItoFiltration.StateNoise.state_spec {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {I : Type u_3} [Fintype I] [Fintype J] (S : StateNoise μ ℱ I J) [MeasureTheory.IsProbabilityMeasure μ] :
      S.coeff.IsSolution S.sources S.reflect S.start S.state ∧ (∀ (X' : NNReal → Ω → I → ℝ), S.coeff.IsSolution S.sources S.reflect S.start X' → ∀ᵐ (ω : Ω) ∂μ, ∀ (t : NNReal), X' t ω = S.state t ω) ∧ ∫⁻ (ω : Ω), (⨆ (t : NNReal), ⨆ (_ : t ≤ S.horizon), ‖S.state t ω‖ₑ) ^ 2 ∂μ ≤ S.coeff.momentConst S.reflect μ S.horizon S.start

      The state solves the reflected equation, every solution is almost surely the state at all times, and its squared running maximum up to the horizon has mean at most the moment constant.

      theorem MindFormal.ItoFiltration.StateNoise.memLp_state {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {I : Type u_3} [Fintype I] [Fintype J] (S : StateNoise μ ℱ I J) :
      MeasureTheory.MemLp (fun (z : NNReal × Ω) => S.state z.1 z.2) 2 (predMeasure ℱ μ S.horizon)
      noncomputable def MindFormal.ItoFiltration.StateNoise.stateLp {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {I : Type u_3} [Fintype I] [Fintype J] (S : StateNoise μ ℱ I J) :
      ↥(MeasureTheory.Lp (I → ℝ) 2 (predMeasure ℱ μ S.horizon))

      The state's class in the integrand space.

      Equations
      Instances For
        noncomputable def MindFormal.ItoFiltration.StateNoise.driverPath {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {I : Type u_3} [Fintype I] [Fintype J] (S : StateNoise μ ℱ I J) (t : NNReal) (ω : Ω) (i : I) :

        The driver: coordinate i is the continuous version of Σₖ ∫₀^{t∧T} σᵢₖ(s, X_s) dBᵏ, the amplitude read at the state; a row whose amplitude is identically zero drives nothing.

        Equations
        Instances For
          theorem MindFormal.ItoFiltration.StateNoise.driverPath_of_amp_zero {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {I : Type u_3} [Fintype I] [Fintype J] (S : StateNoise μ ℱ I J) {i : I} (hi : ∀ (z : NNReal × Ω) (x : I → ℝ) (k : J), S.coeff.amp z x i k = 0) (t : NNReal) (ω : Ω) :
          S.driverPath t ω i = 0

          A row whose amplitude is identically zero drives nothing, on every path.

          theorem MindFormal.ItoFiltration.StateNoise.driverPath_ae {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {I : Type u_3} [Fintype I] [Fintype J] (S : StateNoise μ ℱ I J) [MeasureTheory.IsProbabilityMeasure μ] :
          ∀ᵐ (ω : Ω) ∂μ, ∀ (t : NNReal) (i : I), S.driverPath t ω i = itoVecCont S.sources S.horizon (S.coeff.ampLp S.stateLp i) t ω

          Almost surely at all times, the driver is the vector integral of the amplitude at the state.

          theorem MindFormal.ItoFiltration.StateNoise.state_eq_reflectPath {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {I : Type u_3} [Fintype I] [Fintype J] (S : StateNoise μ ℱ I J) [MeasureTheory.IsProbabilityMeasure μ] :
          ∀ᵐ (ω : Ω) ∂μ, ∀ (t : NNReal), S.state t ω = reflectPath S.reflect S.horizon (fun (s : NNReal) => S.start ω + driftPath (fun (z : NNReal × Ω) => S.coeff.drift z (S.state z.1 z.2)) S.horizon s ω + S.driverPath s ω) t

          The state is the reflection of its start, its drift integral and the driver, almost surely at all times: a run driven by this driver with this drift is the state.

          The chance that the state leaves the ball of radius R by the horizon is at most M/R².

          theorem MindFormal.ItoFiltration.StateNoise.stray {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {I : Type u_3} [Fintype I] [Fintype J] (S : StateNoise μ ℱ I J) [MeasureTheory.IsProbabilityMeasure μ] (H : NNReal) (a : J → ℝ) (ha : ∀ (j : J), 0 < a j) :
          μ.real {ω : Ω | ¬∀ t ≤ H, ∀ (i : I), |S.driverPath t ω i| ≤ S.allow a i} ≤ (S.coeff.momentConst S.reflect μ S.horizon S.start).toReal / ↑S.radius ^ 2 + ∑ i : I, ↑H * (↑(Fintype.card J) * (↑S.coeff.K * (1 + ↑S.radius)) ^ 2) / S.allow a i ^ 2

          The stray bound for linear-growth amplitudes. At positive levels a, the driver leaves its allowance by time H with chance at most M/R² + Σᵢ H |J| K² (1 + R)² / allow(a)ᵢ².

          noncomputable def MindFormal.ItoFiltration.StateNoise.driver {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {I : Type u_3} [Fintype I] [Fintype J] (S : StateNoise μ ℱ I J) :
          NoiseDriver μ ℱ I J

          The state-dependent driver meets the noise interface: continuous almost surely, zero at time 0, adapted in each coordinate, with the stray bound for linear-growth amplitudes, whose failure is a function of the horizon and the levels alone.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem MindFormal.ItoFiltration.StateNoise.isStoppingTime_nativeEvent {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {I : Type u_3} [Fintype I] [Fintype J] (S : StateNoise μ ℱ I J) [MeasureTheory.IsProbabilityMeasure μ] {ι : Type u_4} [Finite ι] {g : ι → (I → ℝ) → ℝ} (hg : ∀ (i : ι), Continuous (g i)) (pause : NNReal) (n : ℕ) :
            MeasureTheory.IsStoppingTime ℱ (nativeEvent (fun (t : NNReal) (ω : Ω) (i : ι) => g i (S.state t ω)) pause n)

            Native events of the state are stopping times: for guards read from the state through continuous maps, every event of the native schedule with any pause.

            @[reducible, inline]
            noncomputable abbrev MindFormal.ItoFiltration.stateCase (Ω : Type u_3) (I : Type u_4) (J : Type u_5) [MeasurableSpace Ω] [Fintype I] [Fintype J] :
            NoiseCase Ω I J

            The state-dependent case of noise: its data are StateNoise, its driver the noise the state carries.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For