op1525_sixteen_vertex_common_card_witness
For the explicit colorings of sixteen vertices in the displayed block system, there is an injective block-preserving self-map that identifies their cards switched at vertex 1 after global color exchange. Their four triple-block profiles are respectively (0,3,0,1) and (1,0,3,0), and each has three true singleton vertices.
Statement
theorem op1525_sixteen_vertex_common_card_witness : (∀ x y : Fin 16, p x = p y → x = y) ∧ (∀ x y : Fin 16, block (p x) = block (p y) ↔ block x = block y) ∧ (∀ x : Fin 16, xor (a x) (decide (x = 1)) = xor (xor (b (p x)) (decide (p x = 1))) true) ∧ (∀ k : Fin 4, tripleProfile a k = (![0,3,0,1] : Fin 4 → ℕ) k) ∧ (∀ k : Fin 4, tripleProfile b k = (![1,0,3,0] : Fin 4 → ℕ) k) ∧ ((Finset.univ : Finset (Fin 4)).filter (fun x => a ⟨x.val, by omega⟩)).card = 3 ∧ ((Finset.univ : Finset (Fin 4)).filter (fun x => b ⟨x.val, by omega⟩)).card = 3
- Source
- An explicit block-preserving card witness for the multipartite orientation obstruction in OP-1525.
- Verified
- 17 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
The proof, explained
The theorem establishes that two explicit colorings $a$ and $b$ on sixteen vertices partitioned into four singletons and four triples have distinct triple-block profiles $(0,3,0,1)$ and $(1,0,3,0)$, yet share isomorphic cards at vertex 1 up to global color exchange via an explicit block-preserving permutation $p$. The proof structures the seven assertions—injectivity of $p$, preservation of the block partition, card isomorphism after color flipping, the two triple-block profiles, and the count of three true singletons each—into subgoals via `refine`. Because all domains ($\mathrm{Fin}\,16$, $\mathrm{Fin}\,4$, $\mathrm{Fin}\,3$) are finite and all functions are computable, each subgoal is a decidable proposition, and the automated decision procedure `decide` closes all seven goals by exhaustive evaluation.
The triple-block index $4 + 3i + j$ is strictly less than 16 for any $i \in \{0,1,2,3\}$ and $j \in \{0,1,2\}$, ensuring that `tripleVertex i j` is a valid element of $\mathrm{Fin}\,16$. automation
Given $i < 4$ and $j < 3$, linear integer arithmetic gives $4 + 3i + j \le 4 + 3 \times 3 + 2 = 15 < 16$. The `omega` tactic solves this linear inequality automatically to provide the subtype bound needed to construct an element of $\mathrm{Fin}\,16$.
⟨4 + 3 * i.val + j.val, by omega⟩
Any singleton block index $x \in \mathrm{Fin}\,4$ satisfies $x < 16$, allowing each singleton vertex to be coerced into an element of $\mathrm{Fin}\,16$ in the theorem statement. automation
For any $x \in \mathrm{Fin}\,4$, the bound $x < 4$ trivially implies $x < 16$. In both line 30 and line 31 of the theorem statement, `omega` automatically discharges this linear inequality $x < 16$ to construct the subtype element $\langle x.\mathrm{val}, \dots \rangle : \mathrm{Fin}\,16$.
((Finset.univ : Finset (Fin 4)).filter (fun x => a ⟨x.val, by omega⟩)).card = 3 ∧ ((Finset.univ : Finset (Fin 4)).filter (fun x => b ⟨x.val, by omega⟩)).card = 3 := by
The map $p$ is an injective block-preserving permutation identifying the vertex-1 flipped card of $a$ with the vertex-1 flipped, color-reversed card of $b$, with triple-block profiles $(0,3,0,1)$ and $(1,0,3,0)$ and exactly three true singleton vertices each. automation
The proof splits the conjunction of seven claims into separate goals using `refine ⟨?_, ?_, ?_, ?_, ?_, ?_, ?_⟩`. Each subgoal is a statement over finite types ($\mathrm{Fin}\,16$, $\mathrm{Fin}\,4$, $\mathrm{Fin}\,3$) involving computable functions: injectivity of $p$ over the $16 \times 16$ pairs, preservation of block equivalence classes, the pointwise card equality after toggling vertex 1 and swapping colors, the profile counts for $a$ and $b$ across all four triple blocks, and the counts of true values among the four singleton vertices. Lean's `decide` tactic checks every subgoal by exhaustive computational evaluation.
refine ⟨?_, ?_, ?_, ?_, ?_, ?_, ?_⟩ <;> decide
- The source contains proof tactics outside the main proof body: `omega` at line 14 proves the index bound $4 + 3i + j < 16$ within the definition of `tripleVertex`, and `omega` at lines 30 and 31 proves $x < 16$ to embed singleton indices from $\mathrm{Fin}\,4$ into $\mathrm{Fin}\,16$ within the theorem statement itself.
- The main proof at line 32 splits the seven conjuncts and dispatches them all via `decide`, which runs Lean's computational evaluator over finite domains without generating an explicit step-by-step deduction.
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 OP1525ExplicitCardsdef block (x : Fin 16) : ℕ := if x.val < 4 then x.val else 4 + (x.val - 4) / 3def a (x : Fin 16) : Bool := decide (x.val ∈ [1,2,3,4,7,10,13,14,15])def b (x : Fin 16) : Bool := decide (x.val ∈ [1,2,3,7,8,10,11,13,14])def p : Fin 16 → Fin 16 := ![2,3,0,1,9,7,8,12,10,11,15,13,14,4,5,6]end OP1525ExplicitCardsnamespace OP1525ExplicitCardsdef tripleVertex (i : Fin 4) (j : Fin 3) : Fin 16 := ⟨4 + 3 * i.val + j.val, by omega⟩def tripleProfile (f : Fin 16 → Bool) (k : Fin 4) : ℕ := ((Finset.univ : Finset (Fin 4)).filter (fun i => ((Finset.univ : Finset (Fin 3)).filter (fun j => f (tripleVertex i j))).card = k.val)).cardend OP1525ExplicitCardsopen OP1525ExplicitCardstheorem op1525_sixteen_vertex_common_card_witness : (∀ x y : Fin 16, p x = p y → x = y) ∧ (∀ x y : Fin 16, block (p x) = block (p y) ↔ block x = block y) ∧ (∀ x : Fin 16, xor (a x) (decide (x = 1)) = xor (xor (b (p x)) (decide (p x = 1))) true) ∧ (∀ k : Fin 4, tripleProfile a k = (![0,3,0,1] : Fin 4 → ℕ) k) ∧ (∀ k : Fin 4, tripleProfile b k = (![1,0,3,0] : Fin 4 → ℕ) k) ∧ ((Finset.univ : Finset (Fin 4)).filter (fun x => a ⟨x.val, by omega⟩)).card = 3 ∧ ((Finset.univ : Finset (Fin 4)).filter (fun x => b ⟨x.val, by omega⟩)).card = 3 := by refine ⟨?_, ?_, ?_, ?_, ?_, ?_, ?_⟩ <;> decide