File size: 643 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
import Mathlib
import OAI.Probability.CriticalPercolation.ProductMeasure.Density

namespace OAI

section
section
open Set MeasureTheory ProbabilityTheory
open scoped BigOperators

namespace CriticalPercolation.FiniteProduct
variable {E A : Type*} [Fintype E] [Fintype A]
lemma density_mul_le_expect {w : E β†’ A β†’ ℝ} (hw : βˆ€ e a, 0 ≀ w e a)
    {f : (E β†’ A) β†’ ℝ} (hf : βˆ€ Ο‰, 0 ≀ f Ο‰) (Ο‰ : E β†’ A) :
    density w Ο‰ * f Ο‰ ≀ expect w f := by
  classical
  exact Finset.single_le_sum (fun Ο‰ _ => mul_nonneg (density_nonneg hw Ο‰) (hf Ο‰))
    (Finset.mem_univ Ο‰)
end CriticalPercolation.FiniteProduct

end
end

end OAI