MindFormal v1.0.0One Mind

MindFormal.Tools.ItoStopping

The integral of ItoFiltration stopped at a stopping time. For a stopping time τ of the filtration carrying the sources, the continuous version of ∫ f dBʲ read at t ∧ τ is almost surely the continuous version of ∫ 1{s ≤ τ} f dBʲ read at t: an integral started or stopped at a stopping time is an integral from 0 of an integrand cut by the stopping time. The route: an integrand switched on after a time a on an event F known at a integrates to 1_F times the increment of the integral after a (checked on the predictable rectangles, which determine a continuous linear map); the stochastic interval [0, τ] is approximated from above on the grids of [0,T] with n + 1 steps, on which the cut integral telescopes to the integral read at the grid time following τ; and the limit is taken in L² on one side and along the continuous paths on the other.

Multiplying an L² function by the indicator of a set #

noncomputable def MindFormal.indicatorCLM {α : Type u_1} {m : MeasurableSpace α} {ν : MeasureTheory.Measure α} (S : Set α) (hS : MeasurableSet S) :

Multiplication by the indicator of a measurable set, as a continuous linear map on L².

Equations
Instances For
    theorem MindFormal.coeFn_indicatorCLM {α : Type u_1} {m : MeasurableSpace α} {ν : MeasureTheory.Measure α} (S : Set α) (hS : MeasurableSet S) (f : ↥(MeasureTheory.Lp ℝ 2 ν)) :
    ↑↑((indicatorCLM S hS) f) =ᵐ[ν] S.indicator ↑↑f
    theorem MindFormal.tendsto_indicatorCLM {α : Type u_1} {m : MeasurableSpace α} {ν : MeasureTheory.Measure α} {S : ℕ → Set α} {S' : Set α} (hS : ∀ (n : ℕ), MeasurableSet (S n)) (hS' : MeasurableSet S') (h : ∀ᵐ (x : α) ∂ν, ∀ᶠ (n : ℕ) in Filter.atTop, x ∈ S n ↔ x ∈ S') (f : ↥(MeasureTheory.Lp ℝ 2 ν)) :
    Filter.Tendsto (fun (n : ℕ) => (indicatorCLM (S n) ⋯) f) Filter.atTop (nhds ((indicatorCLM S' hS') f))

    Multiplying by the indicators of sets whose memberships eventually agree with those of S', almost everywhere, converges in L² to multiplying by the indicator of S'.

    A continuous linear map on the integrand space is fixed by the rectangles #

    theorem MindFormal.ItoFiltration.eq_zero_of_inner_rect {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} [MeasureTheory.IsFiniteMeasure μ] {T : NNReal} (g : ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))) (h : ∀ (a b : NNReal) (hab : a ≤ b) (hbT : b ≤ T) (F : Set Ω) (hF : MeasurableSet F), inner ℝ ((emb μ T) (rect hab hbT hF)) g = 0) :
    g = 0

    An integrand orthogonal to every predictable rectangle ending by T is zero.

    theorem MindFormal.ItoFiltration.clm_ext_rect {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} [MeasureTheory.IsFiniteMeasure μ] {T : NNReal} {E : Type u_3} [NormedAddCommGroup E] [NormedSpace ℝ E] (L₁ L₂ : ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T)) →L[ℝ] E) (h : ∀ (a b : NNReal) (hab : a ≤ b) (hbT : b ≤ T) (F : Set Ω) (hF : MeasurableSet F), L₁ ((emb μ T) (rect hab hbT hF)) = L₂ ((emb μ T) (rect hab hbT hF))) :
    L₁ = L₂

    Two continuous linear maps on the integrand space that agree on every predictable rectangle ending by T are equal.

    The integral of an integrand switched on after a time, on an event known at it #

    theorem MindFormal.ItoFiltration.itoAt_rect {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {B : J → NNReal → Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j : J) {T a b : NNReal} (hab : a ≤ b) (hbT : b ≤ T) {F : Set Ω} (hF : MeasurableSet F) (t : NNReal) :
    ↑↑((itoAt hB j T t) ((emb μ T) (rect hab hbT hF))) =ᵐ[μ] F.indicator fun (ω : Ω) => B j (min b t) ω - B j (min a t) ω

    The integral of the predictable rectangle (a,b] × F, stopped at t, is 1_F times the source's increment over (a ∧ t, b ∧ t].

    @[reducible, inline]
    noncomputable abbrev MindFormal.ItoFiltration.restrictPred {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {T : NNReal} (S : Set (NNReal × Ω)) (hS : MeasurableSet S) :

    An integrand times the indicator of a predictable set.

    Equations
    Instances For
      theorem MindFormal.ItoFiltration.increment_identity (X : NNReal → ℝ) {a c d t : NNReal} (hcd : c ≤ d) :
      X (min d t) - X (min c t) - (X (min d (min t a)) - X (min c (min t a))) = if max a c ≤ d then X (min d t) - X (min (max a c) t) else 0

      The increments of a path stopped at t and at t ∧ a, over (c,d]: their difference is the increment over (a ∨ c, d] stopped at t when that interval is not empty, and 0 otherwise.

      theorem MindFormal.ItoFiltration.itoAt_restrict_Ioi {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {B : J → NNReal → Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j : J) (T t a : NNReal) {F : Set Ω} (hF : MeasurableSet F) (f : ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))) :
      (itoAt hB j T t) ((restrictPred (Set.Ioi a ×ˢ F) ⋯) f) = (indicatorCLM F ⋯) ((itoAt hB j T t) f - (itoAt hB j T (min t a)) f)

      An integrand switched on after a, on an event F known at a: the integral stopped at t of f restricted to (a, ∞) × F is 1_F times the increment of the integral of f from t ∧ a to t.

      theorem MindFormal.ItoFiltration.itoAt_restrict_Ioc {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {B : J → NNReal → Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j : J) (T t : NNReal) {a b : NNReal} (hab : a ≤ b) {G : Set Ω} (hG : MeasurableSet G) (f : ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))) :
      (itoAt hB j T t) ((restrictPred (Set.Ioc a b ×ˢ G) ⋯) f) = (indicatorCLM G ⋯) ((itoAt hB j T (min t b)) f - (itoAt hB j T (min t a)) f)

      An integrand switched on over (a,b], on an event G known at a: the integral stopped at t is 1_G times the increment of the integral of f from t ∧ a to t ∧ b.

      The stochastic interval of a stopping time, and its approximation on a grid #

      def MindFormal.ItoFiltration.stopSet {Ω : Type u_1} (τ : Ω → WithTop NNReal) :

      The stochastic interval [0, τ]: the pairs (s, ω) with s ≤ τ ω.

      Equations
      Instances For

        The stochastic interval of a stopping time is predictable: its indicator is adapted and left-continuous.

        noncomputable def MindFormal.ItoFiltration.gridTime (T : NNReal) (n k : ℕ) :

        Grid time k of [0,T] cut into n + 1 steps.

        Equations
        Instances For
          def MindFormal.ItoFiltration.gridEvent {Ω : Type u_1} (T : NNReal) (τ : Ω → WithTop NNReal) (n k : ℕ) :
          Set Ω

          The grid's event that τ comes after grid time k.

          Equations
          Instances For
            def MindFormal.ItoFiltration.gridRect {Ω : Type u_1} (T : NNReal) (τ : Ω → WithTop NNReal) (n k : ℕ) :

            The grid's rectangle (tₖ, tₖ₊₁] × {tₖ < τ}.

            Equations
            Instances For
              def MindFormal.ItoFiltration.stopGrid {Ω : Type u_1} (T : NNReal) (τ : Ω → WithTop NNReal) (n : ℕ) :

              The approximation of [0, τ] on the grid: the union of the grid's rectangles, k ≤ n.

              Equations
              Instances For
                theorem MindFormal.ItoFiltration.eventually_mem_stopGrid_iff {Ω : Type u_1} (T : NNReal) (τ : Ω → WithTop NNReal) {s : NNReal} (hs0 : 0 < s) (hsT : s ≤ T) (ω : Ω) :

                On (0,T] × Ω, membership of the grid approximation eventually agrees with membership of the stochastic interval.

                The cut integral on the grid telescopes #

                noncomputable def MindFormal.ItoFiltration.gridCount (h : NNReal) (m : ℕ) (x : WithTop NNReal) :

                The number of grid times k h, k < m, strictly before x.

                Equations
                Instances For
                  theorem MindFormal.ItoFiltration.sum_grid_telescope (g : NNReal → ℝ) (x : WithTop NNReal) (h : NNReal) (m : ℕ) :
                  (∑ k ∈ Finset.range m, if ↑(↑k * h) < x then g ((↑k + 1) * h) - g (↑k * h) else 0) = g (↑(gridCount h m x) * h) - g 0 ∧ gridCount h m x ≤ m ∧ (x ≤ ↑(↑(gridCount h m x) * h) ∨ gridCount h m x = m) ∧ (gridCount h m x = 0 ∨ ↑(↑(gridCount h m x - 1) * h) < x)

                  The telescoping sum along a grid cut by a time x, with where it stops: the sum of the increments of g over the grid steps that start before x is g at the grid time following x (or the last grid time) minus g 0; and that grid time is within one step of x.

                  theorem MindFormal.ItoFiltration.dist_gridCount_le (T : NNReal) (x : WithTop NNReal) (n : ℕ) :
                  dist (↑(gridCount (T / (↑n + 1)) (n + 1) x) * (T / (↑n + 1))) (min x ↑T).untopA ≤ ↑(T / (↑n + 1))

                  On the grid of [0,T] with n + 1 steps, the grid time following x (or T) is within one step of x ∧ T.

                  theorem MindFormal.ItoFiltration.tendsto_gridCount (T : NNReal) (x : WithTop NNReal) :
                  Filter.Tendsto (fun (n : ℕ) => ↑(gridCount (T / (↑n + 1)) (n + 1) x) * (T / (↑n + 1))) Filter.atTop (nhds (min x ↑T).untopA)

                  On the grid of [0,T] with n + 1 steps, the grid time following x tends to x ∧ T.

                  theorem MindFormal.ItoFiltration.pairwiseDisjoint_gridRect {Ω : Type u_1} (T : NNReal) (τ : Ω → WithTop NNReal) (n : ℕ) :
                  (↑(Finset.range (n + 1))).PairwiseDisjoint (gridRect T τ n)

                  The grid's rectangles are disjoint.

                  theorem MindFormal.ItoFiltration.restrictPred_stopGrid {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} [MeasureTheory.IsFiniteMeasure μ] {τ : Ω → WithTop NNReal} (hτ : MeasureTheory.IsStoppingTime ℱ τ) (T : NNReal) (n : ℕ) (f : ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))) :
                  (restrictPred (stopGrid T τ n) ⋯) f = ∑ k ∈ Finset.range (n + 1), (restrictPred (gridRect T τ n k) ⋯) f

                  The grid approximation cuts an integrand into the sum of its cuts by the grid's rectangles.

                  theorem MindFormal.ItoFiltration.itoAt_stopGrid {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {B : J → NNReal → Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j : J) (T s : NNReal) {τ : Ω → WithTop NNReal} (hτ : MeasureTheory.IsStoppingTime ℱ τ) (n : ℕ) (f : ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))) :
                  (itoAt hB j T s) ((restrictPred (stopGrid T τ n) ⋯) f) = ∑ k ∈ Finset.range (n + 1), (indicatorCLM (gridEvent T τ n k) ⋯) ((itoAt hB j T (min s (gridTime T n (k + 1)))) f - (itoAt hB j T (min s (gridTime T n k))) f)

                  The integral of the grid approximation: the sum over the grid steps that start before τ of the increments of the integral of f.

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

                  The continuous version is frozen after the horizon.

                  The stopped integral #

                  theorem MindFormal.ItoFiltration.itoCont_stopSet {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {B : J → NNReal → Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j : J) (T : NNReal) (f : ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))) {τ : Ω → WithTop NNReal} (hτ : MeasureTheory.IsStoppingTime ℱ τ) (t : NNReal) :
                  itoCont B j T ((restrictPred (stopSet τ) ⋯) f) t =ᵐ[μ] MeasureTheory.stoppedProcess (itoCont B j T f) τ t

                  The integral stopped at a stopping time. For a stopping time τ of the filtration carrying the sources, the continuous version of ∫ f dBʲ read at t ∧ τ is almost surely the continuous version of ∫ 1{s ≤ τ} f dBʲ read at t.

                  theorem MindFormal.ItoFiltration.ae_forall_eq_of_continuous {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {E : Type u_3} [TopologicalSpace E] [T2Space E] {X Y : NNReal → Ω → E} (hX : ∀ᵐ (ω : Ω) ∂μ, Continuous fun (t : NNReal) => X t ω) (hY : ∀ᵐ (ω : Ω) ∂μ, Continuous fun (t : NNReal) => Y t ω) (h : ∀ (t : NNReal), X t =ᵐ[μ] Y t) :
                  ∀ᵐ (ω : Ω) ∂μ, ∀ (t : NNReal), X t ω = Y t ω

                  Two processes with almost surely continuous paths that agree almost surely at each time agree almost surely at all times.

                  Reading a path at t ∧ x is continuous in t.

                  theorem MindFormal.ItoFiltration.itoCont_stopSet_all {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {B : J → NNReal → Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j : J) (T : NNReal) (f : ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))) {τ : Ω → WithTop NNReal} (hτ : MeasureTheory.IsStoppingTime ℱ τ) :
                  ∀ᵐ (ω : Ω) ∂μ, ∀ (t : NNReal), itoCont B j T ((restrictPred (stopSet τ) ⋯) f) t ω = MeasureTheory.stoppedProcess (itoCont B j T f) τ t ω

                  The integral stopped at a stopping time, at all times at once: almost surely, for every t, the continuous version of ∫ 1{s ≤ τ} f dBʲ at t is the continuous version of ∫ f dBʲ at t ∧ τ.

                  theorem MindFormal.ItoFiltration.itoVecCont_stopSet {Ω : 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))) {τ : Ω → WithTop NNReal} (hτ : MeasureTheory.IsStoppingTime ℱ τ) :
                  ∀ᵐ (ω : Ω) ∂μ, ∀ (t : NNReal), itoVecCont B T (fun (k : J) => (restrictPred (stopSet τ) ⋯) (f k)) t ω = MeasureTheory.stoppedProcess (itoVecCont B T f) τ t ω

                  The test of the risk: the multi-source integral stopped at a stopping time. On one filtration carrying the sources, for a stopping time τ, almost surely, for every t, Σₖ ∫₀^{t∧τ} fₖ dBᵏ = Σₖ ∫₀^t 1{s ≤ τ} fₖ dBᵏ for the continuous versions.