Buckets:
| import Mathlib | |
| import OAI.Probability.SLE.BrownianGenerators | |
| namespace OAI | |
| /-! Optional Stopping for chordal SLE. -/ | |
| section | |
| section | |
| open Set Filter MeasureTheory ProbabilityTheory | |
| open scoped Topology NNReal ENNReal | |
| namespace SLEExactGauge | |
| lemma eq_of_uniform_small_increment | |
| (f : ℝ≥0 → ℝ) (rate : ℝ≥0 → ℝ) (C : ℝ) | |
| (hrate : Tendsto rate (𝓝 0) (𝓝 0)) | |
| (hb : ∀ s δ, |f (s + δ) - f s| ≤ C * (δ : ℝ) * rate δ) | |
| (s t : ℝ≥0) (hst : s ≤ t) : f t = f s := by | |
| have mesh (n : ℕ) : |f t - f s| ≤ C * ((t : ℝ) - s) * rate ((t - s) / (n + 1)) := by | |
| let δ : ℝ≥0 := (t - s) / (n + 1) | |
| let u (i : ℕ) : ℝ≥0 := s + i * δ | |
| have hn : (n + 1 : ℝ≥0) ≠ 0 := by positivity | |
| have hlast : u (n + 1) = t := by | |
| dsimp only [u, δ] | |
| push_cast | |
| rw [mul_div_cancel₀ _ hn, add_tsub_cancel_of_le hst] | |
| have hstep (i : ℕ) : u (i + 1) = u i + δ := by | |
| dsimp [u]; push_cast; ring | |
| have htel : (∑ i ∈ Finset.range (n + 1), (f (u (i + 1)) - f (u i))) = f t - f s := by | |
| rw [Finset.sum_range_sub (fun i => f (u i))] | |
| simp only [hlast, u, Nat.cast_zero, zero_mul, add_zero] | |
| have hδ : ((n : ℝ) + 1) * (δ : ℝ) = (t : ℝ) - s := by | |
| dsimp only [δ] | |
| rw [NNReal.coe_div, NNReal.coe_sub hst] | |
| push_cast | |
| exact mul_div_cancel₀ _ (by positivity) | |
| calc | |
| |f t - f s| = |∑ i ∈ Finset.range (n + 1), (f (u (i + 1)) - f (u i))| := by rw [htel] | |
| _ ≤ ∑ i ∈ Finset.range (n + 1), |f (u (i + 1)) - f (u i)| := | |
| Finset.abs_sum_le_sum_abs _ _ | |
| _ ≤ ∑ _i ∈ Finset.range (n + 1), C * (δ : ℝ) * rate δ := by | |
| apply Finset.sum_le_sum | |
| intro i hi | |
| rw [hstep] | |
| exact hb (u i) δ | |
| _ = C * ((t : ℝ) - s) * rate δ := by | |
| simp only [Finset.sum_const, Finset.card_range, nsmul_eq_mul, Nat.cast_add, Nat.cast_one] | |
| calc | |
| ((n : ℝ) + 1) * (C * (δ : ℝ) * rate δ) = C * (((n : ℝ) + 1) * (δ : ℝ)) * rate δ := by ring | |
| _ = _ := by rw [hδ] | |
| have hmesh : Tendsto (fun n : ℕ => (t - s) / (n + 1 : ℝ≥0)) atTop (𝓝 0) := by | |
| apply NNReal.tendsto_coe.mp | |
| simp only [NNReal.coe_div, NNReal.coe_add, NNReal.coe_natCast, NNReal.coe_one, NNReal.coe_zero] | |
| apply tendsto_const_nhds.div_atTop | |
| simpa only [Function.comp_def, Nat.cast_add, Nat.cast_one] using | |
| (tendsto_natCast_atTop_atTop (R := ℝ)).comp (tendsto_add_atTop_nat 1) | |
| have hl : Tendsto (fun n : ℕ => C * ((t : ℝ) - s) * rate ((t - s) / (n + 1))) atTop (𝓝 0) := by | |
| simpa only [mul_zero, Function.comp_apply] using tendsto_const_nhds.mul (hrate.comp hmesh) | |
| have he : |f t - f s| ≤ 0 := le_of_tendsto_of_tendsto tendsto_const_nhds hl | |
| (Eventually.of_forall mesh) | |
| exact sub_eq_zero.mp (abs_nonpos_iff.mp he) | |
| lemma bounded_interval_integral_expectation_sub | |
| {Ω : Type*} [MeasurableSpace Ω] {P : Measure Ω} [IsFiniteMeasure P] | |
| (a b c : ℝ) (hab : a ≤ b) (hbc : b ≤ c) (G : ℝ → Ω → ℝ) | |
| (hG : Measurable (Function.uncurry G)) (C : ℝ) (hGb : ∀ u ω, |G u ω| ≤ C) : | |
| (∫ ω, (∫ u in a..c, G u ω) ∂P) - (∫ ω, (∫ u in a..b, G u ω) ∂P) = | |
| ∫ ω, (∫ u in b..c, G u ω) ∂P := by | |
| have hi₁ := bounded_interval_integral_integrable a b hab G hG C hGb (P := P) | |
| have hi₂ := bounded_interval_integral_integrable b c hbc G hG C hGb (P := P) | |
| have he : (∫ ω, (∫ u in a..c, G u ω) ∂P) = | |
| (∫ ω, (∫ u in a..b, G u ω) ∂P) + (∫ ω, (∫ u in b..c, G u ω) ∂P) := by | |
| rw [← integral_add hi₁ hi₂] | |
| apply integral_congr_ae | |
| exact Eventually.of_forall fun ω => (intervalIntegral.integral_add_adjacent_intervals | |
| (bounded_time_section_intervalIntegrable a b hab G hG C hGb ω) | |
| (bounded_time_section_intervalIntegrable b c hbc G hG C hGb ω)).symm | |
| rw [he, add_sub_cancel_left] | |
| lemma SmoothTimeBrownianField.generator_measurable | |
| {Ω : 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 (Function.uncurry (brownianFieldDrift B F a)) := by | |
| change Measurable (fun q : ℝ × Ω => a q.1.toNNReal q.2 (B q.1.toNNReal q.2) + | |
| (1 / 2 : ℝ) * iteratedDeriv 2 (F q.1.toNNReal q.2) (B q.1.toNNReal q.2)) | |
| exact (hF.drift_real_joint hBm).add (measurable_const.mul (hF.deriv_real_joint hBm 2 (by decide))) | |
| lemma SmoothTimeBrownianField.generator_bound | |
| {Ω : Type*} [MeasurableSpace Ω] | |
| {B : ℝ≥0 → Ω → ℝ} {hm : ∀ t, Measurable (B t)} | |
| {K : ℝ≥0} {F a : ℝ≥0 → Ω → ℝ → ℝ} | |
| (hF : SmoothTimeBrownianField B hm K F a) (u : ℝ) (ω : Ω) : | |
| |brownianFieldDrift B F a u ω| ≤ 2 * (K : ℝ) := by | |
| unfold brownianFieldDrift | |
| have hb := hF.bound u.toNNReal ω (B u.toNNReal ω) 2 (by decide) | |
| have ha := hF.drift_bound u.toNNReal ω (B u.toNNReal ω) | |
| have ht := abs_add_le (a u.toNNReal ω (B u.toNNReal ω)) | |
| ((1 / 2 : ℝ) * iteratedDeriv 2 (F u.toNNReal ω) (B u.toNNReal ω)) | |
| rw [abs_mul, abs_of_nonneg (by norm_num : (0 : ℝ) ≤ 1 / 2)] at ht | |
| linarith [K.coe_nonneg] | |
| theorem brownian_time_field_dynkin | |
| {Ω : 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 t : ℝ≥0) (hst : s ≤ t) {E : Set Ω} | |
| (hE : MeasurableSet[Filtration.natural B | |
| (fun t => (hm t).stronglyMeasurable) s] E) : | |
| (∫ ω in E, F t ω (B t ω) - F s ω (B s ω) ∂P) = | |
| ∫ ω in E, (∫ u in (s : ℝ)..(t : ℝ), brownianFieldDrift B F a u ω) ∂P := by | |
| let : IsProbabilityMeasure P := hB.isGaussianProcess.isProbabilityMeasure | |
| let c (r : ℝ≥0) := ∫ ω in E, (∫ u in (s : ℝ)..(s + r : ℝ≥0), brownianFieldDrift B F a u ω) ∂P | |
| let v (r : ℝ≥0) := ∫ ω in E, F r ω (B r ω) ∂P | |
| let f (r : ℝ≥0) := v (s + r) - c r | |
| have hI (r : ℝ≥0) : Integrable (fun ω => F r ω (B r ω)) (P.restrict E) := by | |
| simpa only [iteratedDeriv_zero] using hF.eval_integrable r 0 (by decide) (hm r) (P := P.restrict E) | |
| have hinc (r δ : ℝ≥0) : |f (r + δ) - f r| ≤ (K : ℝ) * (δ : ℝ) * dynkinRate δ := by | |
| have hsr : s ≤ s + r := le_add_of_nonneg_right (zero_le) | |
| have hE' : MeasurableSet[Filtration.natural B (fun t => (hm t).stronglyMeasurable) (s + r)] E := | |
| (Filtration.natural B (fun t => (hm t).stronglyMeasurable)).mono hsr E hE | |
| have h := smooth_field_one_step_error hB hm hBm K hF (s + r) δ hE' | |
| have hcomp : c (r + δ) - c r = | |
| ∫ ω in E, (∫ u in (s + r : ℝ≥0)..((s + r) + δ : ℝ≥0), brownianFieldDrift B F a u ω) ∂P := by | |
| dsimp only [c] | |
| rw [← add_assoc] | |
| apply bounded_interval_integral_expectation_sub _ _ _ | |
| (by exact_mod_cast hsr) (by simp only [NNReal.coe_add]; linarith [δ.coe_nonneg]) _ | |
| (hF.generator_measurable hBm) (2 * (K : ℝ)) (hF.generator_bound) | |
| have hv : v ((s + r) + δ) - v (s + r) = | |
| ∫ ω in E, F ((s + r) + δ) ω (B ((s + r) + δ) ω) - F (s + r) ω (B (s + r) ω) ∂P := | |
| (integral_sub (hI _) (hI _)).symm | |
| have he : f (r + δ) - f r = | |
| (∫ ω in E, F ((s + r) + δ) ω (B ((s + r) + δ) ω) - F (s + r) ω (B (s + r) ω) ∂P) - | |
| (∫ ω in E, (∫ u in (s + r : ℝ≥0)..((s + r) + δ : ℝ≥0), brownianFieldDrift B F a u ω) ∂P) := by | |
| dsimp only [f] | |
| rw [← add_assoc] | |
| linarith | |
| rw [he] | |
| exact h | |
| have heq := eq_of_uniform_small_increment f dynkinRate K dynkinRate_tendsto_zero hinc 0 (t - s) (zero_le) | |
| have hc0 : c 0 = 0 := by simp [c] | |
| have hst' : s + (t - s) = t := add_tsub_cancel_of_le hst | |
| change v (s + (t - s)) - c (t - s) = v (s + 0) - c 0 at heq | |
| rw [hst', add_zero, hc0, sub_zero] at heq | |
| have hc : c (t - s) = ∫ ω in E, (∫ u in (s : ℝ)..(t : ℝ), brownianFieldDrift B F a u ω) ∂P := by | |
| dsimp only [c] | |
| rw [hst'] | |
| rw [integral_sub (hI _) (hI _)] | |
| change v t - v s = _ | |
| linarith | |
| noncomputable def stopGridIndex (n : ℕ) (t : ℝ≥0) : ℕ := | |
| Nat.ceil (((n : ℝ≥0) + 1) * t) | |
| noncomputable def stopGridTime (n k : ℕ) : ℝ≥0 := | |
| (k : ℝ≥0) / ((n : ℝ≥0) + 1) | |
| noncomputable def stopGrid (n : ℕ) (t : ℝ≥0) : ℝ≥0 := | |
| stopGridTime n (stopGridIndex n t) | |
| lemma stopGridIndex_le (n k : ℕ) (t : ℝ≥0) : | |
| stopGridIndex n t ≤ k ↔ t ≤ stopGridTime n k := by | |
| have hd : 0 < (n : ℝ≥0) + 1 := by positivity | |
| simp only [stopGridIndex, Nat.ceil_le, stopGridTime, le_div_iff₀ hd, mul_comm] | |
| lemma stopGrid_bounds (n : ℕ) (t : ℝ≥0) : | |
| t ≤ stopGrid n t ∧ stopGrid n t ≤ t + 1 / ((n : ℝ≥0) + 1) := by | |
| have hd : 0 < (n : ℝ≥0) + 1 := by positivity | |
| constructor | |
| · exact (stopGridIndex_le n _ t).mp le_rfl | |
| · dsimp [stopGrid, stopGridTime, stopGridIndex] | |
| rw [div_le_iff₀ hd] | |
| calc | |
| _ ≤ ((n : ℝ≥0) + 1) * t + 1 := | |
| (Nat.ceil_lt_add_one (by positivity)).le | |
| _ = (t + 1 / ((n : ℝ≥0) + 1)) * ((n : ℝ≥0) + 1) := by | |
| conv_rhs => rw [add_mul, div_mul_cancel₀ _ hd.ne'] | |
| ac_rfl | |
| lemma stopGrid_tendsto (t : ℝ≥0) : Tendsto (fun n => stopGrid n t) atTop (𝓝 t) := by | |
| apply tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds | |
| (by simpa using (tendsto_const_nhds.add | |
| (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ≥0)))) | |
| · exact fun n => (stopGrid_bounds n t).1 | |
| · intro n | |
| simpa only [one_div] using (stopGrid_bounds n t).2 | |
| lemma measurable_discrete_eval {Ω : Type*} [MeasurableSpace Ω] | |
| (f : ℕ → Ω → ℝ) (hf : ∀ k, Measurable (f k)) | |
| {j : Ω → ℕ} (hj : Measurable j) : Measurable (fun ω => f (j ω) ω) := by | |
| exact (measurable_from_prod_countable_right (f := fun p : ℕ × Ω => f p.1 p.2) hf).comp (hj.prodMk measurable_id) | |
| lemma stopping_time_measurable_nnreal {Ω : Type*} [mΩ : MeasurableSpace Ω] | |
| {ℱ : Filtration ℝ≥0 mΩ} {τ : Ω → ℝ≥0} | |
| (hτ : IsStoppingTime ℱ (fun ω => (τ ω : WithTop ℝ≥0))) : Measurable τ := by | |
| simpa only [WithTop.untopD_coe] using hτ.measurable'.untopD 0 | |
| lemma stopGridIndex_measurable {Ω : Type*} [MeasurableSpace Ω] | |
| {τ : Ω → ℝ≥0} (hτ : Measurable τ) (n : ℕ) : | |
| Measurable (fun ω => stopGridIndex n (τ ω)) := by | |
| exact (measurable_const.mul hτ).nat_ceil | |
| lemma SmoothTimeBrownianField.time_increment_all | |
| {Ω : Type*} [MeasurableSpace Ω] {B : ℝ≥0 → Ω → ℝ} | |
| {hm : ∀ t, Measurable (B t)} {K : ℝ≥0} {F a : ℝ≥0 → Ω → ℝ → ℝ} | |
| (hF : SmoothTimeBrownianField B hm K F a) (s t : ℝ≥0) (ω : Ω) (x : ℝ) : | |
| F t ω x - F s ω x = ∫ u in (s : ℝ)..(t : ℝ), a u.toNNReal ω x := by | |
| rcases le_total s t with h | h | |
| · exact hF.time_increment s t h ω x | |
| · rw [intervalIntegral.integral_symm, ← hF.time_increment t s h ω x] | |
| ring | |
| lemma SmoothTimeBrownianField.time_dist_le | |
| {Ω : Type*} [MeasurableSpace Ω] {B : ℝ≥0 → Ω → ℝ} | |
| {hm : ∀ t, Measurable (B t)} {K : ℝ≥0} {F a : ℝ≥0 → Ω → ℝ → ℝ} | |
| (hF : SmoothTimeBrownianField B hm K F a) (s t : ℝ≥0) (ω : Ω) (x : ℝ) : | |
| dist (F t ω x) (F s ω x) ≤ (K : ℝ) * dist t s := by | |
| rw [Real.dist_eq, hF.time_increment_all] | |
| have hb := intervalIntegral.norm_integral_le_of_norm_le_const (a := (s : ℝ)) (b := (t : ℝ)) | |
| (f := fun u => a u.toNNReal ω x) (C := (K : ℝ)) | |
| (fun u hu => by simpa only [Real.norm_eq_abs] using hF.drift_bound u.toNNReal ω x) | |
| change |(∫ u in (s : ℝ)..(t : ℝ), a u.toNNReal ω x)| ≤ (K : ℝ) * |(t : ℝ) - s| | |
| simpa only [Real.norm_eq_abs] using hb | |
| lemma SmoothTimeBrownianField.space_lipschitz | |
| {Ω : Type*} [MeasurableSpace Ω] {B : ℝ≥0 → Ω → ℝ} | |
| {hm : ∀ t, Measurable (B t)} {K : ℝ≥0} {F a : ℝ≥0 → Ω → ℝ → ℝ} | |
| (hF : SmoothTimeBrownianField B hm K F a) (t : ℝ≥0) (ω : Ω) : | |
| LipschitzWith K (F t ω) := by | |
| apply lipschitzWith_of_nnnorm_deriv_le ((hF.smooth t ω).differentiable (by norm_num)) | |
| intro x | |
| change ‖deriv (F t ω) x‖ ≤ (K : ℝ) | |
| simpa only [iteratedDeriv_one, Real.norm_eq_abs] using hF.bound t ω x 1 (by decide) | |
| lemma SmoothTimeBrownianField.path_continuous | |
| {Ω : Type*} [MeasurableSpace Ω] {B : ℝ≥0 → Ω → ℝ} | |
| {hm : ∀ t, Measurable (B t)} {K : ℝ≥0} {F a : ℝ≥0 → Ω → ℝ → ℝ} | |
| (hF : SmoothTimeBrownianField B hm K F a) | |
| (hc : ∀ ω, Continuous (fun t => B t ω)) (ω : Ω) : | |
| Continuous (fun t => F t ω (B t ω)) := by | |
| have hpair : LipschitzWith (2 * K) (fun p : ℝ≥0 × ℝ => F p.1 ω p.2) := by | |
| apply LipschitzWith.of_dist_le_mul | |
| intro p q | |
| calc | |
| dist (F p.1 ω p.2) (F q.1 ω q.2) ≤ | |
| dist (F p.1 ω p.2) (F q.1 ω p.2) + dist (F q.1 ω p.2) (F q.1 ω q.2) := dist_triangle _ _ _ | |
| _ ≤ (K : ℝ) * dist p.1 q.1 + (K : ℝ) * dist p.2 q.2 := | |
| add_le_add (hF.time_dist_le q.1 p.1 ω p.2) ((hF.space_lipschitz q.1 ω).dist_le_mul p.2 q.2) | |
| _ ≤ (K : ℝ) * dist p q + (K : ℝ) * dist p q := by | |
| gcongr | |
| · exact le_max_left _ _ | |
| · exact le_max_right _ _ | |
| _ = _ := by change _ = (2 * (K : ℝ)) * dist p q; ring | |
| exact hpair.continuous.comp (continuous_id.prodMk (hc ω)) | |
| lemma cumulative_integral_measurable | |
| {Ω : Type*} [MeasurableSpace Ω] (G : ℝ → Ω → ℝ) | |
| (hG : Measurable (Function.uncurry G)) : | |
| Measurable (fun q : ℝ≥0 × Ω => ∫ u in (0 : ℝ)..(q.1 : ℝ), G u q.2) := by | |
| have hf : Measurable (fun q : (ℝ≥0 × Ω) × ℝ => G q.2 q.1.2) := | |
| hG.comp (measurable_snd.prodMk measurable_fst.snd) | |
| let A : Set ((ℝ≥0 × Ω) × ℝ) := {q | 0 < q.2 ∧ q.2 ≤ (q.1.1 : ℝ)} | |
| have hA : MeasurableSet A := | |
| (measurableSet_lt measurable_const measurable_snd).inter | |
| (measurableSet_le measurable_snd (measurable_coe_nnreal_real.comp measurable_fst.fst)) | |
| have hm := ((hf.indicator hA).stronglyMeasurable.integral_prod_right' (ν := volume)).measurable | |
| convert hm using 1 | |
| funext q | |
| rw [intervalIntegral.integral_of_le q.1.coe_nonneg, ← integral_indicator measurableSet_Ioc] | |
| rfl | |
| noncomputable def brownianFieldCompensated {Ω : Type*} | |
| (B : ℝ≥0 → Ω → ℝ) (F a : ℝ≥0 → Ω → ℝ → ℝ) (t : ℝ≥0) (ω : Ω) : ℝ := | |
| F t ω (B t ω) - ∫ u in (0 : ℝ)..(t : ℝ), brownianFieldDrift B F a u ω | |
| lemma SmoothTimeBrownianField.compensated_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) | |
| (hBm : Measurable (fun q : ℝ≥0 × Ω => B q.1 q.2)) (t : ℝ≥0) : | |
| Integrable (brownianFieldCompensated B F a t) P := by | |
| have hi : Integrable (fun ω => F t ω (B t ω)) P := | |
| hF.eval_integrable t 0 (by decide) (hm t) | |
| exact hi.sub (bounded_interval_integral_integrable 0 t t.coe_nonneg _ | |
| (hF.generator_measurable hBm) (2 * (K : ℝ)) hF.generator_bound) | |
| lemma SmoothTimeBrownianField.compensated_past_integral_zero | |
| {Ω : 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 t : ℝ≥0) (hst : s ≤ t) | |
| {E : Set Ω} (hE : MeasurableSet[Filtration.natural B (fun t => (hm t).stronglyMeasurable) s] E) : | |
| (∫ ω in E, brownianFieldCompensated B F a t ω - brownianFieldCompensated B F a s ω ∂P) = 0 := by | |
| let : IsProbabilityMeasure P := hB.isGaussianProcess.isProbabilityMeasure | |
| have hGm := hF.generator_measurable hBm | |
| have hGi (a b : ℝ) (h : a ≤ b) (ω : Ω) := | |
| bounded_time_section_intervalIntegrable a b h _ hGm (2 * (K : ℝ)) hF.generator_bound ω | |
| have hp (ω : Ω) : brownianFieldCompensated B F a t ω - brownianFieldCompensated B F a s ω = | |
| (F t ω (B t ω) - F s ω (B s ω)) - ∫ u in (s : ℝ)..(t : ℝ), brownianFieldDrift B F a u ω := by | |
| have hh := intervalIntegral.integral_add_adjacent_intervals (hGi 0 s s.coe_nonneg ω) (hGi s t hst ω) | |
| dsimp only [brownianFieldCompensated] | |
| linarith | |
| simp_rw [hp] | |
| have hf : Integrable (fun ω => F t ω (B t ω) - F s ω (B s ω)) (P.restrict E) := | |
| (hF.eval_integrable t 0 (by decide) (hm t)).sub (hF.eval_integrable s 0 (by decide) (hm s)) | |
| rw [integral_sub hf (bounded_interval_integral_integrable s t hst _ hGm (2 * (K : ℝ)) hF.generator_bound), | |
| brownian_time_field_dynkin hB hm hBm K F a hF s t hst hE, sub_self] | |
| lemma sum_stopped_increments (f : ℕ → ℝ) (k N : ℕ) (hk : k ≤ N) : | |
| (∑ j ∈ Finset.range N, if j < k then f (j + 1) - f j else 0) = f k - f 0 := by | |
| have hs : (∑ j ∈ Finset.range k, if j < k then f (j + 1) - f j else 0) = | |
| ∑ j ∈ Finset.range N, if j < k then f (j + 1) - f j else 0 := by | |
| apply Finset.sum_subset (Finset.range_mono hk) | |
| intro j hj hjk | |
| exact ite_eq_right (fun hh => hjk (Finset.mem_range.mpr hh)) | |
| rw [← hs] | |
| calc | |
| _ = ∑ j ∈ Finset.range k, (f (j + 1) - f j) := by | |
| apply Finset.sum_congr rfl | |
| intro j hj | |
| exact ite_eq_left (Finset.mem_range.mp hj) | |
| _ = _ := Finset.sum_range_sub f k | |
| lemma finite_grid_stopped_integral_eq | |
| {Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω} | |
| (ℱ : Filtration ℕ mΩ) (C : ℕ → Ω → ℝ) | |
| (hi : ∀ j, Integrable (C j) P) (σ : Ω → ℕ) (N : ℕ) | |
| (hb : ∀ ω, σ ω ≤ N) | |
| (hE : ∀ j, MeasurableSet[ℱ j] {ω | j < σ ω}) | |
| (hzero : ∀ j (E : Set Ω), MeasurableSet[ℱ j] E → | |
| (∫ ω in E, C (j + 1) ω - C j ω ∂P) = 0) : | |
| (∫ ω, C (σ ω) ω ∂P) = ∫ ω, C 0 ω ∂P := by | |
| classical | |
| let D (j : ℕ) : Ω → ℝ := {ω | j < σ ω}.indicator (fun ω => C (j + 1) ω - C j ω) | |
| have hD (j : ℕ) : Integrable (D j) P := | |
| ((hi (j + 1)).sub (hi j)).indicator (ℱ.le j _ (hE j)) | |
| have hDi (j : ℕ) : (∫ ω, D j ω ∂P) = 0 := by | |
| change (∫ ω, {ω | j < σ ω}.indicator (fun ω => C (j + 1) ω - C j ω) ω ∂P) = 0 | |
| rw [integral_indicator (ℱ.le j _ (hE j))] | |
| exact hzero j _ (hE j) | |
| have hpoint (ω : Ω) : C (σ ω) ω = C 0 ω + ∑ j ∈ Finset.range N, D j ω := by | |
| have hh := sum_stopped_increments (fun j => C j ω) (σ ω) N (hb ω) | |
| have hsum : (∑ j ∈ Finset.range N, D j ω) = | |
| ∑ j ∈ Finset.range N, if j < σ ω then C (j + 1) ω - C j ω else 0 := by | |
| apply Finset.sum_congr rfl | |
| intro index _ | |
| by_cases hindex : index < σ ω <;> simp [D, hindex] | |
| rw [hsum, hh] | |
| ring | |
| simp_rw [hpoint] | |
| rw [integral_add (hi 0) (integrable_finsetSum _ (fun j hj => hD j)), integral_finsetSum] | |
| · simp only [hDi, Finset.sum_const_zero, add_zero] | |
| · intro j hj; exact hD j | |
| lemma monotone_stopGridTime (n : ℕ) : Monotone (stopGridTime n) := by | |
| intro i j hij | |
| dsimp only [stopGridTime] | |
| exact div_le_div_of_nonneg_right (Nat.cast_le.mpr hij) (by positivity) | |
| noncomputable def gridFiltration {Ω : Type*} {mΩ : MeasurableSpace Ω} | |
| (ℱ : Filtration ℝ≥0 mΩ) (n : ℕ) : Filtration ℕ mΩ where | |
| seq j := ℱ (stopGridTime n j) | |
| mono' := fun _ _ hij => ℱ.mono (monotone_stopGridTime n hij) | |
| le' j := ℱ.le (stopGridTime n j) | |
| lemma brownian_compensated_grid_integral | |
| {Ω : 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) | |
| (τ : Ω → ℝ≥0) | |
| (hτ : IsStoppingTime (Filtration.natural B | |
| (fun t => (hm t).stronglyMeasurable)) (fun ω => (τ ω : WithTop ℝ≥0))) | |
| (T : ℝ≥0) (hb : ∀ ω, τ ω ≤ T) (n : ℕ) : | |
| (∫ ω, brownianFieldCompensated B F a (stopGrid n (τ ω)) ω ∂P) = | |
| ∫ ω, F 0 ω (B 0 ω) ∂P := by | |
| let : IsProbabilityMeasure P := hB.isGaussianProcess.isProbabilityMeasure | |
| let ℱ := Filtration.natural B (fun t => (hm t).stronglyMeasurable) | |
| let ℱn := gridFiltration ℱ n | |
| have hbound (ω : Ω) : stopGridIndex n (τ ω) ≤ stopGridIndex n T := by | |
| apply (stopGridIndex_le n _ _).mpr | |
| exact (hb ω).trans (stopGrid_bounds n T).1 | |
| have hE (j : ℕ) : MeasurableSet[ℱn j] {ω | j < stopGridIndex n (τ ω)} := by | |
| have hle : MeasurableSet[ℱ (stopGridTime n j)] {ω | τ ω ≤ stopGridTime n j} := by | |
| simpa only [WithTop.coe_le_coe] using hτ (stopGridTime n j) | |
| have he : {ω | j < stopGridIndex n (τ ω)} = {ω | τ ω ≤ stopGridTime n j}ᶜ := by | |
| ext ω | |
| simp only [mem_compl_iff, mem_ofPred_eq, ← stopGridIndex_le, not_le] | |
| rw [he] | |
| exact hle.compl | |
| have he := finite_grid_stopped_integral_eq ℱn | |
| (fun j => brownianFieldCompensated B F a (stopGridTime n j)) | |
| (fun j => hF.compensated_integrable hBm _) | |
| (fun ω => stopGridIndex n (τ ω)) (stopGridIndex n T) hbound hE | |
| (fun j E hE => hF.compensated_past_integral_zero hB hm hBm _ _ | |
| (monotone_stopGridTime n (Nat.le_succ j)) hE) | |
| simpa only [stopGrid, stopGridTime, Nat.cast_zero, zero_div, | |
| brownianFieldCompensated, NNReal.coe_zero, intervalIntegral.integral_same, sub_zero] using he | |
| lemma bounded_cumulative_at_grid | |
| {Ω : Type*} [MeasurableSpace Ω] (G : ℝ → Ω → ℝ) | |
| (hG : Measurable (Function.uncurry G)) (C : ℝ) (hC : 0 ≤ C) | |
| (hb : ∀ u ω, |G u ω| ≤ C) (τ : Ω → ℝ≥0) | |
| (hz : ∀ ω u, 0 ≤ u → u < (τ ω : ℝ) → G u ω = 0) (n : ℕ) (ω : Ω) : | |
| |∫ u in (0 : ℝ)..(stopGrid n (τ ω) : ℝ), G u ω| ≤ C * (1 / ((n : ℝ) + 1)) := by | |
| have h0 : (∫ u in (0 : ℝ)..(τ ω : ℝ), G u ω) = 0 := by | |
| calc | |
| _ = ∫ u in (0 : ℝ)..(τ ω : ℝ), (0 : ℝ) := | |
| intervalIntegral.integral_congr_Ioo_of_le (τ ω).coe_nonneg (fun u hu => hz ω u hu.1.le hu.2) | |
| _ = _ := by simp | |
| have hle : (τ ω : ℝ) ≤ stopGrid n (τ ω) := (stopGrid_bounds n (τ ω)).1 | |
| have hsplit := intervalIntegral.integral_add_adjacent_intervals | |
| (bounded_time_section_intervalIntegrable 0 (τ ω) (τ ω).coe_nonneg G hG C hb ω) | |
| (bounded_time_section_intervalIntegrable (τ ω) (stopGrid n (τ ω)) hle G hG C hb ω) | |
| rw [h0, zero_add] at hsplit | |
| rw [← hsplit] | |
| have hbnd := intervalIntegral.norm_integral_le_of_norm_le_const | |
| (a := (τ ω : ℝ)) (b := (stopGrid n (τ ω) : ℝ)) (C := C) (f := fun u => G u ω) | |
| (fun u hu => by simpa only [Real.norm_eq_abs] using hb u ω) | |
| rw [Real.norm_eq_abs, abs_of_nonneg (sub_nonneg.mpr hle)] at hbnd | |
| refine hbnd.trans (mul_le_mul_of_nonneg_left ?_ hC) | |
| have hupper := (stopGrid_bounds n (τ ω)).2 | |
| have hu : (stopGrid n (τ ω) : ℝ) ≤ (τ ω : ℝ) + 1 / ((n : ℝ) + 1) := by exact_mod_cast hupper | |
| linarith | |
| theorem brownian_time_field_optional | |
| {Ω : 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)) | |
| (hBc : ∀ ω, Continuous (fun t => B t ω)) | |
| (K : ℝ≥0) (F a : ℝ≥0 → Ω → ℝ → ℝ) | |
| (hF : SmoothTimeBrownianField B hm K F a) | |
| (τ : Ω → ℝ≥0) | |
| (hτ : IsStoppingTime (Filtration.natural B | |
| (fun t => (hm t).stronglyMeasurable)) (fun ω => (τ ω : WithTop ℝ≥0))) | |
| (T : ℝ≥0) (hb : ∀ ω, τ ω ≤ T) | |
| (hzero : ∀ ω u, 0 ≤ u → u < (τ ω : ℝ) → brownianFieldDrift B F a u ω = 0) : | |
| (∫ ω, F (τ ω) ω (B (τ ω) ω) ∂P) = (∫ ω, F 0 ω (B 0 ω) ∂P) := by | |
| let : IsProbabilityMeasure P := hB.isGaussianProcess.isProbabilityMeasure | |
| have hτm := stopping_time_measurable_nnreal hτ | |
| let V (n : ℕ) (ω : Ω) := F (stopGrid n (τ ω)) ω (B (stopGrid n (τ ω)) ω) | |
| let H (n : ℕ) (ω : Ω) := ∫ u in (0 : ℝ)..(stopGrid n (τ ω) : ℝ), brownianFieldDrift B F a u ω | |
| have hVm (n : ℕ) : Measurable (V n) := | |
| measurable_discrete_eval (fun k ω => F (stopGridTime n k) ω (B (stopGridTime n k) ω)) | |
| (fun k => hF.eval_measurable _ 0 (by decide) (hm _)) (stopGridIndex_measurable hτm n) | |
| have hVb (n : ℕ) (ω : Ω) : |V n ω| ≤ (K : ℝ) := | |
| hF.bound _ ω _ 0 (by decide) | |
| have hVi (n : ℕ) : Integrable (V n) P := | |
| Integrable.of_bound (hVm n).aestronglyMeasurable (K : ℝ) | |
| (Eventually.of_forall fun ω => by simpa only [Real.norm_eq_abs] using hVb n ω) | |
| have hGm := hF.generator_measurable hBm | |
| have hHjoint := cumulative_integral_measurable _ hGm | |
| have hHm (n : ℕ) : Measurable (H n) := | |
| measurable_discrete_eval (fun k ω => ∫ u in (0 : ℝ)..(stopGridTime n k : ℝ), brownianFieldDrift B F a u ω) | |
| (fun k => hHjoint.comp measurable_prodMk_left) (stopGridIndex_measurable hτm n) | |
| have hHb (n : ℕ) (ω : Ω) : |H n ω| ≤ (2 * (K : ℝ)) * (1 / ((n : ℝ) + 1)) := | |
| bounded_cumulative_at_grid _ hGm (2 * (K : ℝ)) (by positivity) hF.generator_bound τ hzero n ω | |
| have hHi (n : ℕ) : Integrable (H n) P := | |
| Integrable.of_bound (hHm n).aestronglyMeasurable _ | |
| (Eventually.of_forall fun ω => by simpa only [Real.norm_eq_abs] using hHb n ω) | |
| have hmean (n : ℕ) : (∫ ω, V n ω ∂P) - (∫ ω, F 0 ω (B 0 ω) ∂P) = ∫ ω, H n ω ∂P := by | |
| have hh := brownian_compensated_grid_integral hB hm hBm hF τ hτ T hb n | |
| change (∫ ω, V n ω - H n ω ∂P) = _ at hh | |
| rw [integral_sub (hVi n) (hHi n)] at hh | |
| linarith | |
| have herror (n : ℕ) : dist (∫ ω, V n ω ∂P) (∫ ω, F 0 ω (B 0 ω) ∂P) ≤ | |
| (2 * (K : ℝ)) * (1 / ((n : ℝ) + 1)) := by | |
| rw [Real.dist_eq, hmean] | |
| have hh := norm_integral_le_of_norm_le_const (μ := P) (Eventually.of_forall fun ω => | |
| show ‖H n ω‖ ≤ (2 * (K : ℝ)) * (1 / ((n : ℝ) + 1)) from by | |
| simpa only [Real.norm_eq_abs] using hHb n ω) | |
| simpa only [Real.norm_eq_abs, Measure.real, measure_univ, ENNReal.toReal_one, mul_one] using hh | |
| have hlim : Tendsto (fun n => ∫ ω, V n ω ∂P) atTop (𝓝 (∫ ω, F (τ ω) ω (B (τ ω) ω) ∂P)) := by | |
| apply tendsto_integral_of_dominated_convergence (fun _ => (K : ℝ)) | |
| (fun n => (hVm n).aestronglyMeasurable) (integrable_const _) | |
| (fun n => Eventually.of_forall fun ω => by simpa only [Real.norm_eq_abs] using hVb n ω) | |
| exact Eventually.of_forall fun ω => (hF.path_continuous hBc ω).continuousAt.tendsto.comp (stopGrid_tendsto (τ ω)) | |
| have hlim0 : Tendsto (fun n => ∫ ω, V n ω ∂P) atTop (𝓝 (∫ ω, F 0 ω (B 0 ω) ∂P)) := by | |
| apply tendsto_iff_dist_tendsto_zero.mpr | |
| apply squeeze_zero (fun n => dist_nonneg) herror | |
| simpa only [mul_zero] using | |
| (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)).const_mul (2 * (K : ℝ)) | |
| exact tendsto_nhds_unique hlim hlim0 | |
| noncomputable def picardApprox | |
| {Ω E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| (V : ℝ → Ω → E → E) (x₀ : E) : ℕ → ℝ → Ω → E | |
| | 0, _, _ => x₀ | |
| | n + 1, t, ω => x₀ + ∫ u in Ioc (0 : ℝ) t, V u ω (picardApprox V x₀ n u ω) | |
| lemma picardApprox_measurable | |
| {Ω E : Type*} [MeasurableSpace Ω] [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| [SecondCountableTopology E] [MeasurableSpace E] [BorelSpace E] | |
| (V : ℝ → Ω → E → E) (x₀ : E) | |
| (hV : Measurable (fun q : (ℝ × Ω) × E => V q.1.1 q.1.2 q.2)) (n : ℕ) : | |
| Measurable (fun q : ℝ × Ω => picardApprox V x₀ n q.1 q.2) := by | |
| induction n with | |
| | zero => exact measurable_const | |
| | succ n ih => | |
| have hf : Measurable (fun q : (ℝ × Ω) × ℝ => V q.2 q.1.2 (picardApprox V x₀ n q.2 q.1.2)) := | |
| hV.comp ((measurable_snd.prodMk measurable_fst.snd).prodMk | |
| (ih.comp (measurable_snd.prodMk measurable_fst.snd))) | |
| let A : Set ((ℝ × Ω) × ℝ) := {q | 0 < q.2 ∧ q.2 ≤ q.1.1} | |
| have hA : MeasurableSet A := | |
| (measurableSet_lt measurable_const measurable_snd).inter | |
| (measurableSet_le measurable_snd measurable_fst.fst) | |
| have hm := ((hf.indicator hA).stronglyMeasurable.integral_prod_right' (ν := volume)).measurable | |
| apply measurable_const.add | |
| convert hm using 1 | |
| funext q | |
| rw [← integral_indicator measurableSet_Ioc] | |
| rfl | |
| lemma picardApprox_eq_iterate | |
| {Ω E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| {V : ℝ → Ω → E → E} {x₀ : E} {T L K : ℝ≥0} (ω : Ω) | |
| (hf : IsPicardLindelof (fun t x => V t ω x) | |
| (⟨0, ⟨le_rfl, T.coe_nonneg⟩⟩ : Icc (0 : ℝ) T) x₀ (L * T) 0 L K) | |
| (α₀ : ODE.FunSpace (⟨0, ⟨le_rfl, T.coe_nonneg⟩⟩ : Icc (0 : ℝ) T) x₀ 0 L) | |
| (hα₀ : ∀ t, α₀ t = x₀) (n : ℕ) (t : Icc (0 : ℝ) T) : | |
| picardApprox V x₀ n t ω = | |
| ((ODE.FunSpace.next hf (Metric.mem_closedBall_self (le_refl (0 : ℝ))))^[n] α₀) t := by | |
| induction n generalizing t with | |
| | zero => exact (hα₀ t).symm | |
| | succ n ih => | |
| rw [Function.iterate_succ_apply', ODE.FunSpace.next_apply, ODE.picard_apply] | |
| dsimp only [picardApprox] | |
| congr 1 | |
| rw [intervalIntegral.integral_of_le t.property.1] | |
| apply setIntegral_congr_fun measurableSet_Ioc | |
| intro u hu | |
| have hu' : u ∈ Icc (0 : ℝ) T := ⟨hu.1.le, hu.2.trans t.property.2⟩ | |
| exact congrArg (V u ω) ((ih ⟨u, hu'⟩).trans (ODE.FunSpace.compProj_of_mem hu').symm) | |
| theorem exists_measurable_bounded_ode | |
| {Ω E : Type*} [MeasurableSpace Ω] [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| [CompleteSpace E] [SecondCountableTopology E] [MeasurableSpace E] [BorelSpace E] | |
| (V : ℝ → Ω → E → E) (x₀ : E) (T L K : ℝ≥0) | |
| (hV : Measurable (fun q : (ℝ × Ω) × E => V q.1.1 q.1.2 q.2)) | |
| (hc : ∀ ω x, Continuous (fun t : ℝ => V t ω x)) | |
| (hl : ∀ ω t, LipschitzWith K (V t ω)) | |
| (hb : ∀ ω t x, ‖V t ω x‖ ≤ L) : | |
| ∃ X : ℝ → Ω → E, | |
| Measurable (fun q : ℝ × Ω => X q.1 q.2) ∧ | |
| (∀ ω, LipschitzWith L (fun t => X t ω)) ∧ | |
| (∀ ω, X 0 ω = x₀) ∧ | |
| (∀ ω t, t ∈ Icc 0 (T : ℝ) → | |
| HasDerivWithinAt (fun u => X u ω) (V t ω (X t ω)) (Icc 0 (T : ℝ)) t) := by | |
| let t₀ : Icc (0 : ℝ) T := ⟨0, ⟨le_rfl, T.coe_nonneg⟩⟩ | |
| have hPL (ω : Ω) : IsPicardLindelof (fun t x => V t ω x) t₀ x₀ (L * T) 0 L K := by | |
| refine ⟨fun t ht => (hl ω t).lipschitzOnWith, fun x hx => (hc ω x).continuousOn, | |
| fun t ht x hx => hb ω t x, ?_⟩ | |
| simp only [t₀, sub_zero, sub_self, max_eq_left T.coe_nonneg, NNReal.coe_mul, | |
| NNReal.coe_zero, le_refl] | |
| have hx : x₀ ∈ Metric.closedBall x₀ (0 : ℝ) := Metric.mem_closedBall_self le_rfl | |
| choose α hα using fun ω => ODE.FunSpace.exists_isFixedPt_next (hPL ω) hx | |
| let X (t : ℝ) (ω : Ω) := (α ω).compProj t | |
| let α₀ : ODE.FunSpace t₀ x₀ 0 L := | |
| ⟨fun _ => x₀, (LipschitzWith.const x₀).weaken (show (0 : ℝ≥0) ≤ L from bot_le), hx⟩ | |
| have hα₀ (t : Icc (0 : ℝ) T) : α₀ t = x₀ := rfl | |
| have hconv (t : Icc (0 : ℝ) T) (ω : Ω) : | |
| Tendsto (fun n => picardApprox V x₀ n t ω) atTop (𝓝 ((α ω) t)) := by | |
| apply tendsto_iff_dist_tendsto_zero.mpr | |
| apply squeeze_zero (fun _ => dist_nonneg) | |
| (fun n => ?_) (by simpa only [zero_mul] using (FloorSemiring.tendsto_pow_div_factorial_atTop | |
| ((K : ℝ) * |(t : ℝ)|)).mul_const (dist α₀ (α ω))) | |
| have hh := ODE.FunSpace.dist_iterate_next_apply_le (hPL ω) hx α₀ (α ω) n t | |
| rw [(hα ω).iterate n] at hh | |
| simpa only [t₀, sub_zero, picardApprox_eq_iterate ω (hPL ω) α₀ hα₀ n t] using hh | |
| refine ⟨X, ?_, ?_, ?_, ?_⟩ | |
| · apply measurable_of_tendsto_metrizable | |
| (f := fun n q => picardApprox V x₀ n (projIcc 0 (T : ℝ) T.coe_nonneg q.1) q.2) | |
| · intro n | |
| exact (picardApprox_measurable V x₀ hV n).comp | |
| (((continuous_subtype_val.comp (continuous_projIcc (h := T.coe_nonneg))).measurable.comp measurable_fst).prodMk measurable_snd) | |
| · apply tendsto_pi_nhds.mpr | |
| intro q | |
| exact hconv (projIcc 0 (T : ℝ) T.coe_nonneg q.1) q.2 | |
| · intro ω | |
| simpa only [mul_one, X, ODE.FunSpace.compProj, Function.comp_def] using (α ω).lipschitzWith.comp (LipschitzWith.projIcc T.coe_nonneg) | |
| · intro ω | |
| change (α ω).compProj 0 = x₀ | |
| rw [ODE.FunSpace.compProj_of_mem t₀.property] | |
| exact ODE.FunSpace.apply_of_zero (α ω) | |
| · intro ω t ht | |
| apply ODE.hasDerivWithinAt_picard_Icc t₀.property (hPL ω).continuousOn_uncurry | |
| (α ω).continuous_compProj.continuousOn | |
| (fun s hs => (α ω).compProj_mem_closedBall (t := s) (hPL ω).mul_max_le) x₀ ht | |
| |>.congr_of_mem _ ht | |
| intro s hs | |
| change (α ω).compProj s = ODE.picard (fun t x => V t ω x) t₀ x₀ (α ω).compProj s | |
| rw [ODE.FunSpace.compProj_of_mem hs] | |
| nth_rw 1 [← hα ω] | |
| exact ODE.FunSpace.next_apply (hPL ω) hx (α ω) | |
| noncomputable def clippedHeight (lo hi : ℝ) (hle : lo ≤ hi) (q : ℂ × ℝ) : ℝ := | |
| Real.exp (projIcc lo hi hle q.1.im) | |
| noncomputable def clippedCenter (lo hi : ℝ) (hle : lo ≤ hi) (u : ℝ) (q : ℂ × ℝ) : ℂ := | |
| ((q.1.re - u : ℝ) : ℂ) + (clippedHeight lo hi hle q : ℂ) * Complex.I | |
| noncomputable def clippedLogLoewnerField (lo hi : ℝ) (hle : lo ≤ hi) (u : ℝ) | |
| (q : ℂ × ℝ) : ℂ × ℝ := | |
| let v := (clippedCenter lo hi hle u q)⁻¹ | |
| (((2 * v.re : ℝ) : ℂ) + ((-2 * Complex.normSq v : ℝ) : ℂ) * Complex.I, | |
| (-2 * v ^ 2).re) | |
| lemma clippedHeight_pos (lo hi : ℝ) (hle : lo ≤ hi) (q : ℂ × ℝ) : | |
| 0 < clippedHeight lo hi hle q := Real.exp_pos _ | |
| lemma clippedHeight_bounds (lo hi : ℝ) (hle : lo ≤ hi) (q : ℂ × ℝ) : | |
| Real.exp lo ≤ clippedHeight lo hi hle q ∧ clippedHeight lo hi hle q ≤ Real.exp hi := by | |
| exact ⟨Real.exp_le_exp.mpr (projIcc lo hi hle q.1.im).property.1, | |
| Real.exp_le_exp.mpr (projIcc lo hi hle q.1.im).property.2⟩ | |
| lemma clippedCenter_im (lo hi : ℝ) (hle : lo ≤ hi) (u : ℝ) (q : ℂ × ℝ) : | |
| (clippedCenter lo hi hle u q).im = clippedHeight lo hi hle q := by | |
| simp [clippedCenter] | |
| lemma clippedCenter_ne_zero (lo hi : ℝ) (hle : lo ≤ hi) (u : ℝ) (q : ℂ × ℝ) : | |
| clippedCenter lo hi hle u q ≠ 0 := by | |
| intro hh | |
| have he := congrArg Complex.im hh | |
| rw [clippedCenter_im] at he | |
| exact (clippedHeight_pos lo hi hle q).ne' he | |
| lemma exp_clamp_lipschitz (lo hi : ℝ) (hle : lo ≤ hi) : | |
| LipschitzWith ⟨Real.exp hi, (Real.exp_pos hi).le⟩ | |
| (fun x : ℝ => Real.exp (projIcc lo hi hle x)) := by | |
| have hf : LipschitzOnWith ⟨Real.exp hi, (Real.exp_pos hi).le⟩ Real.exp (Icc lo hi) := by | |
| apply (convex_Icc lo hi).lipschitzOnWith_of_nnnorm_hasDerivWithin_le | |
| (fun x hx => (Real.hasDerivAt_exp x).hasDerivWithinAt) | |
| intro x hx | |
| change ‖Real.exp x‖ ≤ Real.exp hi | |
| rw [Real.norm_eq_abs, abs_of_pos (Real.exp_pos x)] | |
| exact Real.exp_le_exp.mpr hx.2 | |
| apply LipschitzWith.of_dist_le_mul | |
| intro x y | |
| calc | |
| _ ≤ Real.exp hi * dist (projIcc lo hi hle x : ℝ) (projIcc lo hi hle y : ℝ) := | |
| hf.dist_le_mul (projIcc lo hi hle x) (projIcc lo hi hle x).property | |
| (projIcc lo hi hle y) (projIcc lo hi hle y).property | |
| _ ≤ Real.exp hi * dist x y := by | |
| apply mul_le_mul_of_nonneg_left _ (Real.exp_pos hi).le | |
| have hp := (LipschitzWith.projIcc hle).dist_le_mul x y | |
| change dist (projIcc lo hi hle x : ℝ) (projIcc lo hi hle y : ℝ) ≤ (1 : ℝ) * dist x y at hp | |
| simpa only [one_mul] using hp | |
| end SLEExactGauge | |
| end | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 35.8 kB
- Xet hash:
- 2b89cd1e28b3cf13e3378ac974cdea8b2783a1d0b5c560f70362d7f634d86873
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.