AFTD Auto-Formalizing Theoretical Domains

two_part_even_quartets

def

Given m : ℕ and a sign matrix Z : Fin m → Fin m → ℤ, two_part_even_quartets m Z is the collection of 4-element subsets Q ⊆ Sum (Fin m) (Fin m) such that the product over all 3-element subsets T ⊆ Q of two_part_triple_sign m Z T equals 1.

Statement

def two_part_even_quartets (m : ℕ) (Z : Fin m → Fin m → ℤ) :
    Finset (Finset (Sum (Fin m) (Fin m)))
Defined in
scout/2611-32833-even-quartets-and-the-maximum-density-of-a-simplical-3-cocy.md:150
Verified
29 Nov 2026
Axioms
none listed
Built on 1
  • two_part_triple_signGiven a natural number m, an integer-valued function Z : Fin m → Fin m → ℤ, and a finite set T : Finset (Sum (Fin m) (Fin m)),…

Read back from the Lean

Given a natural number m and a function Z : Fin m → Fin m → ℤ, two_part_even_quartets m Z is the finset of all 4-element subsets Q of the disjoint union Fin m ⊕ Fin m such that the product over all 3-element subsets T ⊆ Q of two_part_triple_sign m Z T is equal to 1.

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 set of even quartets in the two-part construction. -/
def two_part_even_quartets (m : ℕ) (Z : Fin m → Fin m → ℤ) :
    Finset (Finset (Sum (Fin m) (Fin m))) :=
  ((Finset.univ : Finset (Sum (Fin m) (Fin m))).powersetCard 4).filter
    (fun Q => (∏ T ∈ Q.powersetCard 3, two_part_triple_sign m Z T) = 1)
See it in the graphDiscuss this resultChallenge it