introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
1.41 kB
import Mathlib
import OAI.Probability.CriticalPercolation.ProductMeasure.Distribution
import OAI.Probability.CriticalPercolation.Modular.DensityModular
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 expect_mul_ge_real (w : E β†’ Prop β†’ ℝ) (hw : βˆ€ e, βˆ‘ b, w e b = 1)
(hpos : βˆ€ e b, 0 ≀ w e b) (f g : (E β†’ Prop) β†’ ℝ)
(hf : Monotone f) (hg : Monotone g) :
expect w f * expect w g ≀ expect w (fun Ο‰ => f Ο‰ * g Ο‰) := by
classical
let l := Finset.univ.inf' Finset.univ_nonempty f
let k := Finset.univ.inf' Finset.univ_nonempty g
have hb := expect_mul_ge w hw hpos (fun Ο‰ => f Ο‰-l) (fun Ο‰ => g Ο‰-k)
(fun Ο‰ => sub_nonneg.mpr (Finset.inf'_le _ (Finset.mem_univ Ο‰)))
(fun Ο‰ => sub_nonneg.mpr (Finset.inf'_le _ (Finset.mem_univ Ο‰)))
(fun _ _ h => sub_le_sub_right (hf h) l) (fun _ _ h => sub_le_sub_right (hg h) k)
have he : (fun Ο‰ => (f Ο‰-l)*(g Ο‰-k)) =
(fun Ο‰ => f Ο‰*g Ο‰ - l*g Ο‰ - k*f Ο‰ + l*k) := by funext Ο‰; ring
rw [he, expect_sub, expect_sub, expect_const w hw l, expect_const w hw k,
expect_add, expect_sub, expect_sub, expect_const_mul, expect_const_mul,
expect_const w hw (l*k)] at hb
nlinarith
end CriticalPercolation.FiniteProduct
end
end
end OAI