Download data/lean/OAI/Probability/CriticalPercolation/Criticality/CylinderApproximation.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.31 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/CriticalPercolation/Criticality/CylinderApproximation.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/CriticalPercolation/Criticality/CylinderApproximation.lean
-
curl -L -o CylinderApproximation.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/CriticalPercolation/Criticality/CylinderApproximation.lean
3.31 kB
| import Mathlib | |
| import OAI.Probability.CriticalPercolation.Criticality.BlockIndependence | |
| namespace OAI | |
| section | |
| noncomputable section | |
| open Set MeasureTheory ProbabilityTheory | |
| open scoped Classical symmDiff ENNReal | |
| namespace CriticalPercolation.BernoulliProduct | |
| variable {E : Type*} | |
| def finiteCoordinateEvents : Set (Set (Set E)) := | |
| {A | β S : Finset E, MeasurableSet[blockSigma (S : Set E)] A} | |
| lemma finiteCoordinateEvents_ring : IsSetRing (finiteCoordinateEvents (E := E)) where | |
| empty_mem := β¨β ,@MeasurableSet.empty (Set E) (blockSigma ((β : Finset E) : Set E))β© | |
| union_mem := by | |
| rintro A B β¨S,hSβ© β¨T,hTβ© | |
| refine β¨S βͺ T,?_β© | |
| exact @MeasurableSet.union (Set E) (blockSigma ((S βͺ T : Finset E) : Set E)) _ _ | |
| (blockSigma_mono (by simp) _ hS) (blockSigma_mono (by simp) _ hT) | |
| sdiff_mem := by | |
| rintro A B β¨S,hSβ© β¨T,hTβ© | |
| refine β¨S βͺ T,?_β© | |
| exact @MeasurableSet.diff (Set E) (blockSigma ((S βͺ T : Finset E) : Set E)) _ _ | |
| (blockSigma_mono (by simp) _ hS) (blockSigma_mono (by simp) _ hT) | |
| lemma generateFrom_finiteCoordinateEvents : | |
| MeasurableSpace.generateFrom (finiteCoordinateEvents (E := E)) = | |
| (Set.instMeasurableSpace : MeasurableSpace (Set E)) := by | |
| apply le_antisymm | |
| Β· exact MeasurableSpace.generateFrom_le fun A β¨S,hSβ© => blockSigma_le _ _ hS | |
| Β· change (β¨ e : E, coordinateSigma e) β€ _ | |
| refine iSup_le fun e => ?_ | |
| intro A hA | |
| apply MeasurableSpace.measurableSet_generateFrom | |
| refine β¨{e},?_β© | |
| exact (le_iSup_of_le e (le_iSup_of_le (Finset.mem_singleton_self e) le_rfl) : | |
| coordinateSigma e β€ blockSigma (({e} : Finset E) : Set E)) _ hA | |
| lemma exists_finiteCoordinate_approx (q : E β unitInterval) | |
| {A : Set (Set E)} (hA : MeasurableSet A) {Ξ΅ : ββ₯0β} (hΞ΅ : 0 < Ξ΅) : | |
| β (S : Finset E) (B : Set (Set E)), MeasurableSet[blockSigma (S : Set E)] B β§ | |
| law q (B β A) < Ξ΅ := by | |
| obtain β¨B,β¨S,hBβ©,hβ© := exists_measure_symmDiff_lt_of_generateFrom_isSetRing | |
| finiteCoordinateEvents_ring (ΞΌ := law q) | |
| (show β D : Set (Set (Set E)), D.Countable β§ D β finiteCoordinateEvents β§ | |
| law q (ββ D)αΆ = 0 from | |
| β¨{Set.univ},by simp,by rintro A rfl; exact β¨β ,@MeasurableSet.univ (Set E) (blockSigma ((β : Finset E) : Set E))β©,by simpβ©) | |
| generateFrom_finiteCoordinateEvents.symm hA hΞ΅ | |
| exact β¨S,B,hB,hβ© | |
| lemma measurable_image_equiv_blocks (e : E β E) (S : Set E) : | |
| @Measurable (Set E) (Set E) (blockSigma (e.symm '' S)) (blockSigma S) | |
| (fun Ο => e '' Ο) := by | |
| apply measurable_iff_comap_le.mpr | |
| simp only [blockSigma, MeasurableSpace.comap_iSup] | |
| refine iSupβ_le fun x hx => ?_ | |
| have hm : @Measurable (Set E) Prop (coordinateSigma (e.symm x)) inferInstance | |
| (fun Ο => x β e '' Ο) := by | |
| have hh : (fun Ο : Set E => x β e '' Ο) = (fun Ο => e.symm x β Ο) := by | |
| funext Ο | |
| exact propext (by simp) | |
| rw [hh] | |
| exact measurable_iff_comap_le.mpr le_rfl | |
| have hc := hm.comap_le | |
| rw [coordinateSigma,MeasurableSpace.comap_comp] | |
| change MeasurableSpace.comap (fun Ο : Set E => x β e '' Ο) inferInstance β€ _ | |
| exact hc.trans (le_iSup_of_le (e.symm x) (le_iSup_of_le β¨x,hx,rflβ© le_rfl)) | |
| end CriticalPercolation.BernoulliProduct | |
| end | |
| end | |
| end OAI | |