Tightness at `t = m`.
ProvedBonferroniMarginals.corradi_tight_of_constantaether-catalogmachinelearning
Tightness at t = m. For the totally correlated family (all members
equal to one set B of size m), Corrádi's inequality is again an equality:
k·m² = |B| · (m + (k−1)·m).
theorem BonferroniMarginals.corradi_tight_of_constant{m : ℕ} {B : Finset Ω} (hB : B.card = m)
(hA : ∀ i ∈ I, A i = B) (hI : I.Nonempty) :
I.card * m ^ 2 = (cover I A).card * (m + (I.card - 1) * m) := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source MachineLearning/BonferroniMarginals/Corradi.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/Corradi.lean
import Mathlib
import Definitions.Def_MachineLearning_BonferroniMarginals_Core
import Definitions.Def_MachineLearning_BonferroniMarginals_Rigidity
/-!
# Which marginals? The Corrádi bound and the Fisher-type consequence
`Core.lean` develops the Bonferroni machinery for an *arbitrary* finite family;
the content of the conjecture is therefore entirely in **which marginals are fed
into it**. This file feeds in the two standard hypotheses of design theory and
of ensemble learning:
* a uniform lower bound `m ≤ |Aᵢ|` on the **first** marginals, and
* a uniform upper bound `|Aᵢ ∩ Aⱼ| ≤ t` (`i ≠ j`) on the **second** marginals,
and extracts the sharp conclusions.
Main results.
* `card_cover_corradi` — **Corrádi's inequality**, division-free:
`k·m² ≤ |cover| · (m + (k−1)·t)`, where `k` is the number of sets.
Equivalently `|⋃ᵢ Aᵢ| ≥ k m² / (m + (k−1) t)`.
* `fisher_type_bound` — turning the same data around: if the ambient union is
small (`N·t < m²`) then the *number of sets* is bounded,
`k · (m² − N·t) ≤ N · (m − t)`. This is the counting principle behind Fisher's
inequality and behind Plotkin-type bounds in coding theory.
* `corradi_tight_of_pairwiseDisjoint`, `corradi_tight_of_constant` — the bound is
attained at *both* extremes of the correlation scale (`t = 0` partitions and
`t = m` totally correlated families), so no better bound is expressible in the
marginal data `(k, m, t)` alone.
* `ensemble_coverage_bound` — the machine-learning reading: `k` hypotheses each
failing on at least `m` of `N` samples, with pairwise co-failure at most `t`,
must jointly fail on many distinct samples.
The proof route is: `sq_sum_card_le_card_cover_mul_sum_prod` (Cauchy–Schwarz on
the multiplicity function) + monotonicity of `S ↦ S²/(S+c)` + the marginal
hypotheses.
-/
open BonferroniMarginals
open Finset
variable {Ω ι : Type*} [DecidableEq Ω]
variable {I : Finset ι} {A : ι → Finset Ω}
/-! ## Two arithmetic lemmas -/
/-! ## Corrádi's inequality -/
/-! ## Sharpness at both ends of the correlation scale -/Formal statement
theorem BonferroniMarginals.corradi_tight_of_constant{m : ℕ} {B : Finset Ω} (hB : B.card = m)
(hA : ∀ i ∈ I, A i = B) (hI : I.Nonempty) :
I.card * m ^ 2 = (cover I A).card * (m + (I.card - 1) * m) := by sorrySource