Download data/lean/OAI/Probability/FreeIsing/Trees/BranchingExtinction.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.57 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Trees/BranchingExtinction.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/FreeIsing/Trees/BranchingExtinction.lean
-
curl -L -o BranchingExtinction.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Trees/BranchingExtinction.lean
3.57 kB
| import OAI.Probability.FreeIsing.Critical.Branching | |
| import OAI.Probability.FreeIsing.Trees.BranchingSurvivalLaw | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory Filter | |
| open scoped Topology | |
| namespace Problem367.BranchingSurvival | |
| theorem probability_eq_survival (b : β) {p : β} (hp0 : 0 β€ p) (hp1 : p β€ 1) | |
| (n : β) : probability b p n = CriticalBranching.survival b p n := by | |
| induction n with | |
| | zero => simp [CriticalBranching.survival] | |
| | succ n ih => | |
| rw [probability_succ b hp0 hp1, ih] | |
| rfl | |
| theorem probability_le_reciprocal {b : β} (hb : 1 β€ b) {p : β} | |
| (hp : p β Set.Icc (0 : β) 1) (hcritical : (b : β) * p β€ 1) (n : β) : | |
| probability b p n β€ 1 / (1 + (((b : β) - 1) * p ^ 2) * n) := by | |
| rw [probability_eq_survival b hp.1 hp.2] | |
| exact CriticalBranching.survival_le_reciprocal hb hp hcritical n | |
| theorem probability_tendsto_zero {b : β} (hb : 2 β€ b) {p : β} | |
| (hp : p β Set.Icc (0 : β) 1) (hcritical : (b : β) * p β€ 1) : | |
| Tendsto (probability b p) atTop (π 0) := by | |
| have heq : probability b p = CriticalBranching.survival b p := | |
| funext (probability_eq_survival b hp.1 hp.2) | |
| rw [heq] | |
| exact CriticalBranching.survival_tendsto_zero hb hp hcritical | |
| lemma survives_succ_subset (b : β) (p : β) (n : β) : | |
| @survives b p (n + 1) β survives p n := by | |
| induction n with | |
| | zero => exact Set.subset_univ _ | |
| | succ n ih => | |
| rintro U β¨i, hi, hchildβ© | |
| exact β¨i, hi, ih hchildβ© | |
| lemma antitone_survives (b : β) (p : β) : Antitone (@survives b p) := | |
| antitone_nat_of_succ_le (survives_succ_subset b p) | |
| theorem measure_survives_forever {b : β} (hb : 2 β€ b) {p : β} | |
| (hp : p β Set.Icc (0 : β) 1) (hcritical : (b : β) * p β€ 1) : | |
| wordMeasure b (β n : β, survives p n) = 0 := by | |
| have hlim : Tendsto (fun n => wordMeasure b (survives p n)) atTop (π 0) := by | |
| have h := (ENNReal.continuous_ofReal.tendsto 0).comp | |
| (probability_tendsto_zero hb hp hcritical) | |
| simpa [Function.comp_def, probability, Measure.real, ENNReal.ofReal_toReal (measure_ne_top _ _)] using h | |
| have hcontinuity := tendsto_measure_iInter_atTop | |
| (fun n => (measurableSet_survives b p n).nullMeasurableSet) | |
| (antitone_survives b p) (show β n, wordMeasure b (survives p n) β β€ from | |
| β¨0, measure_ne_top _ _β©) | |
| exact tendsto_nhds_unique hcontinuity hlim | |
| theorem ae_exists_extinction_depth {b : β} (hb : 2 β€ b) {p : β} | |
| (hp : p β Set.Icc (0 : β) 1) (hcritical : (b : β) * p β€ 1) : | |
| βα΅ U βwordMeasure b, β n : β, U β survives p n := by | |
| apply ae_iff.mpr | |
| have hs : {U : Labels b | Β¬ β n : β, U β survives p n} = | |
| β n : β, survives p n := by | |
| ext U | |
| simp | |
| rw [hs] | |
| exact measure_survives_forever hb hp hcritical | |
| theorem measurePreserving_wordShift (b : β) (w : List (Fin b)) : | |
| MeasurePreserving (fun U : Labels b => fun v => U (w ++ v)) | |
| (wordMeasure b) (wordMeasure b) := by | |
| refine β¨by fun_prop, ?_β© | |
| exact Measure.map_infinitePi_infinitePi_of_inj | |
| (fun x y h => List.append_cancel_left h) | |
| theorem ae_all_extinction_depth {b : β} (hb : 2 β€ b) {p : β} | |
| (hp : p β Set.Icc (0 : β) 1) (hcritical : (b : β) * p β€ 1) : | |
| βα΅ U βwordMeasure b, β w : List (Fin b), | |
| β n : β, (fun v => U (w ++ v)) β survives p n := by | |
| apply ae_all_iff.mpr | |
| intro w | |
| exact (measurePreserving_wordShift b w).quasiMeasurePreserving.ae | |
| (ae_exists_extinction_depth hb hp hcritical) | |
| end Problem367.BranchingSurvival | |
| end | |
| end OAI | |