AFTD Auto-Formalizing Theoretical Domains

zero_sum_incidence_identity

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 family of weights c : zero_sum_index_sets U → R is an I_t-identity if the sum of c E over all E : zero_sum_index_sets U equals 1, and for every nonempty subset J : Finset (Fin N) with 1 ≤ J.card and J.card ≤ t, the sum of c E over all zero-sum sets E containing J equals 0.

Statement

open Classical in
def zero_sum_incidence_identity {G : Type*} [AddCommGroup G] {N : ℕ} (U : Fin N → G)
    (t : ℕ) {R : Type*} [CommRing R] (c : zero_sum_index_sets U → R) : Prop
Defined in
arXiv:2611.20197
Verified
18 Nov 2026
Axioms
none listed
Built on 1
  • 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…

Read back from the Lean

A predicate on an additive commutative group $G$, a sequence $U : \text{Fin } N \to G$, a natural number $t$, a commutative ring $R$, and a function $c : \text{zero\_sum\_index\_sets } U \to R$. The predicate asserts the conjunction of two conditions: 1. The sum of $c(E)$ over all $E \in \text{zero\_sum\_index\_sets } U$ is equal to $1$ in $R$. 2. For every subset $J \subseteq \text{Fin } N$ whose cardinality satisfies $1 \le |J| \le t$, the sum over all $E \in \text{zero\_sum\_index\_sets } U$ such that $J \subseteq E$ of $c(E)$ is equal to $0$ in $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

open Classical in
/-- An I_t-identity for U over R is a family of weights (c_E) on the zero-sum sets summing to 1 whose moments of size 1 to t vanish. -/
def zero_sum_incidence_identity {G : Type*} [AddCommGroup G] {N : ℕ} (U : Fin N → G)
    (t : ℕ) {R : Type*} [CommRing R] (c : zero_sum_index_sets U → R) : Prop :=
  (∑ E : zero_sum_index_sets U, c E = 1) ∧
  (∀ J : Finset (Fin N), 1 ≤ J.card → J.card ≤ t →
    ∑ E : zero_sum_index_sets U, (if J ⊆ (E : Finset (Fin N)) then c E else 0) = 0)
See it in the graphDiscuss this resultChallenge it