triangle_covered_marks_form_directed_cycle
If each triangle vertex marks one port and every triangle edge is marked by an endpoint, the marks orient the triangle as one of its two directed cycles.
Statement
theorem triangle_covered_marks_form_directed_cycle :
∀ a b c : Fin 3,
(a = 1 ∨ b = 0) → (b = 2 ∨ c = 1) → (a = 2 ∨ c = 0) →
(a = 1 ∧ b = 2 ∧ c = 0) ∨ (a = 2 ∧ b = 0 ∧ c = 1)- Source
- Triangle exposure obstruction for the OP-874 truncation-coloring route.
- Verified
- 19 Nov 2026
- Axioms
propext
The proof, explained
The theorem classifies all mark assignments at the vertices of a triangle that cover every edge. Because each variable $a, b, c$ takes values in the finite three-element type $\mathrm{Fin}\ 3$, the property is decidable over the $3^3 = 27$ possible triples. Lean's `decide` tactic verifies the claim by exhaustively checking each case, establishing that the only valid assignments are the two directed cycles $(1, 2, 0)$ and $(2, 0, 1)$.
Every assignment of marks $a, b, c \in \mathrm{Fin}\ 3$ satisfying the three edge conditions is either $(1, 2, 0)$ or $(2, 0, 1)$. automation
Because the variables $a, b, c$ take values in the finite type $\mathrm{Fin}\ 3 = \{0, 1, 2\}$, the universally quantified implication is a decidable proposition over a search space of $3^3 = 27$ triples. The `decide` tactic exhaustively evaluates the condition on each triple by computation, verifying that the hypotheses $(a = 1 \lor b = 0)$, $(b = 2 \lor c = 1)$, and $(a = 2 \lor c = 0)$ are satisfied only when $(a, b, c) = (1, 2, 0)$ or $(a, b, c) = (2, 0, 1)$.
decide
- The entire proof is executed computationally by the `decide` tactic, which exhaustively checks all $3^3 = 27$ possible values for $(a, b, c) \in (\mathrm{Fin}\ 3)^3$.
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.
theorem triangle_covered_marks_form_directed_cycle : ∀ a b c : Fin 3, (a = 1 ∨ b = 0) → (b = 2 ∨ c = 1) → (a = 2 ∨ c = 0) → (a = 1 ∧ b = 2 ∧ c = 0) ∨ (a = 2 ∧ b = 0 ∧ c = 1) := by decide