File size: 1,409 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
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