cfahlgren1/math / lean /OAI /Probability /SLE /BrownianGenerators.lean
cfahlgren1's picture
download
raw
39.3 kB
import Mathlib
namespace OAI
/-! Brownian Generators for chordal SLE. -/
section
section
open Set Filter MeasureTheory ProbabilityTheory
open scoped Topology NNReal ENNReal
namespace SLEExactGauge
structure SmoothTimeBrownianField {Ω : Type*} [mΩ : MeasurableSpace Ω]
(B : ℝ≥0 → Ω → ℝ) (hm : ∀ t, Measurable (B t)) (K : ℝ≥0)
(F a : ℝ≥0 → Ω → ℝ → ℝ) : Prop where
smooth : ∀ t ω, ContDiff ℝ 3 (F t ω)
adapted : ∀ t j, j ≤ 2 → Measurable[
(Filtration.natural B (fun t => (hm t).stronglyMeasurable) t).prod (borel ℝ)]
(fun q : Ω × ℝ => iteratedDeriv j (F t q.1) q.2)
joint : ∀ j, j ≤ 2 → Measurable
(fun q : (ℝ≥0 × Ω) × ℝ => iteratedDeriv j (F q.1.1 q.1.2) q.2)
drift_joint : Measurable (fun q : (ℝ≥0 × Ω) × ℝ => a q.1.1 q.1.2 q.2)
bound : ∀ t ω x j, j ≤ 3 → |iteratedDeriv j (F t ω) x| ≤ K
drift_bound : ∀ t ω x, |a t ω x| ≤ K
drift_lipschitz : ∀ t ω x y, |a t ω x - a t ω y| ≤ (K : ℝ) * |x - y|
second_lipschitz : ∀ s t ω x y,
|iteratedDeriv 2 (F t ω) x - iteratedDeriv 2 (F s ω) y| ≤
(K : ℝ) * (|(t : ℝ) - s| + |x - y|)
time_increment : ∀ s t : ℝ≥0, s ≤ t → ∀ ω x,
F t ω x - F s ω x = ∫ u in (s : ℝ)..(t : ℝ), a u.toNNReal ω x
noncomputable def brownianFieldDrift {Ω : Type*}
(B : ℝ≥0 → Ω → ℝ) (F a : ℝ≥0 → Ω → ℝ → ℝ) (u : ℝ) (ω : Ω) : ℝ :=
a u.toNNReal ω (B u.toNNReal ω) +
(1 / 2 : ℝ) * iteratedDeriv 2 (F u.toNNReal ω) (B u.toNNReal ω)
lemma brownian_increment_indep_natural
{Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω}
{B : ℝ≥0 → Ω → ℝ} (hB : IsBrownianReal B P)
(hm : ∀ t, Measurable (B t)) (s t : ℝ≥0) :
Indep (Filtration.natural B (fun t => (hm t).stronglyMeasurable) s)
((borel ℝ).comap (fun ω => B (s + t) ω - B s ω)) P := by
have hi := ((hB.indepFun_shift s).comp (measurable_pi_apply t) measurable_id).symm
rw [Filtration.natural_eq_comap B _ s]
exact (IndepFun_iff_Indep _ _ _).mp hi
lemma brownian_increment_indep_adapted
{Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω}
{B : ℝ≥0 → Ω → ℝ} (hB : IsBrownianReal B P)
(hm : ∀ t, Measurable (B t)) (s t : ℝ≥0) {f : Ω → ℝ}
(hf : Measurable[Filtration.natural B (fun t => (hm t).stronglyMeasurable) s] f) :
IndepFun f (fun ω => B (s + t) ω - B s ω) P := by
rw [IndepFun_iff_Indep]
exact indep_of_indep_of_le (brownian_increment_indep_natural hB hm s t) hf.comap_le le_rfl
lemma gaussian_square_memLp_two {Ω : Type*} [MeasurableSpace Ω]
{P : Measure Ω} {X : Ω → ℝ} {δ : ℝ≥0} (hX : HasLaw X (gaussianReal 0 δ) P) :
MemLp (fun ω => X ω ^ 2) 2 P := by
have h4 : MemLp X 4 P := hX.hasGaussianLaw.memLp (by norm_num)
apply (memLp_two_iff_integrable_sq (hX.aemeasurable.pow_const 2).aestronglyMeasurable).mpr
have hint := h4.integrable_norm_pow (p := 4) (by decide)
convert hint using 1
funext ω
rw [Real.norm_eq_abs, show (4 : ℕ) = 2 * 2 from rfl, pow_mul, sq_abs]
lemma gaussian_centered_square_memLp_two {Ω : Type*} [MeasurableSpace Ω]
{P : Measure Ω} {X : Ω → ℝ} {δ : ℝ≥0} (hX : HasLaw X (gaussianReal 0 δ) P) :
MemLp (fun ω => X ω ^ 2 - (δ : ℝ)) 2 P := by
let : IsProbabilityMeasure P := hX.isProbabilityMeasure
exact (gaussian_square_memLp_two hX).sub (memLp_const _)
lemma gaussian_square_integral (δ : ℝ≥0) :
(∫ x : ℝ, x ^ 2 ∂gaussianReal 0 δ) = δ := by
have h := variance_fun_id_gaussianReal (μ := 0) (v := δ)
rw [variance_eq_integral (X := fun x : ℝ => x) (by fun_prop)] at h
simpa using h
lemma gaussian_centered_square_integral {Ω : Type*} [MeasurableSpace Ω]
{P : Measure Ω} {X : Ω → ℝ} {δ : ℝ≥0} (hX : HasLaw X (gaussianReal 0 δ) P) :
(∫ ω, X ω ^ 2 - (δ : ℝ) ∂P) = 0 := by
have he := hX.integral_comp (f := fun x : ℝ => x ^ 2 - (δ : ℝ)) (by fun_prop)
simp only [Function.comp_apply] at he
rw [he]
have h2 : Integrable (fun x : ℝ => x ^ 2) (gaussianReal 0 δ) :=
(memLp_id_gaussianReal (μ := 0) (v := δ) 2).integrable_sq
rw [integral_sub h2 (integrable_const _), gaussian_square_integral]
simp
lemma real_second_taylor_bound {f : ℝ → ℝ} (hf : ContDiff ℝ 3 f)
(K : ℝ≥0) (hK : ∀ z, |iteratedDeriv 3 f z| ≤ K) (x y : ℝ) :
|f (x + y) - f x - deriv f x * y - (1 / 2 : ℝ) * iteratedDeriv 2 f x * y ^ 2| ≤
(K : ℝ) * |y| ^ 3 := by
have ht := map_add_eq_sum_add_integral_iteratedFDeriv (n := 2) (x := x) (y := y)
(fun (_t : ℝ) (_ht : _ ∈ Icc (0 : ℝ) 1) => hf.contDiffAt)
simp only [iteratedFDeriv_apply_eq_iteratedDeriv_mul_prod, Finset.prod_const,
Finset.card_univ, Fintype.card_fin, smul_eq_mul] at ht
norm_num [Finset.sum_range_succ, iteratedDeriv_zero, iteratedDeriv_one] at ht
have hi : |∫ t : ℝ in 0..1, (1 - t) ^ 2 * (y ^ 3 * iteratedDeriv 3 f (x + t * y))| ≤
(K : ℝ) * |y| ^ 3 := by
have h := intervalIntegral.norm_integral_le_of_norm_le_const (C := (K : ℝ) * |y| ^ 3)
(a := (0 : ℝ)) (b := 1)
(f := fun t : ℝ => (1 - t) ^ 2 * (y ^ 3 * iteratedDeriv 3 f (x + t * y))) ?_
· simpa only [Real.norm_eq_abs, sub_zero, abs_one, mul_one] using h
· intro t ht
have ht' : t ∈ Ioc (0 : ℝ) 1 := by simpa using ht
have ht1 : |1 - t| ≤ 1 := by rw [abs_of_nonneg (by linarith [ht'.2])]; linarith [ht'.1]
simp only [Real.norm_eq_abs, abs_mul, abs_pow]
calc
|1 - t| ^ 2 * (|y| ^ 3 * |iteratedDeriv 3 f (x + t * y)|) ≤
1 ^ 2 * (|y| ^ 3 * (K : ℝ)) := by gcongr; exact hK _
_ = (K : ℝ) * |y| ^ 3 := by ring
have he : f (x + y) - f x - deriv f x * y - (1 / 2 : ℝ) * iteratedDeriv 2 f x * y ^ 2 =
(1 / 2 : ℝ) * ∫ t : ℝ in 0..1, (1 - t) ^ 2 * (y ^ 3 * iteratedDeriv 3 f (x + t * y)) := by
rw [ht]
ring
rw [he, abs_mul, abs_of_nonneg (by norm_num : (0 : ℝ) ≤ 1 / 2)]
nlinarith [show 0 ≤ (K : ℝ) * |y| ^ 3 by positivity]
noncomputable def standardGaussianAbsMoment (m : ℕ) : ℝ :=
∫ x : ℝ, |x| ^ m ∂gaussianReal 0 1
lemma standardGaussianAbsMoment_nonneg (m : ℕ) : 0 ≤ standardGaussianAbsMoment m :=
integral_nonneg fun x => pow_nonneg (abs_nonneg x) m
lemma gaussian_abs_moment_integrable {Ω : Type*} [MeasurableSpace Ω]
{P : Measure Ω} {X : Ω → ℝ} {δ : ℝ≥0} (hX : HasLaw X (gaussianReal 0 δ) P)
(m : ℕ) (hm : m ≠ 0) : Integrable (fun ω => |X ω| ^ m) P := by
have hm' : (m : ℝ≥0∞) ≠ ∞ := ENNReal.natCast_ne_top m
have hp : MemLp X m P := hX.hasGaussianLaw.memLp hm'
simpa only [Real.norm_eq_abs] using hp.integrable_norm_pow hm
lemma gaussian_abs_moment {Ω : Type*} [MeasurableSpace Ω]
{P : Measure Ω} {X : Ω → ℝ} {δ : ℝ≥0} (hX : HasLaw X (gaussianReal 0 δ) P)
(m : ℕ) : (∫ ω, |X ω| ^ m ∂P) = (Real.sqrt δ) ^ m * standardGaussianAbsMoment m := by
have he := hX.integral_comp (f := fun x : ℝ => |x| ^ m) (by fun_prop)
simp only [Function.comp_apply] at he
rw [he]
have hm : (gaussianReal 0 1).map (fun x : ℝ => Real.sqrt δ * x) = gaussianReal 0 δ := by
rw [gaussianReal_map_const_mul]
congr 1
· simp
· ext
simp [Real.sq_sqrt δ.coe_nonneg]
rw [← hm, integral_map (by fun_prop) (by fun_prop)]
simp_rw [abs_mul, mul_pow, abs_of_nonneg (Real.sqrt_nonneg _)]
rw [integral_const_mul]
rfl
lemma gaussian_abs_cube {Ω : Type*} [MeasurableSpace Ω]
{P : Measure Ω} {X : Ω → ℝ} {δ : ℝ≥0} (hX : HasLaw X (gaussianReal 0 δ) P) :
(∫ ω, |X ω| ^ 3 ∂P) = (δ : ℝ) * Real.sqrt δ * standardGaussianAbsMoment 3 := by
rw [gaussian_abs_moment hX]
congr 1
rw [pow_succ, Real.sq_sqrt δ.coe_nonneg]
lemma SmoothTimeBrownianField.eval_measurable
{Ω : Type*} [mΩ : MeasurableSpace Ω] {B : ℝ≥0 → Ω → ℝ}
{hm : ∀ t, Measurable (B t)} {K : ℝ≥0} {F a : ℝ≥0 → Ω → ℝ → ℝ}
(hF : SmoothTimeBrownianField B hm K F a) (t : ℝ≥0) (j : ℕ) (hj : j ≤ 2)
{V : Ω → ℝ} (hV : Measurable V) :
Measurable (fun ω => iteratedDeriv j (F t ω) (V ω)) :=
(hF.joint j hj).comp ((measurable_const.prodMk measurable_id).prodMk hV)
lemma SmoothTimeBrownianField.eval_adapted
{Ω : Type*} [mΩ : MeasurableSpace Ω] {B : ℝ≥0 → Ω → ℝ}
{hm : ∀ t, Measurable (B t)} {K : ℝ≥0} {F a : ℝ≥0 → Ω → ℝ → ℝ}
(hF : SmoothTimeBrownianField B hm K F a) (t : ℝ≥0) (j : ℕ) (hj : j ≤ 2) :
Measurable[Filtration.natural B (fun t => (hm t).stronglyMeasurable) t]
(fun ω => iteratedDeriv j (F t ω) (B t ω)) := by
have hBt := (Filtration.stronglyAdapted_natural (fun t => (hm t).stronglyMeasurable) t).measurable
exact (hF.adapted t j hj).comp (measurable_id.prodMk hBt)
lemma brownian_increment_orthogonal
{Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω}
{B : ℝ≥0 → Ω → ℝ} (hB : IsBrownianReal B P)
(hm : ∀ t, Measurable (B t)) (s δ : ℝ≥0) {f : Ω → ℝ}
(hf : Measurable[Filtration.natural B (fun t => (hm t).stronglyMeasurable) s] f) :
(∫ ω, f ω * (B (s + δ) ω - B s ω) ∂P) = 0 := by
have hif := brownian_increment_indep_adapted hB hm s δ hf
have hfm : Measurable f := hf.mono
((Filtration.natural B (fun t => (hm t).stronglyMeasurable)).le s) le_rfl
have hlaw := (hB.shift s).hasLaw_eval δ
rw [hif.integral_fun_mul_eq_mul_integral hfm.aestronglyMeasurable
((hm _).sub (hm _)).aestronglyMeasurable, hlaw.integral_eq]
simp
lemma brownian_centered_square_orthogonal
{Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω}
{B : ℝ≥0 → Ω → ℝ} (hB : IsBrownianReal B P)
(hm : ∀ t, Measurable (B t)) (s δ : ℝ≥0) {f : Ω → ℝ}
(hf : Measurable[Filtration.natural B (fun t => (hm t).stronglyMeasurable) s] f) :
(∫ ω, f ω * ((B (s + δ) ω - B s ω) ^ 2 - (δ : ℝ)) ∂P) = 0 := by
have hif := (brownian_increment_indep_adapted hB hm s δ hf).comp
measurable_id (by fun_prop : Measurable (fun x : ℝ => x ^ 2 - (δ : ℝ)))
have hfm : Measurable f := hf.mono
((Filtration.natural B (fun t => (hm t).stronglyMeasurable)).le s) le_rfl
have hlaw := (hB.shift s).hasLaw_eval δ
have he := hif.integral_fun_mul_eq_mul_integral
hfm.aestronglyMeasurable (((hm _).sub (hm _)).pow_const 2 |>.sub measurable_const).aestronglyMeasurable
simp only [Function.comp_apply, id_eq] at he
rw [he, gaussian_centered_square_integral hlaw, mul_zero]
lemma brownian_set_integral_increment_zero
{Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω}
{B : ℝ≥0 → Ω → ℝ} (hB : IsBrownianReal B P)
(hm : ∀ t, Measurable (B t)) (s δ : ℝ≥0) {f : Ω → ℝ} {E : Set Ω}
(hf : Measurable[Filtration.natural B (fun t => (hm t).stronglyMeasurable) s] f)
(hE : MeasurableSet[Filtration.natural B (fun t => (hm t).stronglyMeasurable) s] E) :
(∫ ω in E, f ω * (B (s + δ) ω - B s ω) ∂P) = 0 := by
have hEm : MeasurableSet E :=
(Filtration.natural B (fun t => (hm t).stronglyMeasurable)).le s _ hE
have h := brownian_increment_orthogonal hB hm s δ (hf.indicator hE)
rw [← integral_indicator hEm]
convert h using 1
congr 1
funext ω
by_cases hω : ω ∈ E <;> simp [hω]
lemma brownian_set_integral_square
{Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω}
{B : ℝ≥0 → Ω → ℝ} (hB : IsBrownianReal B P)
(hm : ∀ t, Measurable (B t)) (s δ C : ℝ≥0) {f : Ω → ℝ} {E : Set Ω}
(hf : Measurable[Filtration.natural B (fun t => (hm t).stronglyMeasurable) s] f)
(hbound : ∀ ω, |f ω| ≤ C)
(hE : MeasurableSet[Filtration.natural B (fun t => (hm t).stronglyMeasurable) s] E) :
(∫ ω in E, f ω * (B (s + δ) ω - B s ω) ^ 2 ∂P) =
(δ : ℝ) * ∫ ω in E, f ω ∂P := by
let : IsProbabilityMeasure P := hB.isGaussianProcess.isProbabilityMeasure
have hEm : MeasurableSet E :=
(Filtration.natural B (fun t => (hm t).stronglyMeasurable)).le s _ hE
have hfm := hf.mono ((Filtration.natural B (fun t => (hm t).stronglyMeasurable)).le s) le_rfl
have hfi : Integrable f (P.restrict E) :=
Integrable.of_bound hfm.aestronglyMeasurable _ (Eventually.of_forall fun ω => by
simpa only [Real.norm_eq_abs] using hbound ω)
have hi2 : Integrable (fun ω => (B (s + δ) ω - B s ω) ^ 2) (P.restrict E) :=
((hB.shift s).hasLaw_eval δ).hasGaussianLaw.memLp_two.integrable_sq.restrict
have hprod := hi2.bdd_mul hfm.aestronglyMeasurable
(Eventually.of_forall fun ω => by simpa only [Real.norm_eq_abs] using hbound ω)
have h := brownian_centered_square_orthogonal hB hm s δ (hf.indicator hE)
have hz : (∫ ω in E, f ω * ((B (s + δ) ω - B s ω) ^ 2 - (δ : ℝ)) ∂P) = 0 := by
rw [← integral_indicator hEm]
convert h using 1
congr 1
funext ω
by_cases hω : ω ∈ E <;> simp [hω]
simp_rw [mul_sub] at hz
rw [integral_sub hprod (hfi.mul_const _), integral_mul_const] at hz
linarith
lemma smooth_field_taylor_set_error
{Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω}
{B : ℝ≥0 → Ω → ℝ} (hB : IsBrownianReal B P)
(hm : ∀ t, Measurable (B t))
(K : ℝ≥0) {F a : ℝ≥0 → Ω → ℝ → ℝ}
(hF : SmoothTimeBrownianField B hm K F a)
(s δ : ℝ≥0) {E : Set Ω}
(hE : MeasurableSet[Filtration.natural B (fun t => (hm t).stronglyMeasurable) s] E) :
|(∫ ω in E, F s ω (B (s + δ) ω) - F s ω (B s ω) ∂P) -
(1 / 2 : ℝ) * (δ : ℝ) * ∫ ω in E, iteratedDeriv 2 (F s ω) (B s ω) ∂P| ≤
(K : ℝ) * (δ : ℝ) * Real.sqrt δ * standardGaussianAbsMoment 3 := by
let : IsProbabilityMeasure P := hB.isGaussianProcess.isProbabilityMeasure
let X (ω : Ω) := B (s + δ) ω - B s ω
let c₁ (ω : Ω) := iteratedDeriv 1 (F s ω) (B s ω)
let c₂ (ω : Ω) := iteratedDeriv 2 (F s ω) (B s ω)
let T (ω : Ω) := F s ω (B (s + δ) ω) - F s ω (B s ω)
let R (ω : Ω) := T ω - c₁ ω * X ω - (1 / 2 : ℝ) * (c₂ ω * X ω ^ 2)
have hXlaw : HasLaw X (gaussianReal 0 δ) P := (hB.shift s).hasLaw_eval δ
have hXm : Measurable X := (hm _).sub (hm _)
have hc₁m : Measurable c₁ := hF.eval_measurable s 1 (by decide) (hm s)
have hc₂m : Measurable c₂ := hF.eval_measurable s 2 (by decide) (hm s)
have hc₁b (ω) : |c₁ ω| ≤ K := hF.bound s ω _ 1 (by decide)
have hc₂b (ω) : |c₂ ω| ≤ K := hF.bound s ω _ 2 (by decide)
have hI (t : ℝ≥0) : Integrable (fun ω => F s ω (B t ω)) (P.restrict E) := by
have hm' : Measurable (fun ω => F s ω (B t ω)) := by
simpa only [iteratedDeriv_zero] using hF.eval_measurable s 0 (by decide) (hm t)
refine Integrable.of_bound hm'.aestronglyMeasurable K (Eventually.of_forall fun ω => ?_)
simpa only [Real.norm_eq_abs, iteratedDeriv_zero] using hF.bound s ω (B t ω) 0 (by decide)
have hTi : Integrable T (P.restrict E) := (hI _).sub (hI _)
have hlin : Integrable (fun ω => c₁ ω * X ω) (P.restrict E) :=
hXlaw.hasGaussianLaw.integrable.restrict.bdd_mul hc₁m.aestronglyMeasurable
(Eventually.of_forall fun ω => by simpa only [Real.norm_eq_abs] using hc₁b ω)
have hquad : Integrable (fun ω => c₂ ω * X ω ^ 2) (P.restrict E) :=
hXlaw.hasGaussianLaw.memLp_two.integrable_sq.restrict.bdd_mul hc₂m.aestronglyMeasurable
(Eventually.of_forall fun ω => by simpa only [Real.norm_eq_abs] using hc₂b ω)
have hRi : Integrable R (P.restrict E) := (hTi.sub hlin).sub (hquad.const_mul _)
have hlin0 : (∫ ω in E, c₁ ω * X ω ∂P) = 0 :=
brownian_set_integral_increment_zero hB hm s δ (hF.eval_adapted s 1 (by decide)) hE
have hquad0 : (∫ ω in E, c₂ ω * X ω ^ 2 ∂P) = (δ : ℝ) * ∫ ω in E, c₂ ω ∂P :=
brownian_set_integral_square hB hm s δ K (hF.eval_adapted s 2 (by decide)) hc₂b hE
have hRint : (∫ ω in E, R ω ∂P) = (∫ ω in E, T ω ∂P) -
(1 / 2 : ℝ) * (δ : ℝ) * ∫ ω in E, c₂ ω ∂P := by
dsimp only [R]
have hsubi : Integrable (fun ω => T ω - c₁ ω * X ω) (P.restrict E) := hTi.sub hlin
rw [integral_sub hsubi (hquad.const_mul (1 / 2 : ℝ)), integral_sub hTi hlin,
hlin0, sub_zero, integral_const_mul, hquad0]
ring
have hRb (ω) : |R ω| ≤ (K : ℝ) * |X ω| ^ 3 := by
have h := real_second_taylor_bound (hF.smooth s ω) K
(fun z => hF.bound s ω z 3 (by decide)) (B s ω) (X ω)
have he : B s ω + X ω = B (s + δ) ω := by dsimp [X]; ring
rw [he] at h
simpa only [R, T, c₁, c₂, iteratedDeriv_one, mul_assoc] using h
change |(∫ ω in E, T ω ∂P) - (1 / 2 : ℝ) * (δ : ℝ) * ∫ ω in E, c₂ ω ∂P| ≤ _
rw [← hRint]
have hcube := gaussian_abs_moment_integrable hXlaw 3 (by decide)
calc
|∫ ω in E, R ω ∂P| ≤ ∫ ω in E, |R ω| ∂P := by
simpa only [Real.norm_eq_abs] using norm_integral_le_integral_norm (μ := P.restrict E) R
_ ≤ ∫ ω in E, (K : ℝ) * |X ω| ^ 3 ∂P :=
integral_mono hRi.abs (hcube.restrict.const_mul _) hRb
_ ≤ ∫ ω, (K : ℝ) * |X ω| ^ 3 ∂P :=
integral_mono_measure Measure.restrict_le_self
(Eventually.of_forall fun _ => by positivity) (hcube.const_mul _)
_ = (K : ℝ) * (δ : ℝ) * Real.sqrt δ * standardGaussianAbsMoment 3 := by
rw [integral_const_mul, gaussian_abs_cube hXlaw]
ring
lemma brownian_expected_abs_increment_le
{Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω}
{B : ℝ≥0 → Ω → ℝ} (hB : IsBrownianReal B P)
(r t δ : ℝ≥0) (hgap : |(t : ℝ) - r| ≤ δ) (E : Set Ω) :
(∫ ω in E, |B t ω - B r ω| ∂P) ≤ Real.sqrt δ * standardGaussianAbsMoment 1 := by
have hlaw : HasLaw (fun ω => B t ω - B r ω)
(gaussianReal 0 (nndist (t : ℝ) (r : ℝ))) P := hB.hasLaw_sub t r
have hint : Integrable (fun ω => |B t ω - B r ω|) P := hlaw.hasGaussianLaw.integrable.abs
calc
(∫ ω in E, |B t ω - B r ω| ∂P) ≤ ∫ ω, |B t ω - B r ω| ∂P :=
integral_mono_measure Measure.restrict_le_self
(Eventually.of_forall fun _ => abs_nonneg _) hint
_ = Real.sqrt (nndist (t : ℝ) (r : ℝ)) * standardGaussianAbsMoment 1 := by
simpa only [pow_one, Pi.sub_apply] using gaussian_abs_moment hlaw 1
_ ≤ Real.sqrt δ * standardGaussianAbsMoment 1 := by
apply mul_le_mul_of_nonneg_right _ (standardGaussianAbsMoment_nonneg 1)
apply Real.sqrt_le_sqrt
simpa only [coe_nndist, Real.dist_eq] using hgap
lemma bounded_interval_integral_integrable
{Ω : Type*} [MeasurableSpace Ω] {P : Measure Ω} [IsFiniteMeasure P]
(a b : ℝ) (hab : a ≤ b) (G : ℝ → Ω → ℝ)
(hG : Measurable (Function.uncurry G)) (C : ℝ)
(hbound : ∀ u ω, |G u ω| ≤ C) :
Integrable (fun ω => ∫ u in a..b, G u ω) P := by
have hI : Integrable (Function.uncurry G) ((volume.restrict (Ioc a b)).prod P) :=
Integrable.of_bound hG.aestronglyMeasurable C
(Eventually.of_forall fun q => by simpa only [Real.norm_eq_abs, Function.uncurry] using hbound q.1 q.2)
simpa only [intervalIntegral.integral_of_le hab, Function.uncurry] using hI.integral_prod_right
lemma bounded_interval_integral_expectation_bound
{Ω : Type*} [MeasurableSpace Ω] {P : Measure Ω} [IsFiniteMeasure P]
(a b : ℝ) (hab : a ≤ b) (G : ℝ → Ω → ℝ)
(hG : Measurable (Function.uncurry G)) (C D : ℝ)
(hbound : ∀ u ω, |G u ω| ≤ C)
(hmean : ∀ u ∈ Ioc a b, |∫ ω, G u ω ∂P| ≤ D) :
|∫ ω, (∫ u in a..b, G u ω) ∂P| ≤ D * (b - a) := by
have hI : Integrable (Function.uncurry G) ((volume.restrict (Ioc a b)).prod P) :=
Integrable.of_bound hG.aestronglyMeasurable C
(Eventually.of_forall fun q => by simpa only [Real.norm_eq_abs, Function.uncurry] using hbound q.1 q.2)
simp_rw [intervalIntegral.integral_of_le hab]
rw [← integral_integral_swap hI]
have h := intervalIntegral.norm_integral_le_of_norm_le_const (a := a) (b := b)
(f := fun u => ∫ ω, G u ω ∂P) (C := D) (fun u hu => by
simpa only [Real.norm_eq_abs] using hmean u (by simpa only [uIoc_of_le hab] using hu))
simpa only [Real.norm_eq_abs, intervalIntegral.integral_of_le hab,
abs_of_nonneg (sub_nonneg.mpr hab)] using h
lemma bounded_time_section_intervalIntegrable
{Ω : Type*} [MeasurableSpace Ω] (a b : ℝ) (hab : a ≤ b)
(G : ℝ → Ω → ℝ) (hG : Measurable (Function.uncurry G)) (C : ℝ)
(hbound : ∀ u ω, |G u ω| ≤ C) (ω : Ω) :
IntervalIntegrable (fun u => G u ω) volume a b := by
rw [intervalIntegrable_iff_integrableOn_Ioc_of_le hab]
apply Integrable.of_bound ((hG.comp (measurable_id.prodMk measurable_const)).aestronglyMeasurable) C
exact Eventually.of_forall fun u => by simpa only [Real.norm_eq_abs, Function.comp_apply, Function.uncurry, id_eq] using hbound u ω
lemma smooth_field_time_set_error
{Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω}
{B : ℝ≥0 → Ω → ℝ} (hB : IsBrownianReal B P)
(hm : ∀ t, Measurable (B t))
(hBm : Measurable (fun q : ℝ≥0 × Ω => B q.1 q.2))
(K : ℝ≥0) {F a : ℝ≥0 → Ω → ℝ → ℝ}
(hF : SmoothTimeBrownianField B hm K F a) (s δ : ℝ≥0) (E : Set Ω) :
|(∫ ω in E, F (s + δ) ω (B (s + δ) ω) - F s ω (B (s + δ) ω) ∂P) -
∫ ω in E, (∫ u in (s : ℝ)..(s + δ : ℝ≥0), a u.toNNReal ω (B u.toNNReal ω)) ∂P| ≤
(K : ℝ) * (δ : ℝ) * Real.sqrt δ * standardGaussianAbsMoment 1 := by
let : IsProbabilityMeasure P := hB.isGaussianProcess.isProbabilityMeasure
let C (u : ℝ) (ω : Ω) := a u.toNNReal ω (B (s + δ) ω)
let D (u : ℝ) (ω : Ω) := a u.toNNReal ω (B u.toNNReal ω)
let G (u : ℝ) (ω : Ω) := C u ω - D u ω
have htime : Measurable (fun q : ℝ × Ω => (q.1.toNNReal, q.2)) := by fun_prop
have hC : Measurable (Function.uncurry C) :=
hF.drift_joint.comp (htime.prodMk ((hm (s + δ)).comp measurable_snd))
have hD : Measurable (Function.uncurry D) :=
hF.drift_joint.comp (htime.prodMk (hBm.comp htime))
have hG : Measurable (Function.uncurry G) := hC.sub hD
have hCb (u ω) : |C u ω| ≤ K := hF.drift_bound _ _ _
have hDb (u ω) : |D u ω| ≤ K := hF.drift_bound _ _ _
have hGb (u ω) : |G u ω| ≤ 2 * (K : ℝ) := by
exact (abs_sub _ _).trans (by linarith [hCb u ω, hDb u ω])
have hle : (s : ℝ) ≤ (s + δ : ℝ≥0) := by
simp only [NNReal.coe_add]; exact le_add_of_nonneg_right δ.coe_nonneg
have hCI := bounded_interval_integral_integrable (P := P.restrict E) _ _ hle C hC K hCb
have hDI := bounded_interval_integral_integrable (P := P.restrict E) _ _ hle D hD K hDb
have he : (∫ ω in E, F (s + δ) ω (B (s + δ) ω) - F s ω (B (s + δ) ω) ∂P) -
(∫ ω in E, (∫ u in (s : ℝ)..(s + δ : ℝ≥0), D u ω) ∂P) =
∫ ω in E, (∫ u in (s : ℝ)..(s + δ : ℝ≥0), G u ω) ∂P := by
simp_rw [hF.time_increment s (s + δ) (le_add_of_nonneg_right (zero_le))]
change (∫ ω in E, (∫ u in (s : ℝ)..(s + δ : ℝ≥0), C u ω) ∂P) - _ = _
rw [← integral_sub hCI hDI]
apply integral_congr_ae
exact Eventually.of_forall fun ω =>
(intervalIntegral.integral_sub
(bounded_time_section_intervalIntegrable _ _ hle C hC K hCb ω)
(bounded_time_section_intervalIntegrable _ _ hle D hD K hDb ω)).symm
change |(∫ ω in E, F (s + δ) ω (B (s + δ) ω) - F s ω (B (s + δ) ω) ∂P) -
(∫ ω in E, (∫ u in (s : ℝ)..(s + δ : ℝ≥0), D u ω) ∂P)| ≤ _
rw [he]
have hmean (u : ℝ) (hu : u ∈ Ioc (s : ℝ) (s + δ : ℝ≥0)) :
|∫ ω in E, G u ω ∂P| ≤ (K : ℝ) * Real.sqrt δ * standardGaussianAbsMoment 1 := by
have hgi : Integrable (G u) (P.restrict E) :=
Integrable.of_bound (hG.comp (measurable_const.prodMk measurable_id)).aestronglyMeasurable
(2 * (K : ℝ)) (Eventually.of_forall fun ω => by
simpa only [Real.norm_eq_abs] using hGb u ω)
have hxi : Integrable (fun ω => |B (s + δ) ω - B u.toNNReal ω|) (P.restrict E) :=
((hB.hasLaw_sub (s + δ) u.toNNReal).hasGaussianLaw.integrable.abs).restrict
have hgap : |((s + δ : ℝ≥0) : ℝ) - (u.toNNReal : ℝ)| ≤ δ := by
rw [Real.coe_toNNReal _ (le_trans s.coe_nonneg hu.1.le),
abs_of_nonneg (sub_nonneg.mpr hu.2), NNReal.coe_add]
linarith [hu.1]
calc
|∫ ω in E, G u ω ∂P| ≤ ∫ ω in E, |G u ω| ∂P := by
simpa only [Real.norm_eq_abs] using norm_integral_le_integral_norm (μ := P.restrict E) (G u)
_ ≤ ∫ ω in E, (K : ℝ) * |B (s + δ) ω - B u.toNNReal ω| ∂P :=
integral_mono hgi.abs (hxi.const_mul _) (fun ω => hF.drift_lipschitz _ _ _ _)
_ = (K : ℝ) * ∫ ω in E, |B (s + δ) ω - B u.toNNReal ω| ∂P := integral_const_mul _ _
_ ≤ (K : ℝ) * (Real.sqrt δ * standardGaussianAbsMoment 1) :=
mul_le_mul_of_nonneg_left (brownian_expected_abs_increment_le hB _ _ _ hgap E) K.coe_nonneg
_ = (K : ℝ) * Real.sqrt δ * standardGaussianAbsMoment 1 := by ring
have hb := bounded_interval_integral_expectation_bound (P := P.restrict E) _ _ hle G hG
(2 * (K : ℝ)) ((K : ℝ) * Real.sqrt δ * standardGaussianAbsMoment 1) hGb hmean
simpa only [NNReal.coe_add, add_sub_cancel_left, mul_right_comm, mul_assoc] using hb
lemma smooth_field_second_mean_error
{Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω}
{B : ℝ≥0 → Ω → ℝ} (hB : IsBrownianReal B P)
(hm : ∀ t, Measurable (B t))
(hBm : Measurable (fun q : ℝ≥0 × Ω => B q.1 q.2))
(K : ℝ≥0) {F a : ℝ≥0 → Ω → ℝ → ℝ}
(hF : SmoothTimeBrownianField B hm K F a) (s δ : ℝ≥0) (E : Set Ω)
(u : ℝ) (hu : u ∈ Ioc (s : ℝ) (s + δ : ℝ≥0)) :
|∫ ω in E, iteratedDeriv 2 (F s ω) (B s ω) -
iteratedDeriv 2 (F u.toNNReal ω) (B u.toNNReal ω) ∂P| ≤
(K : ℝ) * ((δ : ℝ) + Real.sqrt δ * standardGaussianAbsMoment 1) := by
let : IsProbabilityMeasure P := hB.isGaussianProcess.isProbabilityMeasure
let C (u : ℝ) (ω : Ω) := iteratedDeriv 2 (F s ω) (B s ω)
let D (u : ℝ) (ω : Ω) := iteratedDeriv 2 (F u.toNNReal ω) (B u.toNNReal ω)
let G (u : ℝ) (ω : Ω) := C u ω - D u ω
have htime : Measurable (fun q : ℝ × Ω => (q.1.toNNReal, q.2)) := by fun_prop
have hC : Measurable (Function.uncurry C) :=
(hF.eval_measurable s 2 (by decide) (hm s)).comp measurable_snd
have hD : Measurable (Function.uncurry D) := by
change Measurable (fun q : ℝ × Ω =>
iteratedDeriv 2 (F q.1.toNNReal q.2) (B q.1.toNNReal q.2))
simpa only [Function.comp_def] using
(hF.joint 2 (by decide)).comp (htime.prodMk (hBm.comp htime))
have hG : Measurable (Function.uncurry G) := hC.sub hD
have hCb (u ω) : |C u ω| ≤ K := hF.bound _ _ _ 2 (by decide)
have hDb (u ω) : |D u ω| ≤ K := hF.bound _ _ _ 2 (by decide)
have hGb (u ω) : |G u ω| ≤ 2 * (K : ℝ) :=
(abs_sub _ _).trans (by linarith [hCb u ω, hDb u ω])
have hgi : Integrable (G u) (P.restrict E) :=
Integrable.of_bound (hG.comp (measurable_const.prodMk measurable_id)).aestronglyMeasurable
(2 * (K : ℝ)) (Eventually.of_forall fun ω => by
simpa only [Real.norm_eq_abs] using hGb u ω)
have hxi : Integrable (fun ω => |B u.toNNReal ω - B s ω|) (P.restrict E) :=
((hB.hasLaw_sub u.toNNReal s).hasGaussianLaw.integrable.abs).restrict
have hgap : |(u.toNNReal : ℝ) - (s : ℝ)| ≤ δ := by
rw [Real.coe_toNNReal _ (le_trans s.coe_nonneg hu.1.le), abs_of_nonneg (sub_nonneg.mpr hu.1.le)]
have hh := hu.2
simp only [NNReal.coe_add] at hh
linarith
have hpoint (ω) : |G u ω| ≤ (K : ℝ) * ((δ : ℝ) + |B u.toNNReal ω - B s ω|) := by
calc
|G u ω| = |D u ω - C u ω| := abs_sub_comm _ _
_ ≤ (K : ℝ) * (|(u.toNNReal : ℝ) - (s : ℝ)| + |B u.toNNReal ω - B s ω|) :=
hF.second_lipschitz s u.toNNReal ω _ _
_ ≤ (K : ℝ) * ((δ : ℝ) + |B u.toNNReal ω - B s ω|) :=
mul_le_mul_of_nonneg_left (add_le_add hgap le_rfl) K.coe_nonneg
have hconst : (∫ _ω in E, (δ : ℝ) ∂P) ≤ δ := by
calc
(∫ _ω in E, (δ : ℝ) ∂P) ≤ ∫ _ω, (δ : ℝ) ∂P :=
integral_mono_measure Measure.restrict_le_self
(Eventually.of_forall fun _ => δ.coe_nonneg) (integrable_const _)
_ = δ := by simp
calc
|∫ ω in E, G u ω ∂P| ≤ ∫ ω in E, |G u ω| ∂P := by
simpa only [Real.norm_eq_abs] using norm_integral_le_integral_norm (μ := P.restrict E) (G u)
_ ≤ ∫ ω in E, (K : ℝ) * ((δ : ℝ) + |B u.toNNReal ω - B s ω|) ∂P :=
integral_mono hgi.abs (((integrable_const _).add hxi).const_mul _) hpoint
_ = (K : ℝ) * ((∫ _ω in E, (δ : ℝ) ∂P) +
∫ ω in E, |B u.toNNReal ω - B s ω| ∂P) := by
rw [integral_const_mul, integral_add (integrable_const _) hxi]
_ ≤ (K : ℝ) * ((δ : ℝ) + Real.sqrt δ * standardGaussianAbsMoment 1) :=
mul_le_mul_of_nonneg_left
(add_le_add hconst (brownian_expected_abs_increment_le hB _ _ _ hgap E)) K.coe_nonneg
lemma smooth_field_second_set_error
{Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω}
{B : ℝ≥0 → Ω → ℝ} (hB : IsBrownianReal B P)
(hm : ∀ t, Measurable (B t))
(hBm : Measurable (fun q : ℝ≥0 × Ω => B q.1 q.2))
(K : ℝ≥0) {F a : ℝ≥0 → Ω → ℝ → ℝ}
(hF : SmoothTimeBrownianField B hm K F a) (s δ : ℝ≥0) (E : Set Ω) :
|(δ : ℝ) * (∫ ω in E, iteratedDeriv 2 (F s ω) (B s ω) ∂P) -
∫ ω in E, (∫ u in (s : ℝ)..(s + δ : ℝ≥0),
iteratedDeriv 2 (F u.toNNReal ω) (B u.toNNReal ω)) ∂P| ≤
(K : ℝ) * (δ : ℝ) * ((δ : ℝ) + Real.sqrt δ * standardGaussianAbsMoment 1) := by
let : IsProbabilityMeasure P := hB.isGaussianProcess.isProbabilityMeasure
let C (u : ℝ) (ω : Ω) := iteratedDeriv 2 (F s ω) (B s ω)
let D (u : ℝ) (ω : Ω) := iteratedDeriv 2 (F u.toNNReal ω) (B u.toNNReal ω)
let G (u : ℝ) (ω : Ω) := C u ω - D u ω
have htime : Measurable (fun q : ℝ × Ω => (q.1.toNNReal, q.2)) := by fun_prop
have hC : Measurable (Function.uncurry C) :=
(hF.eval_measurable s 2 (by decide) (hm s)).comp measurable_snd
have hD : Measurable (Function.uncurry D) := by
change Measurable (fun q : ℝ × Ω =>
iteratedDeriv 2 (F q.1.toNNReal q.2) (B q.1.toNNReal q.2))
simpa only [Function.comp_def] using
(hF.joint 2 (by decide)).comp (htime.prodMk (hBm.comp htime))
have hG : Measurable (Function.uncurry G) := hC.sub hD
have hCb (u ω) : |C u ω| ≤ K := hF.bound _ _ _ 2 (by decide)
have hDb (u ω) : |D u ω| ≤ K := hF.bound _ _ _ 2 (by decide)
have hGb (u ω) : |G u ω| ≤ 2 * (K : ℝ) :=
(abs_sub _ _).trans (by linarith [hCb u ω, hDb u ω])
have hle : (s : ℝ) ≤ (s + δ : ℝ≥0) := by
simp only [NNReal.coe_add]; exact le_add_of_nonneg_right δ.coe_nonneg
have hCI := bounded_interval_integral_integrable (P := P.restrict E) _ _ hle C hC K hCb
have hDI := bounded_interval_integral_integrable (P := P.restrict E) _ _ hle D hD K hDb
have he : (δ : ℝ) * (∫ ω in E, C 0 ω ∂P) -
(∫ ω in E, (∫ u in (s : ℝ)..(s + δ : ℝ≥0), D u ω) ∂P) =
∫ ω in E, (∫ u in (s : ℝ)..(s + δ : ℝ≥0), G u ω) ∂P := by
have hconst : (∫ ω in E, (∫ u in (s : ℝ)..(s + δ : ℝ≥0), C u ω) ∂P) =
(δ : ℝ) * ∫ ω in E, C 0 ω ∂P := by
simp only [C, intervalIntegral.integral_const, NNReal.coe_add,
add_sub_cancel_left, smul_eq_mul, integral_const_mul]
rw [← hconst, ← integral_sub hCI hDI]
apply integral_congr_ae
exact Eventually.of_forall fun ω =>
(intervalIntegral.integral_sub
(bounded_time_section_intervalIntegrable _ _ hle C hC K hCb ω)
(bounded_time_section_intervalIntegrable _ _ hle D hD K hDb ω)).symm
change |(δ : ℝ) * (∫ ω in E, C 0 ω ∂P) -
(∫ ω in E, (∫ u in (s : ℝ)..(s + δ : ℝ≥0), D u ω) ∂P)| ≤ _
rw [he]
have hmean (u : ℝ) (hu : u ∈ Ioc (s : ℝ) (s + δ : ℝ≥0)) :
|∫ ω in E, G u ω ∂P| ≤ (K : ℝ) * ((δ : ℝ) + Real.sqrt δ * standardGaussianAbsMoment 1) :=
smooth_field_second_mean_error hB hm hBm K hF s δ E u hu
have hb := bounded_interval_integral_expectation_bound (P := P.restrict E) _ _ hle G hG
(2 * (K : ℝ)) ((K : ℝ) * ((δ : ℝ) + Real.sqrt δ * standardGaussianAbsMoment 1)) hGb hmean
calc
_ ≤ (K : ℝ) * ((δ : ℝ) + Real.sqrt δ * standardGaussianAbsMoment 1) *
(((s + δ : ℝ≥0) : ℝ) - s) := hb
_ = _ := by simp only [NNReal.coe_add]; ring
lemma SmoothTimeBrownianField.eval_integrable
{Ω : Type*} [MeasurableSpace Ω] {P : Measure Ω} [IsFiniteMeasure P]
{B : ℝ≥0 → Ω → ℝ} {hm : ∀ t, Measurable (B t)}
{K : ℝ≥0} {F a : ℝ≥0 → Ω → ℝ → ℝ}
(hF : SmoothTimeBrownianField B hm K F a) (t : ℝ≥0) (j : ℕ) (hj : j ≤ 2)
{V : Ω → ℝ} (hV : Measurable V) :
Integrable (fun ω => iteratedDeriv j (F t ω) (V ω)) P := by
apply Integrable.of_bound (hF.eval_measurable t j hj hV).aestronglyMeasurable K
exact Eventually.of_forall fun ω => by
simpa only [Real.norm_eq_abs] using hF.bound t ω (V ω) j (by omega)
lemma SmoothTimeBrownianField.deriv_real_joint
{Ω : Type*} [MeasurableSpace Ω]
{B : ℝ≥0 → Ω → ℝ} {hm : ∀ t, Measurable (B t)}
{K : ℝ≥0} {F a : ℝ≥0 → Ω → ℝ → ℝ}
(hF : SmoothTimeBrownianField B hm K F a)
(hBm : Measurable (fun q : ℝ≥0 × Ω => B q.1 q.2)) (j : ℕ) (hj : j ≤ 2) :
Measurable (fun q : ℝ × Ω => iteratedDeriv j (F q.1.toNNReal q.2) (B q.1.toNNReal q.2)) := by
have ht : Measurable (fun q : ℝ × Ω => (q.1.toNNReal, q.2)) := by fun_prop
simpa only [Function.comp_def] using (hF.joint j hj).comp (ht.prodMk (hBm.comp ht))
lemma SmoothTimeBrownianField.drift_real_joint
{Ω : Type*} [MeasurableSpace Ω]
{B : ℝ≥0 → Ω → ℝ} {hm : ∀ t, Measurable (B t)}
{K : ℝ≥0} {F a : ℝ≥0 → Ω → ℝ → ℝ}
(hF : SmoothTimeBrownianField B hm K F a)
(hBm : Measurable (fun q : ℝ≥0 × Ω => B q.1 q.2)) :
Measurable (fun q : ℝ × Ω => a q.1.toNNReal q.2 (B q.1.toNNReal q.2)) := by
have ht : Measurable (fun q : ℝ × Ω => (q.1.toNNReal, q.2)) := by fun_prop
exact hF.drift_joint.comp (ht.prodMk (hBm.comp ht))
lemma bounded_interval_integral_expectation_add
{Ω : Type*} [MeasurableSpace Ω] {P : Measure Ω} [IsFiniteMeasure P]
(a b c : ℝ) (hab : a ≤ b) (G H : ℝ → Ω → ℝ)
(hG : Measurable (Function.uncurry G)) (hH : Measurable (Function.uncurry H))
(C D : ℝ) (hGb : ∀ u ω, |G u ω| ≤ C) (hHb : ∀ u ω, |H u ω| ≤ D) :
(∫ ω, (∫ u in a..b, G u ω + c * H u ω) ∂P) =
(∫ ω, (∫ u in a..b, G u ω) ∂P) + c * (∫ ω, (∫ u in a..b, H u ω) ∂P) := by
have hGI := bounded_interval_integral_integrable a b hab G hG C hGb (P := P)
have hHI := bounded_interval_integral_integrable a b hab H hH D hHb (P := P)
calc
_ = ∫ ω, ((∫ u in a..b, G u ω) + c * (∫ u in a..b, H u ω)) ∂P := by
apply integral_congr_ae
filter_upwards [] with ω
rw [intervalIntegral.integral_add
(bounded_time_section_intervalIntegrable a b hab G hG C hGb ω)
((bounded_time_section_intervalIntegrable a b hab H hH D hHb ω).const_mul c),
intervalIntegral.integral_const_mul]
_ = _ := by rw [integral_add hGI (hHI.const_mul c), integral_const_mul]
noncomputable def dynkinRate (δ : ℝ≥0) : ℝ :=
Real.sqrt δ * standardGaussianAbsMoment 3 + Real.sqrt δ * standardGaussianAbsMoment 1 +
(1 / 2 : ℝ) * ((δ : ℝ) + Real.sqrt δ * standardGaussianAbsMoment 1)
lemma dynkinRate_tendsto_zero : Tendsto dynkinRate (𝓝 0) (𝓝 0) := by
have hc : Continuous dynkinRate := by unfold dynkinRate; fun_prop
simpa [ContinuousAt, dynkinRate] using hc.continuousAt (x := 0)
lemma abs_dynkin_algebra_bound (T A S I J eT eA eS δ : ℝ)
(hT : |T - (1 / 2 : ℝ) * δ * S| ≤ eT)
(hA : |A - I| ≤ eA) (hS : |δ * S - J| ≤ eS) :
|(T + A) - (I + (1 / 2 : ℝ) * J)| ≤ eT + eA + (1 / 2 : ℝ) * eS := by
have he : (T + A) - (I + (1 / 2 : ℝ) * J) =
(T - (1 / 2 : ℝ) * δ * S) + (A - I) + (1 / 2 : ℝ) * (δ * S - J) := by ring
rw [he]
calc
_ ≤ |T - (1 / 2 : ℝ) * δ * S| + |A - I| + |(1 / 2 : ℝ) * (δ * S - J)| :=
(abs_add_le _ _).trans (add_le_add (abs_add_le _ _) le_rfl)
_ = |T - (1 / 2 : ℝ) * δ * S| + |A - I| + (1 / 2 : ℝ) * |δ * S - J| := by
rw [abs_mul]; norm_num
_ ≤ _ := add_le_add (add_le_add hT hA) (mul_le_mul_of_nonneg_left hS (by norm_num))
lemma smooth_field_one_step_error
{Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω}
{B : ℝ≥0 → Ω → ℝ} (hB : IsBrownianReal B P)
(hm : ∀ t, Measurable (B t))
(hBm : Measurable (fun q : ℝ≥0 × Ω => B q.1 q.2))
(K : ℝ≥0) {F a : ℝ≥0 → Ω → ℝ → ℝ}
(hF : SmoothTimeBrownianField B hm K F a) (s δ : ℝ≥0) {E : Set Ω}
(hE : MeasurableSet[Filtration.natural B (fun t => (hm t).stronglyMeasurable) s] E) :
|(∫ ω in E, F (s + δ) ω (B (s + δ) ω) - F s ω (B s ω) ∂P) -
(∫ ω in E, (∫ u in (s : ℝ)..(s + δ : ℝ≥0), brownianFieldDrift B F a u ω) ∂P)| ≤
(K : ℝ) * (δ : ℝ) * dynkinRate δ := by
let : IsProbabilityMeasure P := hB.isGaussianProcess.isProbabilityMeasure
have hI (v t : ℝ≥0) : Integrable (fun ω => F v ω (B t ω)) (P.restrict E) := by
simpa only [iteratedDeriv_zero] using hF.eval_integrable v 0 (by decide) (hm t) (P := P.restrict E)
have hsplit : (∫ ω in E, F (s + δ) ω (B (s + δ) ω) - F s ω (B s ω) ∂P) =
(∫ ω in E, F s ω (B (s + δ) ω) - F s ω (B s ω) ∂P) +
(∫ ω in E, F (s + δ) ω (B (s + δ) ω) - F s ω (B (s + δ) ω) ∂P) := by
rw [integral_sub (hI _ _) (hI _ _), integral_sub (hI _ _) (hI _ _),
integral_sub (hI _ _) (hI _ _)]
ring
have hle : (s : ℝ) ≤ (s + δ : ℝ≥0) := by
simp only [NNReal.coe_add]; exact le_add_of_nonneg_right δ.coe_nonneg
have hsplitD : (∫ ω in E, (∫ u in (s : ℝ)..(s + δ : ℝ≥0), brownianFieldDrift B F a u ω) ∂P) =
(∫ ω in E, (∫ u in (s : ℝ)..(s + δ : ℝ≥0), a u.toNNReal ω (B u.toNNReal ω)) ∂P) +
(1 / 2 : ℝ) * (∫ ω in E, (∫ u in (s : ℝ)..(s + δ : ℝ≥0),
iteratedDeriv 2 (F u.toNNReal ω) (B u.toNNReal ω)) ∂P) := by
apply bounded_interval_integral_expectation_add _ _ _ hle _ _
(hF.drift_real_joint hBm) (hF.deriv_real_joint hBm 2 (by decide)) (K : ℝ) (K : ℝ)
· exact fun u ω => hF.drift_bound _ _ _
· exact fun u ω => hF.bound _ _ _ 2 (by decide)
rw [hsplit, hsplitD]
have h := abs_dynkin_algebra_bound _ _ _ _ _ _ _ _ _
(smooth_field_taylor_set_error hB hm K hF s δ hE)
(smooth_field_time_set_error hB hm hBm K hF s δ E)
(smooth_field_second_set_error hB hm hBm K hF s δ E)
convert h using 1
unfold dynkinRate
ring
end SLEExactGauge
end
end
end OAI

Xet Storage Details

Size:
39.3 kB
·
Xet hash:
bd8e0f1baff91f3cb970581b3e6076560d0ac7f99530bee09b17a72c72d1a2c8

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.