Download data/lean/OAI/Probability/CriticalPercolation/ProductMeasure/LevelCutProbability.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.78 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/CriticalPercolation/ProductMeasure/LevelCutProbability.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/CriticalPercolation/ProductMeasure/LevelCutProbability.lean
-
curl -L -o LevelCutProbability.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/CriticalPercolation/ProductMeasure/LevelCutProbability.lean
3.78 kB
| import Mathlib | |
| import OAI.Probability.CriticalPercolation.Criticality.BlockIndependence | |
| import OAI.Probability.CriticalPercolation.Gluing.SelectedFresh | |
| namespace OAI | |
| section | |
| section | |
| noncomputable section | |
| open Set Function MeasureTheory ProbabilityTheory | |
| open scoped Classical BigOperators ENNReal | |
| namespace CriticalPercolation.BernoulliProduct | |
| variable {E I : Type*} | |
| theorem selected_fresh_lower [Countable I] (q : E β unitInterval) (X Y : Set E) | |
| (hXY : Disjoint X Y) (d : Set E β I) (A : I β Set (Set E)) | |
| (hd : β i, MeasurableSet[blockSigma X] {Ο | d Ο=i}) | |
| (hA : β i, MeasurableSet[blockSigma Y] (A i)) | |
| (C : Set (Set E)) (hC : MeasurableSet[blockSigma X] C) | |
| (r : β) (hr : 0 β€ r) (hb : β ΟβC, r β€ (law q).real (A (d Ο))) : | |
| r*(law q).real C β€ (law q).real (Cβ©selectedEvent d A) := by | |
| have hmA := measurableSet_selectedEvent d A (fun i => blockSigma_le X _ (hd i)) | |
| (fun i => blockSigma_le Y _ (hA i)) | |
| have hk (Ο : Set E) (hΟ : ΟβC) : | |
| ENNReal.ofReal r β€ blockProbability q X (selectedEvent d A) Ο := by | |
| rw [blockProbability_selected q X Y hXY d A hd hA Ο] | |
| apply (ENNReal.toReal_le_toReal ENNReal.ofReal_ne_top (measure_ne_top _ _)).mp | |
| rw [ENNReal.toReal_ofReal hr] | |
| exact hb Ο hΟ | |
| have hh : ENNReal.ofReal r*law q C β€ law q (selectedEvent d Aβ©C) := by | |
| rw [β setLIntegral_blockProbability q X _ C hmA hC] | |
| calc | |
| _ = β«β» _ in C, ENNReal.ofReal r βlaw q := by | |
| rw [lintegral_const,Measure.restrict_apply_univ] | |
| _ β€ _ := setLIntegral_mono' (blockSigma_le X _ hC) hk | |
| have ht := ENNReal.toReal_mono (measure_ne_top _ _) hh | |
| simpa only [Set.inter_comm (selectedEvent d A) C,ENNReal.toReal_mul, | |
| ENNReal.toReal_ofReal hr,Measure.real] using ht | |
| lemma law_closedBlock_lower (q : E β unitInterval) (S : Set E) (hS : S.Finite) | |
| (p : unitInterval) (N : β) (hN : S.ncard β€ N) | |
| (hq : β eβS, (q e : β) β€ p) : | |
| (1-(p : β))^N β€ (law q).real (closedBlock S) := by | |
| have hp0 : 0 β€ 1-(p : β) := sub_nonneg.mpr p.2.2 | |
| have hp1 : 1-(p : β) β€ 1 := by linarith [p.2.1] | |
| rw [measureReal_def,law_closedBlock q S hS,ENNReal.toReal_prod] | |
| calc | |
| _ β€ (1-(p : β))^S.ncard := pow_le_pow_of_le_one hp0 hp1 hN | |
| _ = β eβhS.toFinset, (1-(p : β)) := by simp [Set.ncard_eq_toFinset_card S hS] | |
| _ β€ _ := by | |
| apply Finset.prod_le_prodβ | |
| Β· intro e he; exact hp0 | |
| Β· intro e he | |
| change 1-(p : β) β€ (bitMeasure (q e)).real {False} | |
| rw [bitMeasure_real_singleton] | |
| simpa only [bitWeight,ite_false] using sub_le_sub_left (hq e (hS.mem_toFinset.mp he)) 1 | |
| lemma exists_level_small (ΞΌ : Measure (Set E)) [IsProbabilityMeasure ΞΌ] | |
| (J : Finset I) (hJ : J.Nonempty) (C M : I β Set (Set E)) | |
| (hM : β iβJ, MeasurableSet (M i)) | |
| (hdis : (J : Set I).PairwiseDisjoint M) (c : β) (hc : 0 < c) | |
| (hb : β iβJ, c*ΞΌ.real (C i) β€ ΞΌ.real (M i)) : | |
| β iβJ, ΞΌ.real (C i) β€ 1/((J.card : β)*c) := by | |
| have hsum : (β iβJ, ΞΌ.real (M i)) β€ 1 := by | |
| rw [β measureReal_biUnion_finset hdis hM] | |
| exact measureReal_le_one | |
| have hcard : 0 < (J.card : β) := by exact_mod_cast Finset.card_pos.mpr hJ | |
| by_contra h | |
| push Not at h | |
| have hs : (β iβJ, 1/(J.card : β)) < β iβJ, ΞΌ.real (M i) := by | |
| apply Finset.sum_lt_sum_of_nonempty hJ | |
| intro i hi | |
| have hh := mul_lt_mul_of_pos_left (h i hi) hc | |
| have he : c*(1/((J.card : β)*c))=1/(J.card : β) := by field_simp | |
| rw [he] at hh | |
| exact hh.trans_le (hb i hi) | |
| simp only [Finset.sum_const, nsmul_eq_mul] at hs | |
| have he : (J.card : β)*(1/(J.card : β))=1 := by field_simp | |
| rw [he] at hs | |
| exact (not_lt_of_ge hsum) hs | |
| end CriticalPercolation.BernoulliProduct | |
| end | |
| end | |
| end | |
| end OAI | |