math / data /lean /OAI /Probability /CriticalPercolation /Criticality /CylinderApproximation.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
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