File size: 3,306 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | 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
|