The double-collision bound is lossless exactly for families of multiplicity ≤ 2.
ProvedBonferroniMarginals.doubleCollision_tight_iffaether-catalogmachinelearning
The double-collision bound is lossless exactly for families of multiplicity ≤ 2.
If some point is covered three times, the bound 2·|doubleCollision| ≤ pairwise mass
is strict.
theorem BonferroniMarginals.doubleCollision_tight_iff[DecidableEq ι] (I : Finset ι) (A : ι → Finset Ω) :
(2 * (doubleCollision I A).card = ∑ p ∈ I.offDiag, (A p.1 ∩ A p.2).card)
↔ ∀ x ∈ cover I A, mult I A x ≤ 2 := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source MachineLearning/BonferroniMarginals/Rigidity.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from MachineLearning/BonferroniMarginals/Rigidity.lean
import Mathlib
import Definitions.Def_MachineLearning_BonferroniMarginals_Core
import Definitions.Def_MachineLearning_BonferroniMarginals_Rigidity
/-!
# Rigidity: exactly how much the Bonferroni machinery loses
`Core.lean` proves the two Bonferroni-type inequalities for an arbitrary finite
family. This file identifies their **defect** exactly, and characterises the
families that make each of them an equality. The slogan is:
> Every Bonferroni inequality is an identity plus a nonnegative *irregularity*
> functional of the multiplicity function; the inequality is tight precisely on
> the families whose irregularity vanishes.
Main results.
* `bonferroni_defect_identity` — the exact identity
`∑ᵢ|Aᵢ| + ∑ₓ (mult x − 1)² = |cover| + ∑_{i≠j}|Aᵢ ∩ Aⱼ|`.
The Bonferroni slack is the total squared deviation of the coverage
multiplicity from `1`.
* `bonferroni_tight_iff_mult_one`, `bonferroni_tight_iff_pairwiseDisjoint` —
the second Bonferroni inequality is an equality **iff** the family is pairwise
disjoint.
* `doubleCollision_tight_iff` — the double-collision bound is an equality **iff**
no point is covered three times: the machinery is sharp exactly on families of
*bounded multiplicity 2*.
* `cauchySchwarz_tight_iff_regular` — the Cauchy–Schwarz (Corrádi) bound is an
equality **iff** the cover is *regular*, i.e. the multiplicity is constant.
Machine-learning reading: the Bonferroni union bound is lossless exactly for
ensembles whose failure sets never overlap, and the second-order Corrádi bound
is lossless exactly for ensembles whose failures are spread perfectly evenly
over the sample space — a formal statement of "the union bound is tight iff the
errors are uncorrelated, the second-moment bound is tight iff they are equally
correlated".
-/
open BonferroniMarginals
open Finset
variable {Ω ι : Type*} [DecidableEq Ω]
variable {I : Finset ι} {A : ι → Finset Ω}
/-! ## Regular covers -/
/-! ## The exact Bonferroni defect -/
/-! ## Tightness of the double-collision bound -/Formal statement
theorem BonferroniMarginals.doubleCollision_tight_iff[DecidableEq ι] (I : Finset ι) (A : ι → Finset Ω) :
(2 * (doubleCollision I A).card = ∑ p ∈ I.offDiag, (A p.1 ∩ A p.2).card)
↔ ∀ x ∈ cover I A, mult I A x ≤ 2 := by sorrySource