MindFormal v1.0.0One Mind

MindFormal.Tools.ItoFiltration

The Itô integral on one filtration carrying several Brownian sources (BrownianFiltration), on a horizon [0,T]. For each source j, the integral of a predictable integrand in L²(dt ⊗ P) is a continuous linear map into L²(P), with the polarized isometry ⟪∫ f dBʲ, ∫ g dBᵏ⟫ = ⟪f, g⟫ for one source and 0 for two different sources; the vector integral Σⱼ ∫ fⱼ dBʲ has squared norm Σⱼ ‖fⱼ‖²; and t ↦ ∫₀ᵗ f dBʲ is defined for every t as the same extension of the elementary integral stopped at t. The construction is Coelho's for one source in its natural filtration (vendor/MathFin, ItoIntegralCLM and ItoIntegralProcessGeneral, Apache-2.0, vendor/NOTICE), re-stated for a general filtration: simple processes ending by T are dense in the predictable L² (Dynkin's π-λ theorem over the predictable rectangles), the elementary integral pairs as the integrands do (the rectangle pairing of BrownianFiltration), and LinearMap.extendOfNorm extends it.

The integrand space #

The measure of the integrand space on [0,T]: Lebesgue measure on (0,T] times μ, on the predictable σ-algebra of ℱ.

