File size: 3,085 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 79 80 | 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
|