AFTD Auto-Formalizing Theoretical Domains

zero_sum_index_sets_empty_not_mem

theoremverified

The empty set is not in the finset of zero-sum index sets of a sequence U.

Statement

theorem zero_sum_index_sets_empty_not_mem {G : Type*} [AddCommGroup G] {N : ℕ} (U : Fin N → G) :
    ∅ ∉ zero_sum_index_sets U
Source
arXiv:2611.20197
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
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…
  • sixteen_spin_diff_pattern_mkOn a concrete unordered pair {u, v}, the π/8 difference pattern of a spin configuration sp says exactly that sp differs in components 1…

Read back from the Lean

For any additive commutative group $G$, any natural number $N$, and any function $U : \mathrm{Fin}(N) \to G$, the empty finset $\emptyset$ is not an element of $\mathrm{zero\_sum\_index\_sets}(U)$.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

The proof, explained

By definition, `zero_sum_index_sets U` consists of all non-empty index subsets whose elements sum to zero. Unfolding this definition reveals that membership requires the subset to be nonempty, which the empty set is not. The simplifier recognizes that the empty set is not nonempty, immediately concluding that the empty set cannot be an element of the family.

  1. The empty set ∅ is not in zero_sum_index_sets U. automation

    Unfolding the definition of `zero_sum_index_sets` reveals that every member E must satisfy `E.Nonempty` alongside the zero-sum condition. Because the empty set is not nonempty (`¬ ∅.Nonempty`), membership evaluates to false, and Lean's simplifier closes the negated goal directly. The surrounding `first | ...` tactic try-list and the reference to `sixteen_spin_diff_pattern_mk` are automated search artifacts.

    line 3

    uses zero_sum_index_sets, sixteen_spin_diff_pattern_mk

        ∅ ∉ zero_sum_index_sets U := by first | exact sixteen_spin_diff_pattern_mk | (apply sixteen_spin_diff_pattern_mk <;> assumption) | (apply sixteen_spin_diff_pattern_mk <;> simp_all) | simpa using sixteen_spin_diff_pattern_mk | (simp only [zero_sum_index_sets] at *; first | exact sixteen_spin_diff_pattern_mk | (apply sixteen_spin_diff_pattern_mk <;> assumption) | (apply sixteen_spin_diff_pattern_mk <;> simp_all) | simpa using sixteen_spin_diff_pattern_mk)
zero_sum_index_sets
The set of all non-empty subsets of indices whose corresponding elements in the sequence sum to zero.
sixteen_spin_diff_pattern_mk
A characterisation of the sixteen-spin difference pattern between two vertices in terms of coordinate equalities and inequalities (present as an artifact in the automation, but mathematically unused).

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

/-- The empty set is not in the family of zero-sum index sets of any sequence U. -/theorem zero_sum_index_sets_empty_not_mem {G : Type*} [AddCommGroup G] {N : ℕ} (U : Fin N → G) :    ∅ ∉ zero_sum_index_sets U := by first | exact sixteen_spin_diff_pattern_mk | (apply sixteen_spin_diff_pattern_mk <;> assumption) | (apply sixteen_spin_diff_pattern_mk <;> simp_all) | simpa using sixteen_spin_diff_pattern_mk | (simp only [zero_sum_index_sets] at *; first | exact sixteen_spin_diff_pattern_mk | (apply sixteen_spin_diff_pattern_mk <;> assumption) | (apply sixteen_spin_diff_pattern_mk <;> simp_all) | simpa using sixteen_spin_diff_pattern_mk)
See it in the graphDiscuss this resultChallenge it