Documentation

Atlas.ProbabilisticMethodsInCombinatorics.code.Chapter7.Harris

def Harris.prodWeight (n : ) (p : Fin n) (ω : Fin nBool) :

Product weight for the Bernoulli product measure on $\{0,1\}^n$: assigns to a configuration $\omega : \text{Fin } n \to \text{Bool}$ the weight $\prod_i p_i^{\omega_i} (1 - p_i)^{1 - \omega_i}$.

Instances For
    noncomputable def Harris.P (n : ) (p : Fin n) (S : Set (Fin nBool)) :

    Probability of an event $S \subseteq \{0,1\}^n$ under the Bernoulli product measure with parameters $p$, defined as $\sum_\omega \text{prodWeight}(\omega) \cdot \mathbf{1}_S(\omega)$.

    Instances For
      theorem Harris.prodWeight_sum_eq_one (n : ) (p : Fin n) :
      ω : Fin nBool, prodWeight n p ω = 1

      The total mass of $\text{prodWeight}$ is one: $\sum_\omega \text{prodWeight}(\omega) = 1$.

      theorem Harris.prodWeight_nonneg {n : } {p : Fin n} (hp : ∀ (i : Fin n), p i Set.Icc 0 1) (ω : Fin nBool) :
      0 prodWeight n p ω

      When each $p_i \in [0,1]$ the product weight is nonnegative.

      theorem Harris.prodWeight_log_modular (n : ) (p : Fin n) (a b : Fin nBool) :
      prodWeight n p a * prodWeight n p b = prodWeight n p (ab) * prodWeight n p (ab)

      Log-modularity (FKG condition) of the Bernoulli product weight: $\mu(a)\mu(b) = \mu(a \wedge b)\mu(a \vee b)$.

      theorem Harris.indicator_upperSet_mono {n : } {A : Set (Fin nBool)} (hA : IsUpperSet A) :
      Monotone (A.indicator fun (x : Fin nBool) => 1)

      The indicator function of an upper set (increasing event) is monotone.

      theorem Harris.indicator_nonneg_fun (n : ) (A : Set (Fin nBool)) :
      0 A.indicator fun (x : Fin nBool) => 1

      The indicator function of any set is pointwise nonnegative.

      theorem Harris.indicator_inter_eq_mul {n : } (A B : Set (Fin nBool)) :
      ((A B).indicator fun (x : Fin nBool) => 1) = fun (ω : Fin nBool) => A.indicator (fun (x : Fin nBool) => 1) ω * B.indicator (fun (x : Fin nBool) => 1) ω

      The indicator of an intersection equals the product of indicators: $\mathbf{1}_{A \cap B}(\omega) = \mathbf{1}_A(\omega) \cdot \mathbf{1}_B(\omega)$.

      theorem Harris.harris_inequality {n : } {p : Fin n} (hp : ∀ (i : Fin n), p i Set.Icc 0 1) {A B : Set (Fin nBool)} (hA : IsUpperSet A) (hB : IsUpperSet B) :
      P n p (A B) P n p A * P n p B

      Theorem 7.1.1 (Harris 1960): For independent Boolean random variables with parameters $p_i \in [0,1]$ and increasing events $A, B \subseteq \{0,1\}^n$, $\mathbb{P}(A \cap B) \geq \mathbb{P}(A)\mathbb{P}(B)$.

      theorem Harris.harris_inequality_multiple_increasing {n : } {p : Fin n} (hp : ∀ (i : Fin n), p i Set.Icc 0 1) {k : } {A : Fin kSet (Fin nBool)} (hA : ∀ (i : Fin k), IsUpperSet (A i)) :
      P n p (⋂ (i : Fin k), A i) i : Fin k, P n p (A i)

      Corollary 7.1.6 (multiple-event Harris): For finitely many increasing events $A_1, \dots, A_k$, $\mathbb{P}\!\left(\bigcap_i A_i\right) \geq \prod_i \mathbb{P}(A_i)$.

      def Harris.generalProdWeight (n : ) (α : Type u_1) [LinearOrder α] [Fintype α] (p : Fin nα) (ω : Fin nα) :

      General product weight on $\alpha^n$ for a linearly ordered finite type $\alpha$: $\mu(\omega) = \prod_i p_i(\omega_i)$.

      Instances For
        def Harris.generalE (n : ) (α : Type u_1) [LinearOrder α] [Fintype α] (p : Fin nα) (f : (Fin nα)) :

        General expectation operator: $\mathbb{E}[f] = \sum_\omega \mu(\omega) f(\omega)$ under the product weight on $\alpha^n$.

        Instances For
          theorem Harris.generalProdWeight_sum_eq_one (n : ) (α : Type u_1) [LinearOrder α] [Fintype α] (p : Fin nα) (hp : ∀ (i : Fin n), x : α, p i x = 1) :
          ω : Fin nα, generalProdWeight n α p ω = 1

          If each marginal $p_i$ sums to one, then $\sum_\omega \text{generalProdWeight}(\omega) = 1$.

          theorem Harris.generalProdWeight_nonneg {n : } {α : Type u_1} [LinearOrder α] [Fintype α] {p : Fin nα} (hp : ∀ (i : Fin n) (x : α), 0 p i x) (ω : Fin nα) :

          Nonnegativity of the general product weight when each marginal is nonnegative.

          theorem Harris.generalProdWeight_log_modular (n : ) (α : Type u_1) [LinearOrder α] [Fintype α] (p : Fin nα) (a b : Fin nα) :
          generalProdWeight n α p a * generalProdWeight n α p b = generalProdWeight n α p (ab) * generalProdWeight n α p (ab)

          Log-modularity of the general product weight on the lattice $\alpha^n$.

          theorem Harris.harris_inequality_general {n : } {α : Type u_1} [LinearOrder α] [Fintype α] [Nonempty α] {p : Fin nα} (hp_nonneg : ∀ (i : Fin n) (x : α), 0 p i x) (hp_sum : ∀ (i : Fin n), x : α, p i x = 1) {f g : (Fin nα)} (hf : Monotone f) (hg : Monotone g) :
          (generalE n α p fun (ω : Fin nα) => f ω * g ω) generalE n α p f * generalE n α p g

          Theorem 7.1.5 (Harris, general form): For monotone increasing real-valued functions $f, g$ on $\alpha^n$ under a product probability measure, $\mathbb{E}[fg] \geq \mathbb{E}[f]\mathbb{E}[g]$.