op1525_anchor_cyclic_abstract_collision
On seven cyclically permuted vertices with an eighth vertex fixed, the equal-size Boolean colorings with true sets {0,1,3,7} and {0,1,5,7} have matching one-vertex switching decks up to cyclic rotations and global color exchange, but are not equivalent under those symmetries. A reflection fixing the eighth vertex does identify the colorings.
Statement
theorem op1525_anchor_cyclic_abstract_collision : (∀ x y : Fin 8, matchCard x = matchCard y → x = y) ∧ (∀ t : Fin 7, ∀ x y : Fin 8, rot t x = rot t y → x = y) ∧ (∀ x : Fin 8, rot 0 x = x) ∧ (∀ s t : Fin 7, ∀ x : Fin 8, rot s (rot t x) = rot (s + t) x) ∧ (∀ t : Fin 7, rot t 7 = 7) ∧ (∀ v : Fin 8, ∃ t : Fin 7, ∃ c : Bool, ∀ x : Fin 8, xor (a (rot t x)) (decide (rot t x = v)) = xor (xor (b x) (decide (x = matchCard v))) c) ∧ (∀ t : Fin 7, ∀ c : Bool, ∃ x : Fin 8, a (rot t x) ≠ xor (b x) c) ∧ (∀ x : Fin 8, a (refl 1 x) = b x)
- Source
- A fixed-vertex permutation-action obstruction for the equal-balance deletion reduction in OP-1525; the cyclic action is not asserted to be an undirected graph automorphism group.
- Verified
- 17 Nov 2026
- Axioms
Quot.soundpropext
The proof, explained
Two colorings on eight vertices with true sets {0,1,3,7} and {0,1,5,7} are analyzed under cyclic rotation of the first seven vertices and reflection fixing the eighth. Their one-vertex switching decks are shown to be isomorphic via an explicit bijection, while the colorings themselves are non-isomorphic under rotations and color inversion, yet mapped to each other by a reflection. The proof defines the rotations and reflections with modular arithmetic bounds, decomposes the eight-part conjunction, and verifies every condition by exhaustive evaluation over finite domains.
The cyclic rotation of vertices 0 through 6 modulo 7 produces a valid index strictly less than 8.
For x < 7, the sum (x + t) mod 7 is strictly less than 7 by Nat.mod_lt since 7 > 0, which linear arithmetic (omega) promotes to strictly less than 8.
uses
Nat.mod_ltif x.val < 7 then ⟨(x.val + t.val) % 7, by have h := Nat.mod_lt (x.val + t.val) (by decide : 0 < 7); omega⟩ else 7
The cyclic reflection of vertices 0 through 6 modulo 7 produces a valid index strictly less than 8.
Similarly, (t + 7 - x) mod 7 is strictly less than 7 by Nat.mod_lt, which implies it is strictly less than 8 by omega.
uses
Nat.mod_ltif x.val < 7 then ⟨(t.val + 7 - x.val) % 7, by have h := Nat.mod_lt (t.val + 7 - x.val) (by decide : 0 < 7); omega⟩ else 7
All eight conjuncts of the collision theorem hold. automation
The refinement splits the goal into eight separate obligations: injectivity of matchCard, injectivity of cyclic rotations, the identity rotation, composition of rotations, fixation of vertex 7, isomorphism of the one-vertex switching decks under rotation and color inversion, non-equivalence of the colorings under rotations and color inversion, and reflection symmetry. Each obligation quantifies over finite types (Fin 8, Fin 7, and Bool) and is decided by exhaustive computation.
refine ⟨?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_⟩ <;> decide
Nat.mod_lt- for any natural number x and positive y, x % y < y
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
namespace OP1525AnchorCyclicdef rot (t : Fin 7) (x : Fin 8) : Fin 8 := if x.val < 7 then ⟨(x.val + t.val) % 7, by have h := Nat.mod_lt (x.val + t.val) (by decide : 0 < 7); omega⟩ else 7def refl (t : Fin 7) (x : Fin 8) : Fin 8 := if x.val < 7 then ⟨(t.val + 7 - x.val) % 7, by have h := Nat.mod_lt (t.val + 7 - x.val) (by decide : 0 < 7); omega⟩ else 7def a (x : Fin 8) : Bool := decide (x.val ∈ [0,1,3,7])def b (x : Fin 8) : Bool := decide (x.val ∈ [0,1,5,7])def matchCard : Fin 8 → Fin 8 := ![1,0,6,5,4,3,7,2]end OP1525AnchorCyclicopen OP1525AnchorCyclictheorem op1525_anchor_cyclic_abstract_collision : (∀ x y : Fin 8, matchCard x = matchCard y → x = y) ∧ (∀ t : Fin 7, ∀ x y : Fin 8, rot t x = rot t y → x = y) ∧ (∀ x : Fin 8, rot 0 x = x) ∧ (∀ s t : Fin 7, ∀ x : Fin 8, rot s (rot t x) = rot (s + t) x) ∧ (∀ t : Fin 7, rot t 7 = 7) ∧ (∀ v : Fin 8, ∃ t : Fin 7, ∃ c : Bool, ∀ x : Fin 8, xor (a (rot t x)) (decide (rot t x = v)) = xor (xor (b x) (decide (x = matchCard v))) c) ∧ (∀ t : Fin 7, ∀ c : Bool, ∃ x : Fin 8, a (rot t x) ≠ xor (b x) c) ∧ (∀ x : Fin 8, a (refl 1 x) = b x) := by refine ⟨?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_⟩ <;> decide