Equations
Instances For

    The integrand measure is the predictable trace of Lebesgue measure times μ, restricted to (0,T] × Ω.

    The predictable rectangles generate the predictable σ-algebra.

    Simple processes ending by T and their embedding #

    The simple processes whose intervals all end by T.

    Equations
    Instances For

      A simple process is square-integrable for the integrand measure.

      The embedding of the simple processes ending by T into the integrand space.

      Equations
      Instances For
        theorem MindFormal.ItoFiltration.coeFn_emb {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] (T : NNReal) (V : ↥(bdd ℱ T)) :
        ↑↑((emb μ T) V) =ᵐ[predMeasure ℱ μ T] Function.uncurry ↑↑V

        Off the time origin a simple process is the sum of its bands.

        Lebesgue measure on (0,T] charges no single time.

        theorem MindFormal.ItoFiltration.integral_band_mul {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.SFinite μ] (T : NNReal) (p q : NNReal × NNReal) (hp : p.2 ≤ T) (X Y : Ω → ℝ) :
        ∫ (z : NNReal × Ω), MathFin.ItoIntegralL2.elemIntegrand p.1 p.2 X z * MathFin.ItoIntegralL2.elemIntegrand q.1 q.2 Y z ∂(MathFin.ItoIntegralCLM.timeMeasure_T T).prod μ = (∫ (ω : Ω), X ω * Y ω ∂μ) * max 0 (min ↑p.2 ↑q.2 - max ↑p.1 ↑q.1)

        The product of two bands, integrated: the sample correlation times the overlap of the two time intervals, for intervals ending by T.

        The inner product of two embedded simple processes is the integral of their product for Lebesgue measure on (0,T] times μ.

        theorem MindFormal.ItoFiltration.emb_inner {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] (T : NNReal) (V W : ↥(bdd ℱ T)) :
        inner ℝ ((emb μ T) V) ((emb μ T) W) = ∑ p ∈ (↑V).value.support, ∑ q ∈ (↑W).value.support, (∫ (ω : Ω), (↑V).value p ω * (↑W).value q ω ∂μ) * max 0 (min ↑p.2 ↑q.2 - max ↑p.1 ↑q.1)

        The inner product of two embedded simple processes: the double sum over their bands of the sample correlation times the overlap of the time intervals.

        Density of the simple processes #

        noncomputable def MindFormal.ItoFiltration.rect {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {T a b : NNReal} (hab : a ≤ b) (hbT : b ≤ T) {F : Set Ω} (hF : MeasurableSet F) :
        ↥(bdd ℱ T)

        The simple process of the rectangle (a,b] × F, F known at a, b ≤ T.

        Equations
        Instances For
          theorem MindFormal.ItoFiltration.uncurry_rect {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {T a b : NNReal} (hab : a ≤ b) (hbT : b ≤ T) {F : Set Ω} (hF : MeasurableSet F) :
          Function.uncurry ↑↑(rect hab hbT hF) = (Set.Ioc a b ×ˢ F).indicator fun (x : NNReal × Ω) => 1
          theorem MindFormal.ItoFiltration.inner_emb_rect {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] {T a b : NNReal} (hab : a ≤ b) (hbT : b ≤ T) {F : Set Ω} (hF : MeasurableSet F) (g : ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))) :
          inner ℝ ((emb μ T) (rect hab hbT hF)) g = ∫ (z : NNReal × Ω) in Set.Ioc a b ×ˢ F, ↑↑g z ∂predMeasure ℱ μ T
          theorem MindFormal.ItoFiltration.setIntegral_eq_zero_of_rect {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] (T : NNReal) {g : NNReal × Ω → ℝ} (hg : MeasureTheory.Integrable g (predMeasure ℱ μ T)) (h_orth : ∀ R ∈ ℱ.predictableRectangles, ∫ (z : NNReal × Ω) in R, g z ∂predMeasure ℱ μ T = 0) (s : Set (NNReal × Ω)) (hs : MeasurableSet s) :
          ∫ (z : NNReal × Ω) in s, g z ∂predMeasure ℱ μ T = 0

          An integrable function whose integral vanishes over every predictable rectangle has vanishing integral over every predictable set (Dynkin's π-λ theorem).

          Density: the simple processes ending by T are dense in the integrand space.

          The elementary integral against one source #

          noncomputable def MindFormal.ItoFiltration.simpleIto {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {J : Type u_2} (B : J → NNReal → Ω → ℝ) (j : J) (V : ProbabilityTheory.SimpleProcess ℝ ℱ) (t : NNReal) :
          Ω → ℝ

          The elementary integral of a simple process against source j, stopped at time t.

          Equations
          Instances For
            theorem MindFormal.ItoFiltration.simpleIto_apply {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {J : Type u_2} {B : J → NNReal → Ω → ℝ} (j : J) (V : ProbabilityTheory.SimpleProcess ℝ ℱ) (t : NNReal) (ω : Ω) :
            simpleIto B j V t ω = V.value.sum fun (p : NNReal × NNReal) (v : Ω → ℝ) => v ω * (B j (min p.2 t) ω - B j (min p.1 t) ω)
            theorem MindFormal.ItoFiltration.simpleIto_add {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {J : Type u_2} {B : J → NNReal → Ω → ℝ} (j : J) (V W : ProbabilityTheory.SimpleProcess ℝ ℱ) (t : NNReal) :
            simpleIto B j (V + W) t = simpleIto B j V t + simpleIto B j W t
            theorem MindFormal.ItoFiltration.simpleIto_smul {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {J : Type u_2} {B : J → NNReal → Ω → ℝ} (j : J) (c : ℝ) (V : ProbabilityTheory.SimpleProcess ℝ ℱ) (t : NNReal) :
            simpleIto B j (c • V) t = c • simpleIto B j V t
            theorem MindFormal.ItoFiltration.simpleIto_sub {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {J : Type u_2} {B : J → NNReal → Ω → ℝ} (j : J) (V W : ProbabilityTheory.SimpleProcess ℝ ℱ) (t : NNReal) :
            simpleIto B j (V - W) t = simpleIto B j V t - simpleIto B j W t
            theorem MindFormal.ItoFiltration.simpleIto_of_le {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {J : Type u_2} {B : J → NNReal → Ω → ℝ} (j : J) (V : ProbabilityTheory.SimpleProcess ℝ ℱ) {t : NNReal} (ht : ∀ p ∈ V.value.support, p.2 ≤ t) (ω : Ω) :
            simpleIto B j V t ω = V.value.sum fun (p : NNReal × NNReal) (v : Ω → ℝ) => v ω * (B j p.2 ω - B j p.1 ω)

            Past every right endpoint the stopped integral is the full increment sum.

            @[simp]
            theorem MindFormal.ItoFiltration.simpleIto_zero_time {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {J : Type u_2} {B : J → NNReal → Ω → ℝ} (j : J) (V : ProbabilityTheory.SimpleProcess ℝ ℱ) :
            simpleIto B j V 0 = 0
            theorem MindFormal.ItoFiltration.simpleIto_measurable {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} {J : Type u_2} {B : J → NNReal → Ω → ℝ} (hB : BrownianFiltration μ ℱ B) (j : J) (V : ProbabilityTheory.SimpleProcess ℝ ℱ) (t : NNReal) :

            The stopped integral is known at its time.

            The stopped integral is square-integrable.

            The stopped elementary integral is a martingale for the filtration carrying the sources.

            theorem MindFormal.ItoFiltration.simpleIto_pairing {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} {J : Type u_2} {B : J → NNReal → Ω → ℝ} [DecidableEq J] [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j k : J) {T : NNReal} (V W : ↥(bdd ℱ T)) :
            ∫ (ω : Ω), simpleIto B j (↑V) T ω * simpleIto B k (↑W) T ω ∂μ = if j = k then ∑ p ∈ (↑V).value.support, ∑ q ∈ (↑W).value.support, (∫ (ω : Ω), (↑V).value p ω * (↑W).value q ω ∂μ) * max 0 (min ↑p.2 ↑q.2 - max ↑p.1 ↑q.1) else 0

            The pairing of two elementary integrals ending by T, against sources j and k: the double sum of the integrands' pairing for one source, 0 for two different sources.

            The integral against one source, and its isometry #

            noncomputable def MindFormal.ItoFiltration.stoppedLM {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} {J : Type u_2} {B : J → NNReal → Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j : J) (T t : NNReal) :
            ↥(bdd ℱ T) →ₗ[ℝ] ↥(MeasureTheory.Lp ℝ 2 μ)

            The stopped elementary integral against source j, as a linear map into L²(μ) on the simple processes ending by T.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem MindFormal.ItoFiltration.coeFn_stoppedLM {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} {J : Type u_2} {B : J → NNReal → Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j : J) (T t : NNReal) (V : ↥(bdd ℱ T)) :
              ↑↑((stoppedLM hB j T t) V) =ᵐ[μ] simpleIto B j (↑V) t
              theorem MindFormal.ItoFiltration.stoppedLM_inner {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} {J : Type u_2} {B : J → NNReal → Ω → ℝ} [DecidableEq J] [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j k : J) (T : NNReal) (V W : ↥(bdd ℱ T)) :
              inner ℝ ((stoppedLM hB j T T) V) ((stoppedLM hB k T T) W) = if j = k then inner ℝ ((emb μ T) V) ((emb μ T) W) else 0

              The pairing of two stopped integrals at the horizon, as elements of L²(μ).

              theorem MindFormal.ItoFiltration.norm_stoppedLM_horizon {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} {J : Type u_2} {B : J → NNReal → Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j : J) (T : NNReal) (V : ↥(bdd ℱ T)) :
              ‖(stoppedLM hB j T T) V‖ = ‖(emb μ T) V‖

              At the horizon the stopped integral has the norm of its integrand.

              theorem MindFormal.ItoFiltration.norm_stoppedLM_le {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} {J : Type u_2} {B : J → NNReal → Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j : J) (T t : NNReal) (V : ↥(bdd ℱ T)) :
              ‖(stoppedLM hB j T t) V‖ ≤ ‖(emb μ T) V‖

              The contraction: the integral stopped at any time has at most the norm of its integrand. Before the horizon the stopped integral is the conditional expectation of the integral at the horizon (the martingale), and conditional expectation does not increase the L² norm.

              noncomputable def MindFormal.ItoFiltration.itoAt {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} {J : Type u_2} {B : J → NNReal → Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j : J) (T t : NNReal) :

              The integral against source j stopped at time t, of a predictable integrand in L²(dt ⊗ P) on [0,T]: the extension of the stopped elementary integral.

              Equations
              Instances For
                noncomputable def MindFormal.ItoFiltration.ito {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} {J : Type u_2} {B : J → NNReal → Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j : J) (T : NNReal) :

                The integral against source j on [0,T]: itoAt at the horizon.

                Equations
                Instances For
                  theorem MindFormal.ItoFiltration.itoAt_emb {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} {J : Type u_2} {B : J → NNReal → Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j : J) (T t : NNReal) (V : ↥(bdd ℱ T)) :
                  (itoAt hB j T t) ((emb μ T) V) = (stoppedLM hB j T t) V

                  On a simple integrand the integral is the stopped elementary integral.

                  theorem MindFormal.ItoFiltration.norm_itoAt_le {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} {J : Type u_2} {B : J → NNReal → Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j : J) (T t : NNReal) (f : ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))) :
                  ‖(itoAt hB j T t) f‖ ≤ ‖f‖

                  The stopped integral has at most the norm of its integrand.

                  theorem MindFormal.ItoFiltration.ito_inner {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} {J : Type u_2} {B : J → NNReal → Ω → ℝ} [DecidableEq J] [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j k : J) (T : NNReal) (f g : ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))) :
                  inner ℝ ((ito hB j T) f) ((ito hB k T) g) = if j = k then inner ℝ f g else 0

                  The polarized isometry with the cross terms: on one filtration carrying the sources, the integrals of f against source j and of g against source k pair as ⟪f, g⟫ for one source and as 0 for two different sources.

                  theorem MindFormal.ItoFiltration.ito_norm {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} {J : Type u_2} {B : J → NNReal → Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (j : J) (T : NNReal) (f : ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))) :
                  ‖(ito hB j T) f‖ = ‖f‖

                  The Itô isometry against each source.

                  noncomputable def MindFormal.ItoFiltration.itoVec {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} {J : Type u_2} {B : J → NNReal → Ω → ℝ} [Fintype J] [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (T : NNReal) (f : J → ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))) :

                  The vector integral Σⱼ ∫ fⱼ dBʲ over finitely many sources.

                  Equations
                  Instances For
                    theorem MindFormal.ItoFiltration.itoVec_norm_sq {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} {J : Type u_2} {B : J → NNReal → Ω → ℝ} [Fintype J] [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) (T : NNReal) (f : J → ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))) :
                    ‖itoVec hB T f‖ ^ 2 = ∑ j : J, ‖f j‖ ^ 2

                    The isometry of the vector integral: its squared norm is the sum of the integrands' squared norms; the cross terms of different sources vanish.

                    The test: an integrand reading two sources and the start #

                    noncomputable def MindFormal.ItoFiltration.elementary {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {T a b : NNReal} (hab : a ≤ b) (hbT : b ≤ T) (Z : Ω → ℝ) (hZ : Measurable Z) {C : ℝ} (hC : ∀ (ω : Ω), |Z ω| ≤ C) :
                    ↥(bdd ℱ T)

                    The elementary integrand Z · 1_{(a,b]}, Z known at a and bounded, as a simple process ending by T.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      theorem MindFormal.ItoFiltration.two_sources_and_start {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {μ : MeasureTheory.Measure Ω} {J : Type u_2} {B : J → NNReal → Ω → ℝ} [MeasureTheory.IsProbabilityMeasure μ] (hB : BrownianFiltration μ ℱ B) {j₁ j₂ : J} (h12 : j₁ ≠ j₂) {x₀ : Ω → ℝ} (hx₀ : Measurable x₀) {σ : ℝ × ℝ × ℝ → ℝ} (hσ : Measurable σ) {C : ℝ} (hC : ∀ (x : ℝ × ℝ × ℝ), |σ x| ≤ C) {a b T : NNReal} (hab : a ≤ b) (hbT : b ≤ T) :
                      ∃ (φ : ↥(MeasureTheory.Lp ℝ 2 (predMeasure ℱ μ T))), (↑↑φ =ᵐ[predMeasure ℱ μ T] fun (z : NNReal × Ω) => (Set.Ioc a b).indicator (fun (x : NNReal) => 1) z.1 * σ (B j₁ a z.2, B j₂ a z.2, x₀ z.2)) ∧ (∀ (k : J), ↑↑((ito hB k T) φ) =ᵐ[μ] fun (ω : Ω) => σ (B j₁ a ω, B j₂ a ω, x₀ ω) * (B k b ω - B k a ω)) ∧ ‖(ito hB j₁ T) φ + (ito hB j₂ T) φ‖ ^ 2 = 2 * ((↑b - ↑a) * ∫ (ω : Ω), σ (B j₁ a ω, B j₂ a ω, x₀ ω) ^ 2 ∂μ)

                      The test. On one filtration carrying two different sources j₁ ≠ j₂, take a start x₀ known at time 0 and a bounded measurable σ, and the integrand φ(t, ω) = 1_{(a,b]}(t) · σ(B^{j₁}_a(ω), B^{j₂}_a(ω), x₀(ω)), which reads both sources and the start. Then φ is in the integrand space (its class is that function), its integral against each source k is σ(…) · (Bᵏ_b − Bᵏ_a), and the vector integral against the two sources has squared norm 2 (b - a) E[σ(…)²]: the two isometries add and the cross term vanishes.