Download data/lean/OAI/Probability/FreeIsing/Martingales/StoppedTimePrimitive.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.41 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Martingales/StoppedTimePrimitive.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/FreeIsing/Martingales/StoppedTimePrimitive.lean
-
curl -L -o StoppedTimePrimitive.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Martingales/StoppedTimePrimitive.lean
4.41 kB
| import OAI.Probability.FreeIsing.Estimates.ProgressivePrimitive | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory ProbabilityTheory Set Filter | |
| open scoped NNReal Topology | |
| namespace Problem367.StoppedTimePrimitive | |
| def stopDensity {Ξ© : Type*} (a : ββ₯0 β Ξ© β β) (Ο : Ξ© β WithTop ββ₯0) | |
| (t : ββ₯0) (Ο : Ξ©) : β := | |
| if (t : WithTop ββ₯0) β€ Ο Ο then a t Ο else 0 | |
| theorem integral_indicator_min (a : β β β) (t u : ββ₯0) : | |
| (β« r in (0 : β)..(t : β), if r β€ u then a r else 0) = | |
| β« r in (0 : β)..(min t u : ββ₯0), a r := by | |
| rcases le_total t u with h | h | |
| Β· rw [min_eq_left h] | |
| apply intervalIntegral.integral_congr | |
| intro r hr | |
| rw [Set.uIcc_of_le t.coe_nonneg] at hr | |
| exact ite_eq_left (hr.2.trans h) | |
| Β· rw [min_eq_right h] | |
| exact intervalIntegral.integral_indicator β¨u.coe_nonneg, hβ© | |
| theorem stoppedProcess_primitive {Ξ© : Type*} (a : ββ₯0 β Ξ© β β) | |
| (Ο : Ξ© β WithTop ββ₯0) (t : ββ₯0) (Ο : Ξ©) : | |
| stoppedProcess (nnrealTimePrimitive a) Ο t Ο = | |
| nnrealTimePrimitive (stopDensity a Ο) t Ο := by | |
| cases hΟ : Ο Ο with | |
| | top => simp only [stoppedProcess, nnrealTimePrimitive, stopDensity, hΟ, min_eq_left le_top, WithTop.untopA, WithTop.untopD_coe, le_top, ite_true] | |
| | coe u => | |
| simp only [stoppedProcess, hΟ, β WithTop.coe_min, WithTop.untopA, | |
| WithTop.untopD_coe, nnrealTimePrimitive, stopDensity, WithTop.coe_le_coe, | |
| Real.toNNReal_le_iff_le_coe] | |
| exact (integral_indicator_min (fun r => a r.toNNReal Ο) t u).symm | |
| theorem continuous_stoppedProcess {Ξ© E : Type*} [TopologicalSpace E] | |
| {X : ββ₯0 β Ξ© β E} {Ο : Ξ©} (hX : Continuous (fun t => X t Ο)) | |
| (Ο : Ξ© β WithTop ββ₯0) : Continuous (fun t => stoppedProcess X Ο t Ο) := by | |
| cases hΟ : Ο Ο with | |
| | top => simpa only [stoppedProcess, hΟ, min_eq_left le_top, WithTop.untopA, WithTop.untopD_coe] using hX | |
| | coe u => | |
| simpa only [stoppedProcess, hΟ, β WithTop.coe_min, WithTop.untopA, | |
| WithTop.untopD_coe, Function.comp_def, id_eq] using hX.comp (continuous_id.min continuous_const) | |
| theorem monotone_stoppedProcess {Ξ© E : Type*} [Preorder E] | |
| {X : ββ₯0 β Ξ© β E} {Ο : Ξ©} (hX : Monotone (fun t => X t Ο)) | |
| (Ο : Ξ© β WithTop ββ₯0) : Monotone (fun t => stoppedProcess X Ο t Ο) := by | |
| cases hΟ : Ο Ο with | |
| | top => simpa only [stoppedProcess, hΟ, min_eq_left le_top, WithTop.untopA, WithTop.untopD_coe] using hX | |
| | coe u => | |
| simpa only [stoppedProcess, hΟ, β WithTop.coe_min, WithTop.untopA, | |
| WithTop.untopD_coe, Function.comp_def, id_eq] using hX.comp (monotone_id.min monotone_const) | |
| theorem stopTime_eq_iff_le {Ξ© : Type*} (Ο : Ξ© β WithTop ββ₯0) (t : ββ₯0) (Ο : Ξ©) : | |
| (min (t : WithTop ββ₯0) (Ο Ο)).untopA = t β (t : WithTop ββ₯0) β€ Ο Ο := by | |
| cases hΟ : Ο Ο with | |
| | top => simp only [min_eq_left le_top, WithTop.untopA, WithTop.untopD_coe, le_top] | |
| | coe u => simp only [β WithTop.coe_min, WithTop.untopA, WithTop.untopD_coe, min_eq_left_iff, WithTop.coe_le_coe] | |
| theorem isStronglyProgressive_stopDensity {Ξ© : Type*} [mΞ© : MeasurableSpace Ξ©] | |
| {F : Filtration ββ₯0 mΞ©} {a : ββ₯0 β Ξ© β β} {Ο : Ξ© β WithTop ββ₯0} | |
| (ha : IsStronglyProgressive F a) (hΟ : IsStoppingTime F Ο) : | |
| IsStronglyProgressive F (stopDensity a Ο) := by | |
| intro T | |
| let : MeasurableSpace Ξ© := F T | |
| have hs : MeasurableSet {p : Iic T Γ Ξ© | ((p.1 : ββ₯0) : WithTop ββ₯0) β€ Ο p.2} := by | |
| simp only [β stopTime_eq_iff_le] | |
| exact measurableSet_eq_fun (isStronglyProgressive_min_stopping_time hΟ T).measurable | |
| measurable_fst.subtype_val | |
| exact (ha T).piecewise hs stronglyMeasurable_const | |
| theorem stoppedProcess_weighted_primitive {Ξ© E : Type*} | |
| (X : ββ₯0 β Ξ© β E) (f : E β β) (a : ββ₯0 β Ξ© β β) | |
| (Ο : Ξ© β WithTop ββ₯0) (t : ββ₯0) (Ο : Ξ©) : | |
| stoppedProcess (nnrealTimePrimitive (fun s Ο => f (X s Ο) * a s Ο)) Ο t Ο = | |
| nnrealTimePrimitive (fun s Ο => f (stoppedProcess X Ο s Ο) * stopDensity a Ο s Ο) t Ο := by | |
| rw [stoppedProcess_primitive] | |
| congr 1 | |
| funext s Ο | |
| by_cases h : (s : WithTop ββ₯0) β€ Ο Ο | |
| Β· simp only [stopDensity, h, ite_true, stoppedProcess_eq_of_le h] | |
| Β· simp only [stopDensity, h, ite_false, mul_zero] | |
| end Problem367.StoppedTimePrimitive | |
| end | |
| end OAI | |