op309_four_cycle_six_colors_kernel
A sixth color cannot avoid five distinct colors in a five-color palette.
Statement
theorem op309_four_cycle_six_colors_kernel (a b c p s d : Fin 5)
(hfive : ([a,b,c,p,s] : List (Fin 5)).Nodup)
(hd : d ≠ a ∧ d ≠ b ∧ d ≠ c ∧ d ≠ p ∧ d ≠ s) : False- Source
- OP-309 cubic four-cycle obstruction, experiment 40796.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
The proof, explained
The theorem proves that a five-element palette ($\mathrm{Fin}\; 5$) cannot contain five distinct colors and a sixth color that differs from all five. The proof constructs the six-element list $[a, b, c, p, s, d]$ and verifies that all entries are pairwise distinct. By the pigeonhole principle for finite types, the length of a duplicate-free list cannot exceed the cardinality of the type, forcing the impossible inequality $6 \le 5$.
The list of six elements $[a, b, c, p, s, d]$ has no duplicates.
Expanding the definition of duplicate-freeness (`List.nodup_cons`, `List.nodup_singleton`) and list membership (`List.mem_cons`, `List.mem_singleton`) using De Morgan's laws (`not_or`) reduces the goal to showing that all pairs among $a, b, c, p, s, d$ are distinct. The hypothesis `hfive` establishes that $a, b, c, p, s$ are pairwise distinct, and `hd` states that $d$ differs from each of them; `aesop` completes the sub-goal by matching these distinctness facts across all pairs.
uses
List.nodup_cons,List.mem_cons,List.mem_singleton,List.nodup_singleton,not_orhave h6 : ([a,b,c,p,s,d] : List (Fin 5)).Nodup := by simp only [List.nodup_cons, List.mem_cons, List.mem_singleton, List.nodup_singleton, not_or] at * aesop
A contradiction is reached by the pigeonhole principle.
Because the list $[a, b, c, p, s, d]$ has no duplicate elements, its length (6) cannot exceed the cardinality of the ambient type $\mathrm{Fin}\; 5$ (5). The arithmetic tactic `norm_num` evaluates the resulting inequality $6 \le 5$, which is false, thereby closing the proof.
have hh := h6.length_le_card norm_num at hh
List.nodup_cons- A list `a :: l` has no duplicates if and only if `a ∉ l` and `l` has no duplicates.
List.mem_cons- An element `a` belongs to `b :: l` if and only if `a = b` or `a ∈ l`.
List.mem_singleton- An element `a` belongs to `[b]` if and only if `a = b`.
List.nodup_singleton- Any singleton list `[a]` has no duplicates.
not_or- The negation of a disjunction `¬(p ∨ q)` is equivalent to `¬p ∧ ¬q`.
- The verification that the six elements are pairwise distinct is delegated to `aesop`, which checks all pairwise inequalities resulting from expanding the definitions.
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 op309_four_cycle_six_colors_kernel (a b c p s d : Fin 5) (hfive : ([a,b,c,p,s] : List (Fin 5)).Nodup) (hd : d ≠ a ∧ d ≠ b ∧ d ≠ c ∧ d ≠ p ∧ d ≠ s) : False := by have h6 : ([a,b,c,p,s,d] : List (Fin 5)).Nodup := by simp only [List.nodup_cons, List.mem_cons, List.mem_singleton, List.nodup_singleton, not_or] at * aesop have hh := h6.length_le_card norm_num at hh