AFTD Auto-Formalizing Theoretical Domains

op874_sparse_words_exactly_one_square_conflict

theoremverified

Each of the two explicit pentagon high-color words has exactly one distance-two color equality.

Statement

theorem op874_sparse_words_exactly_one_square_conflict : ∀ s : Bool, ∃! i : Fin 5, In1098Sparse.word s i = In1098Sparse.word s (i+2)
Source
Sparse fixed-high matching-factor obstruction, experiments 36281 and 36285.
Verified
22 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2

The proof, explained

The theorem asserts that for each of the two sparse pentagon colorings indexed by $s \in \mathrm{Bool}$, there is exactly one vertex $i \in \mathbb{Z}/5\mathbb{Z}$ whose color matches that of the vertex at distance two ($i+2 \pmod 5$). Because both $\mathrm{Bool}$ and $\mathrm{Fin}\ 5$ are finite types, this is a finite decidable property. The proof carries out the verification by exhaustive computation using `decide`.

  1. For both $s = \mathrm{true}$ and $s = \mathrm{false}$, there is a unique index $i \in \mathbb{Z}/5\mathbb{Z}$ such that the color at position $i$ equals the color at position $i+2$. automation

    The proposition is a decidable statement quantified over the finite types `Bool` (two values) and `Fin 5` (five values). The `decide` tactic checks every case by direct computation: for $s = \mathrm{true}$ the sequence is $(0, 1, 2, 0, 3)$, where only $i = 3$ satisfies $w(3) = w(0) = 0$; for $s = \mathrm{false}$ the sequence is $(0, 1, 2, 3, 1)$, where only $i = 4$ satisfies $w(4) = w(1) = 1$.

    line 1

    theorem op874_sparse_words_exactly_one_square_conflict : ∀ s : Bool, ∃! i : Fin 5, In1098Sparse.word s i = In1098Sparse.word s (i+2) := by decide

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

theorem op874_sparse_words_exactly_one_square_conflict : ∀ s : Bool, ∃! i : Fin 5, In1098Sparse.word s i = In1098Sparse.word s (i+2) := by decide
See it in the graphDiscuss this resultChallenge it