AFTD Auto-Formalizing Theoretical Domains

canonical_t_intersecting_family

def

The canonical t-intersecting family S_r^{\le k} consists of all subsets of [n] of size at most k containing at least t + r points from the first t + 2r elements.

Statement

def canonical_t_intersecting_family (n k t r : ℕ) : Finset (Finset (Fin n))
Defined in
arXiv:2611.25346 Sec. 1
Verified
21 Nov 2026
Axioms
none listed
Used by 2

Read back from the Lean

Given natural numbers n, k, t, and r, canonical_t_intersecting_family n k t r is the finite set of all subsets A of Fin n such that: 1. A has cardinality at most k (A.card ≤ k), and 2. The cardinality of the intersection of A with {x : Fin n | (x : ℕ) < t + 2 * r} is at least 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 canonical t-intersecting family S_r^{\le k} of subsets of [n] of size at most k containing at least t+r points from the first t+2r elements. -/
def canonical_t_intersecting_family (n k t r : ℕ) : Finset (Finset (Fin n)) :=
  let base : Finset (Fin n) := (Finset.univ : Finset (Fin n)).filter (fun x => (x : ℕ) < t + 2 * r)
  ((Finset.univ : Finset (Fin n)).powerset).filter (fun A =>
    A.card ≤ k ∧ t + r ≤ (A ∩ base).card)
See it in the graphDiscuss this resultChallenge it