File size: 1,228 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 | import Mathlib
import OAI.Probability.CriticalPercolation.ProductMeasure.Density
namespace OAI
section
section
open Set MeasureTheory ProbabilityTheory
open Set
open scoped BigOperators
namespace CriticalPercolation.FiniteProduct
open scoped Classical
variable {E : Type*} [Fintype E]
lemma density_modular (w : E β Prop β β) (x y : E β Prop) :
density w x * density w y = density w (x β y) * density w (x β y) := by
unfold density
rw [β Finset.prod_mul_distrib, β Finset.prod_mul_distrib]
apply Finset.prod_congr rfl
intro e _
simp only [Pi.inf_apply, Pi.sup_apply]
by_cases hx : x e <;> by_cases hy : y e <;> simp [hx, hy, mul_comm]
lemma expect_mul_ge (w : E β Prop β β) (hw : β e, β b, w e b = 1)
(hpos : β e b, 0 β€ w e b) (f g : (E β Prop) β β)
(hf0 : β Ο, 0 β€ f Ο) (hg0 : β Ο, 0 β€ g Ο)
(hf : Monotone f) (hg : Monotone g) :
expect w f * expect w g β€ expect w (fun Ο => f Ο * g Ο) := by
have h := fkg f g (density w) (fun Ο => density_nonneg hpos Ο) hf0 hg0 hf hg
(fun x y => le_of_eq (density_modular w x y))
simpa only [expect, sum_density w hw, one_mul] using h
end CriticalPercolation.FiniteProduct
end
end
end OAI
|