Download data/lean/OAI/Probability/FreeIsing/Conditioning/CopyArrayBrownian.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.31 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Conditioning/CopyArrayBrownian.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/FreeIsing/Conditioning/CopyArrayBrownian.lean
-
curl -L -o CopyArrayBrownian.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Conditioning/CopyArrayBrownian.lean
5.31 kB
| import OAI.Probability.FreeIsing.Conditioning.CopyBrownian | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped NNReal | |
| namespace Problem367.ConditionalCopyArrayBrownian | |
| open ConditionalCopyBrownian | |
| variable {ΞΉ O X : Type*} [MeasurableSpace O] [MeasurableSpace X] | |
| variable [StandardBorelSpace X] [Nonempty X] | |
| theorem condExp_increment_eq_zero | |
| (i : ΞΉ) (rho : Measure (ββ₯0 β ΞΉ β β)) [IsProbabilityMeasure rho] | |
| (hB : IsPreBrownianReal (fun t (w : ββ₯0 β ΞΉ β β) => w t i) rho) | |
| (eta : Kernel (ββ₯0 β ΞΉ β β) O) [IsMarkovKernel eta] | |
| {s t : ββ₯0} (hst : s β€ t) | |
| (past : O β X) (hpast : Measurable past) | |
| (hind : IndepFun | |
| (fun q : (ββ₯0 β ΞΉ β β) Γ O => (PathSplit.pastPath s q.1, past q.2)) | |
| (fun q => PathSplit.futureIncrements s q.1) (rho ββ eta)) : | |
| (rho ββ (eta Γβ eta))[ | |
| (fun q : (ββ₯0 β ΞΉ β β) Γ (O Γ O) => q.1 t i - q.1 s i) | | |
| joinedPast s past] =α΅[rho ββ (eta Γβ eta)] fun _ => 0 := by | |
| rcases hst.eq_or_lt with rfl | hst | |
| Β· simp | |
| have hi : Integrable (fun w : ββ₯0 β ΞΉ β β => w t i - w s i) rho := | |
| (hB.integrable_eval t).sub (hB.integrable_eval s) | |
| have hc := condExp_future_eq_integral s rho eta past hpast hind | |
| (fun z => z β¨t, hstβ© i) ((measurable_pi_apply i).comp (measurable_pi_apply _)) hi | |
| have hz : (β« w : ββ₯0 β ΞΉ β β, w t i - w s i βrho) = 0 := by | |
| rw [integral_sub (hB.integrable_eval t) (hB.integrable_eval s), | |
| hB.integral_eval, hB.integral_eval, sub_self] | |
| simpa only [PathSplit.futureIncrements, Pi.sub_apply, hz] using hc | |
| theorem condExp_increment_sq_eq_elapsed | |
| (i : ΞΉ) (rho : Measure (ββ₯0 β ΞΉ β β)) [IsProbabilityMeasure rho] | |
| (hB : IsPreBrownianReal (fun t (w : ββ₯0 β ΞΉ β β) => w t i) rho) | |
| (eta : Kernel (ββ₯0 β ΞΉ β β) O) [IsMarkovKernel eta] | |
| {s t : ββ₯0} (hst : s β€ t) | |
| (past : O β X) (hpast : Measurable past) | |
| (hind : IndepFun | |
| (fun q : (ββ₯0 β ΞΉ β β) Γ O => (PathSplit.pastPath s q.1, past q.2)) | |
| (fun q => PathSplit.futureIncrements s q.1) (rho ββ eta)) : | |
| (rho ββ (eta Γβ eta))[ | |
| (fun q : (ββ₯0 β ΞΉ β β) Γ (O Γ O) => (q.1 t i - q.1 s i) ^ 2) | | |
| joinedPast s past] =α΅[rho ββ (eta Γβ eta)] | |
| fun _ => (t : β) - (s : β) := by | |
| rcases hst.eq_or_lt with rfl | hst | |
| Β· simp | |
| have hi : Integrable (fun w : ββ₯0 β ΞΉ β β => (w t i - w s i) ^ 2) rho := | |
| ((hB.isGaussianProcess.hasGaussianLaw_eval t).memLp_two.sub | |
| (hB.isGaussianProcess.hasGaussianLaw_eval s).memLp_two).integrable_sq | |
| have hc := condExp_future_eq_integral s rho eta past hpast hind | |
| (fun z => (z β¨t, hstβ© i) ^ 2) (((measurable_pi_apply i).comp (measurable_pi_apply _)).pow_const 2) hi | |
| have hz : (β« w : ββ₯0 β ΞΉ β β, (w t i - w s i) ^ 2 βrho) = (t : β) - (s : β) := by | |
| have h := preBrownian_integral_sq (hB.shift s) (t - s) | |
| simpa [add_tsub_cancel_of_le hst.le, NNReal.coe_sub hst.le] using h | |
| simpa only [PathSplit.futureIncrements, Pi.sub_apply, hz] using hc | |
| theorem isPreBrownian_commonNoise | |
| (i : ΞΉ) (rho : Measure (ββ₯0 β ΞΉ β β)) [IsProbabilityMeasure rho] | |
| (hB : IsPreBrownianReal (fun t (w : ββ₯0 β ΞΉ β β) => w t i) rho) | |
| (eta : Kernel (ββ₯0 β ΞΉ β β) O) [IsMarkovKernel eta] : | |
| IsPreBrownianReal (fun t (q : (ββ₯0 β ΞΉ β β) Γ (O Γ O)) => q.1 t i) | |
| (rho ββ (eta Γβ eta)) := by | |
| have hmp : MeasurePreserving (Prod.fst : (ββ₯0 β ΞΉ β β) Γ (O Γ O) β (ββ₯0 β ΞΉ β β)) | |
| (rho ββ (eta Γβ eta)) rho := β¨measurable_fst, Measure.fst_compProd _ _β© | |
| exact β¨fun I => (hB.hasLaw I).comp hmp.hasLawβ© | |
| theorem commonNoise_martingale | |
| (i : ΞΉ) (rho : Measure (ββ₯0 β ΞΉ β β)) [IsProbabilityMeasure rho] | |
| (hB : IsPreBrownianReal (fun t (w : ββ₯0 β ΞΉ β β) => w t i) rho) | |
| (eta : Kernel (ββ₯0 β ΞΉ β β) O) [IsMarkovKernel eta] | |
| (past : ββ₯0 β O β X) (hpast : β s, Measurable (past s)) | |
| (G : Filtration ββ₯0 (inferInstance : MeasurableSpace ((ββ₯0 β ΞΉ β β) Γ (O Γ O)))) | |
| (hG : β s, G s = joinedPast s (past s)) | |
| (hind : β s, IndepFun | |
| (fun q : (ββ₯0 β ΞΉ β β) Γ O => (PathSplit.pastPath s q.1, past s q.2)) | |
| (fun q => PathSplit.futureIncrements s q.1) (rho ββ eta)) : | |
| Martingale (fun t (q : (ββ₯0 β ΞΉ β β) Γ (O Γ O)) => q.1 t i) G | |
| (rho ββ (eta Γβ eta)) := by | |
| have had : StronglyAdapted G | |
| (fun t (q : (ββ₯0 β ΞΉ β β) Γ (O Γ O)) => q.1 t i) := by | |
| intro t | |
| rw [hG t] | |
| have hh : Measurable[joinedPast (E := ΞΉ β β) t (past t)] | |
| (joinedHistory (E := ΞΉ β β) t (past t)) := | |
| comap_measurable _ | |
| exact ((measurable_pi_apply i).comp ((measurable_pi_apply | |
| (β¨t, by simpβ© : Set.Iic t)).comp (measurable_fst.comp hh))).stronglyMeasurable | |
| apply martingale_of_conditional_increment_zero had | |
| (fun t => (isPreBrownian_commonNoise i rho hB eta).integrable_eval t) | |
| intro s t hst | |
| rw [hG s] | |
| exact condExp_increment_eq_zero i rho hB eta hst (past s) (hpast s) (hind s) | |
| end Problem367.ConditionalCopyArrayBrownian | |
| end | |
| end OAI | |