introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.09 kB
import Mathlib
import OAI.Probability.CriticalPercolation.ProductMeasure.MeasurableSetRestrict
import OAI.Probability.CriticalPercolation.ProductMeasure.MonotoneIndicatorUpper
namespace OAI
section
section
noncomputable section
open Set Function MeasureTheory ProbabilityTheory
open scoped Classical ENNReal
namespace CriticalPercolation.BernoulliProduct
variable {E I : Type*}
lemma upper_biUnion (A : I β†’ Set (Set E)) (s : Finset I)
(hA : βˆ€ i∈s, IsUpperSet (A i)) : IsUpperSet (⋃ i∈s, A i) := by
intro ω τ h hω
obtain ⟨i,hi,hΟ‰βŸ© := Set.mem_iUnionβ‚‚.mp hΟ‰
exact Set.mem_iUnionβ‚‚.mpr ⟨i,hi,hA i hi h hΟ‰βŸ©
lemma finiteWitness_biUnion (A : I β†’ Set (Set E)) (s : Finset I)
(hA : βˆ€ i∈s, HasFiniteOpenWitness (A i)) :
HasFiniteOpenWitness (⋃ i∈s, A i) := by
intro ω hω
obtain ⟨i,hi,hΟ‰βŸ© := Set.mem_iUnionβ‚‚.mp hΟ‰
obtain ⟨K,hK,hKs,hKA⟩ := hA i hi Ο‰ hΟ‰
exact ⟨K,hK,hKs,Set.mem_iUnionβ‚‚.mpr ⟨i,hi,hKA⟩⟩
theorem finite_miss_product [Countable E] (q : E β†’ unitInterval) (A : I β†’ Set (Set E))
(s : Finset I) (hA : βˆ€ i∈s, IsUpperSet (A i))
(hw : βˆ€ i∈s, HasFiniteOpenWitness (A i)) :
∏ i∈s, (1-(law q).real (A i)) ≀ 1-(law q).real (⋃ i∈s, A i) := by
induction s using Finset.induction_on with
| empty => simp
| @insert i s hi ih =>
have hm := hA i (Finset.mem_insert_self i s)
have hw' := hw i (Finset.mem_insert_self i s)
have hs : βˆ€ j∈s, IsUpperSet (A j) := fun j hj => hA j (Finset.mem_insert_of_mem hj)
have hsw : βˆ€ j∈s, HasFiniteOpenWitness (A j) := fun j hj => hw j (Finset.mem_insert_of_mem hj)
have hind := ih hs hsw
let B := ⋃ j∈s, A j
have hBm := upper_biUnion A s hs
have hBw := finiteWitness_biUnion A s hsw
have hH := harris_finiteWitness q (A i) B hm hBm hw' hBw
have hu := measureReal_union_add_inter (s := A i)
(measurableSet_finiteWitness B hBm hBw) (ΞΌ := law q)
(measure_ne_top _ _) (measure_ne_top _ _)
have hb : (law q).real (A i)≀1 := measureReal_le_one
have hp := mul_le_mul_of_nonneg_left hind (by linarith : 0≀1-(law q).real (A i))
rw [Finset.prod_insert hi]
rw [Finset.set_biUnion_insert]
change (1-(law q).real (A i))*(∏ j∈s, (1-(law q).real (A j)))≀
1-(law q).real (A iβˆͺB)
change _≀1-(law q).real B at hind
change _≀(1-(law q).real (A i))*(1-(law q).real B) at hp
nlinarith
theorem exists_favored_finite [Countable E] (q : E β†’ unitInterval) (A : I β†’ Set (Set E))
(s : Finset I) (hA : βˆ€ i∈s, IsUpperSet (A i))
(hw : βˆ€ i∈s, HasFiniteOpenWitness (A i)) (a : ℝ) (ha : 0≀a)
(hu : 1-a^s.card<(law q).real (⋃ i∈s, A i)) :
βˆƒ i∈s, 1-a<(law q).real (A i) := by
by_contra hn
push Not at hn
have hp : a^s.cardβ‰€βˆ i∈s, (1-(law q).real (A i)) := by
rw [←Finset.prod_const]
apply Finset.prod_le_prodβ‚€ (fun _ _ => ha)
intro i hi
linarith [hn i hi]
have hH := finite_miss_product q A s hA hw
linarith
end CriticalPercolation.BernoulliProduct
end
end
end
end OAI