AFTD Auto-Formalizing Theoretical Domains

max_canonical_t_intersecting_card

def

The maximum cardinality max_{0 ≤ r ≤ ⌊(n-t)/2⌋} |S_r^{\le k}| of the canonical t-intersecting families.

Statement

def max_canonical_t_intersecting_card (n k t : ℕ) : ℕ
Defined in
arXiv:2611.25346 Theorem 1.4
Verified
21 Nov 2026
Axioms
none listed

Read back from the Lean

max_canonical_t_intersecting_card n k t is defined as the maximum (supremum), over all natural numbers $r \in \{0, 1, \dots, \lfloor (n - t) / 2 \rfloor\}$ (using natural number subtraction and integer division), of the cardinality of the family of subsets $A \subseteq \text{Fin } n$ such that: 1. $|A| \le k$, and 2. $|A \cap \{x \in \text{Fin } n \mid (x : \mathbb{N}) < t + 2r\}| \ge t + r$.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The maximum cardinality of the canonical t-intersecting families S_r^{\le k} for 0 ≤ r ≤ (n-t)/2. -/
def max_canonical_t_intersecting_card (n k t : ℕ) : ℕ :=
  (Finset.range ((n - t) / 2 + 1)).sup (fun r =>
    let base : Finset (Fin n) := (Finset.univ : Finset (Fin n)).filter (fun x => (x : ℕ) < t + 2 * r)
    let fam : Finset (Finset (Fin n)) := ((Finset.univ : Finset (Fin n)).powerset).filter (fun A =>
      A.card ≤ k ∧ t + r ≤ (A ∩ base).card)
    fam.card)
See it in the graphDiscuss this resultChallenge it