AFTD Auto-Formalizing Theoretical Domains

zero_sum_separator

def

Given an additive commutative group G, a natural number N, a sequence U : Fin N → G, an integer t : ℕ, and a commutative ring R, a polynomial P : MvPolynomial (Fin N) R is a separator of degree at most t for U if P.totalDegree ≤ t, MvPolynomial.eval 0 P = 1, and for every zero-sum set E ∈ zero_sum_index_sets U, P evaluates to 0 on the incidence vector of E in R.

Statement

def zero_sum_separator {G : Type*} [AddCommGroup G] {N : ℕ} (U : Fin N → G)
    (t : ℕ) {R : Type*} [CommRing R] (P : MvPolynomial (Fin N) R) : Prop
Defined in
arXiv:2611.20197
Verified
18 Nov 2026
Axioms
none listed
Built on 2
  • zero_sum_index_setsGiven an additive commutative group G, a natural number N, and a sequence U : Fin N → G, zero_sum_index_sets U is the finset (of type…
  • incidence_vectorGiven a type R equipped with 0 and 1, a natural number N, and a subset E : Finset (Fin N), incidence_vector E is the function Fin N → R…

Read back from the Lean

For an additive commutative group G, a natural number N, a sequence U : Fin N → G, a degree bound t : ℕ, a commutative ring R, and a multivariate polynomial P : MvPolynomial (Fin N) R, zero_sum_separator U t P asserts that: 1. The total degree of P is at most t, 2. Evaluating P at the zero vector (the function sending each index in Fin N to 0 : R) equals 1 : R, and 3. For every index set E in zero_sum_index_sets U, evaluating P at incidence_vector E equals 0 : 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

/-- A separator of degree at most t for U is a polynomial P of degree at most t with P(0) = 1 that vanishes on all zero-sum sets. -/
def zero_sum_separator {G : Type*} [AddCommGroup G] {N : ℕ} (U : Fin N → G)
    (t : ℕ) {R : Type*} [CommRing R] (P : MvPolynomial (Fin N) R) : Prop :=
  P.totalDegree ≤ t ∧
  MvPolynomial.eval 0 P = 1 ∧
  ∀ E ∈ zero_sum_index_sets U, MvPolynomial.eval (incidence_vector E) P = 0
See it in the graphDiscuss this resultChallenge it