Fisher-type counting bound.
ProvedBonferroniMarginals.fisher_type_boundaether-catalogmachinelearning
Fisher-type counting bound. Reading Corrádi's inequality as a bound on
the number of sets: if the union has N points, the first marginals are at
least m, the second marginals at most t, and the "design regime" N·t < m²
holds, then k · (m² − N·t) ≤ N · (m − t).
In particular k ≤ N(m−t)/(m²−Nt): sets that are large and almost disjoint
cannot be numerous.
theorem BonferroniMarginals.fisher_type_bound[DecidableEq ι] {m t : ℕ}
(hm : ∀ i ∈ I, m ≤ (A i).card)
(ht : ∀ p ∈ I.offDiag, (A p.1 ∩ A p.2).card ≤ t)
(htm : t ≤ m) :
I.card * (m ^ 2 - (cover I A).card * t)
≤ (cover I A).card * (m - t) := 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 -/Formal statement
theorem BonferroniMarginals.fisher_type_bound[DecidableEq ι] {m t : ℕ}
(hm : ∀ i ∈ I, m ≤ (A i).card)
(ht : ∀ p ∈ I.offDiag, (A p.1 ∩ A p.2).card ≤ t)
(htm : t ≤ m) :
I.card * (m ^ 2 - (cover I A).card * t)
≤ (cover I A).card * (m - t) := by sorrySource