AFTD Auto-Formalizing Theoretical Domains

min_even_quartets_count

def

The minimum number TC(n) of even quartets over all 2-colorings of triples on n vertices, where an even quartet has an even number of red triples (sum 0 in ZMod 2).

Statement

def min_even_quartets_count (n : ℕ) : ℕ
Defined in
scout/2611-32833-even-quartets-and-the-maximum-density-of-a-simplical-3-cocy.md:110
Verified
25 Nov 2026
Axioms
none listed
Built on 1
  • even_quartetsGiven a 2-coloring of triples represented by χ : Finset (Fin n) → ZMod 2, the even quartets are the 4-element subsets Q of Fin n such that…
Used by 1

Read back from the Lean

min_even_quartets_count is a definition that takes a natural number $n$ and returns a natural number, defined as the minimum (via Finset.inf') over all 3-uniform hypergraphs $H \subseteq \binom{\mathrm{Fin}\, n}{3}$ (represented by their indicator functions $\chi_H : \mathrm{Finset}(\mathrm{Fin}\, n) \to \mathbb{Z}/2\mathbb{Z}$, mapping $s \in H$ to $1$ and $s \notin H$ to $0$) of the number of 4-element subsets $Q \subseteq \mathrm{Fin}\, n$ that are "even quartets" under $\chi_H$—that is, 4-element subsets $Q$ such that the number of 3-element subsets of $Q$ belonging to $H$ is even (i.e., $\sum_{T \in \binom{Q}{3}} \chi_H(T) \equiv 0 \pmod 2$).

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 minimum number TC(n) of even quartets over all 2-colorings of triples on n vertices. -/
def min_even_quartets_count (n : ℕ) : ℕ := ((((Finset.univ : Finset (Fin n)).powersetCard 3).powerset).image
    (fun H (s : Finset (Fin n)) => if s ∈ H then (1 : ZMod 2) else (0 : ZMod 2))).inf'
    ⟨(fun (s : Finset (Fin n)) => if s ∈ (∅ : Finset (Finset (Fin n))) then (1 : ZMod 2) else (0 : ZMod 2)),
      Finset.mem_image_of_mem _ (Finset.mem_powerset.mpr (Finset.empty_subset _))⟩
    (fun χ => (even_quartets n χ).card)
See it in the graphDiscuss this resultChallenge it