OAI/Probability/Ising/Marginals.lean
17 declarations, 0 contain sorry, 0 declared as axioms
- lemma
OAI.BufferedIsing.jointWeight_logSupermodularline 10Source documentation
The four functions theorem preserves log-supermodularity under marginalization.
lemma jointWeight_logSupermodular {n m : ℕ} (G : FiniteGraph n m) (h : Fin n → ℝ) (I J F : Finset (Fin n)) (τ a a' b b' : Spins n) : jointWeight G h I J F τ a b * jointWeight G h I J F τ a' b' ≤ jointWeight G h I J F τ (a ⊓ a') (b ⊓ b') * jointWeight G h I J F τ (a ⊔ a') (b ⊔ b') := by …Mentions: OAI.BufferedIsing.FiniteGraph, OAI.BufferedIsing.Spins, OAI.BufferedIsing.jointWeight
- lemma
OAI.BufferedIsing.extreme_rectangleline 58Source documentation
The extreme-rectangle bound does not require the four configurations to be ordered.
lemma extreme_rectangle {A B : Type*} [PartialOrder A] [BoundedOrder A] [PartialOrder B] [BoundedOrder B] (f : A → B → ℝ) (hrect : ∀ u v s t, u ≤ v → s ≤ t → f u t + f v s ≤ f u s + f v t) (a a' : A) (b b' : B) : |f a b + f a' b' - f a b' - f a' b| ≤ f ⊤ ⊤ + f ⊥ ⊥ - f ⊤ ⊥ - f ⊥ ⊤ := by … - lemma
OAI.BufferedIsing.marginal_extreme_rectangleline 78Source documentation
The extreme-rectangle bound for the arbitrary-field Ising marginal with common pins.
lemma marginal_extreme_rectangle {n m : ℕ} (G : FiniteGraph n m) (h : Fin n → ℝ) (I J F : Finset (Fin n)) (hIJ : Disjoint I J) (hIF : Disjoint I F) (hJF : Disjoint J F) (τ a a' b b' : Spins n) : |Real.log (jointWeight G h I J F τ a b) + Real.log (jointWeight G h I J F τ a' b') - Real.log (jointWeight G h I J F τ a b') - Real.log (jointWeight G h I J F τ a' b)| ≤ Real.log (jointWeight G h I J F τ ⊤ ⊤) + Real.log (jointWeight G h I J F τ ⊥ ⊥) - Real.log (jointWeight G h I J F τ ⊤ ⊥) - Real.log (jointWeight G h I J F τ ⊥ ⊤) := by …Mentions: OAI.BufferedIsing.FiniteGraph, OAI.BufferedIsing.Spins, OAI.BufferedIsing.jointWeight
- lemma
OAI.BufferedIsing.normalized_ratio_of_rectanglesline 102Source documentation
A general normalization lemma. Rectangle control on unnormalized positive weights bounds the ACTUAL normalized pointwise ratio, not merely its odds.
lemma normalized_ratio_of_rectangles {A B : Type*} [Fintype A] (p : A → B → ℝ) (hp : ∀ a b, 0 < p a b) (L : ℝ) (hrect : ∀ a a' b b', |Real.log (p a b) + Real.log (p a' b') - Real.log (p a b') - Real.log (p a' b)| ≤ L) (a : A) (b b' : B) : Real.exp (-L) ≤ (p a b / ∑ x, p x b) / (p a b' / ∑ x, p x b') ∧ (p a b / ∑ x, p x b) / (p a b' / ∑ x, p x b') ≤ Real.exp L := by … - def
OAI.BufferedIsing.restrictSpinline 143 - def
OAI.BufferedIsing.extendSpinline 145 - lemma
OAI.BufferedIsing.restrict_extendline 148 - lemma
OAI.BufferedIsing.agreesOn_iff_restrict_eqline 153 - lemma
OAI.BufferedIsing.jointWeight_extend_restrictline 162 - lemma
OAI.BufferedIsing.sum_jointWeight_eq_denominatorline 168 - def
OAI.BufferedIsing.extremeLogOddsline 183 - lemma
OAI.BufferedIsing.conditional_ratio_extremeline 191Source documentation
The normalized conditional probability ratio is bounded by the extreme log odds.
lemma conditional_ratio_extreme {n m : ℕ} (G : FiniteGraph n m) (h : Fin n → ℝ) (I J F : Finset (Fin n)) (hIJ : Disjoint I J) (hIF : Disjoint I F) (hJF : Disjoint J F) (τ a b b' : Spins n) : Real.exp (-extremeLogOdds G h I J F τ) ≤ conditionalProb G h I J F a b τ / conditionalProb G h I J F a b' τ ∧ conditionalProb G h I J F a b τ / conditionalProb G h I J F a b' τ ≤ Real.exp (extremeLogOdds G h I J F τ) := by …Mentions: OAI.BufferedIsing.FiniteGraph, OAI.BufferedIsing.Spins, OAI.BufferedIsing.extremeLogOdds, OAI.BufferedIsing.conditionalProb
- lemma
OAI.BufferedIsing.conditionalProb_posline 209 - lemma
OAI.BufferedIsing.positive_averageline 222 - lemma
OAI.BufferedIsing.mixture_ratio_of_pointwiseline 237Source documentation
Multiplicative pointwise control survives arbitrary mixtures on both sides. The proof uses the original constants without a second loss.
lemma mixture_ratio_of_pointwise {B : Type*} [Fintype B] (p : B → ℝ) (hp : ∀ b, 0 < p b) (L U : ℝ) (hbound : ∀ b b', L ≤ p b / p b' ∧ p b / p b' ≤ U) (μ ν : B → ℝ) (hμ : ∀ b, 0 ≤ μ b) (hν : ∀ b, 0 ≤ ν b) (hμsum : ∑ b, μ b = 1) (hνsum : ∑ b, ν b = 1) : L ≤ (∑ b, μ b * p b) / (∑ b, ν b * p b) ∧ (∑ b, μ b * p b) / (∑ b, ν b * p b) ≤ U := by … - lemma
OAI.BufferedIsing.mixture_ratio_extremeline 273 - lemma
OAI.BufferedIsing.extremeLogOdds_nonnegline 289