op874_contraction_forces_equal_factor_palette
Four pairwise distinct colors exhaust the four-color palette, so any fifth color distinct from three of them equals the fourth.
Statement
theorem op874_contraction_forces_equal_factor_palette
(a b c d e : Fin 4)
(hab : a ≠ b) (hac : a ≠ c) (had : a ≠ d)
(hbc : b ≠ c) (hbd : b ≠ d) (hcd : c ≠ d)
(hea : e ≠ a) (hec : e ≠ c) (hed : e ≠ d) : e = b- Source
- Disjoint matching-palette obstruction for OP-874; https://arxiv.org/abs/2610.41950.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Used by 3
- op874_disjoint_matching_palettes_force_bad_same_bit_edgeFor the displayed factor interfaces, two disjoint matching palettes force equal external color triples on a same-bit factor edge,…
- op874_tight_minority_disjoint_three_interface_obstructionOn the displayed six-cycle, requiring disjoint high palettes at the specified minority matching edge is incompatible with only the two…
- op874_six_cycle_next_block_forces_repeatThe next two interfaces in the six-cycle kernel force the third high factor color to repeat the first when the four named high colors are…
The proof, explained
Since $a, b, c, d$ are pairwise distinct elements of the four-element type $\mathrm{Fin}\;4$, the subset $\{a, b, c, d\}$ has cardinality 4 and therefore equals the entire universe. Any element $e \in \mathrm{Fin}\;4$ must belong to this set, meaning $e \in \{a, b, c, d\}$. Since $e$ is assumed distinct from $a$, $c$, and $d$, the only remaining possibility is $e = b$.
The set $\{a, b, c, d\}$ has cardinality 4. automation
Since the four elements $a, b, c, d$ are assumed pairwise distinct by the six inequality hypotheses, the set containing them has cardinality 4. The tactic `simp` simplifies the cardinality expression using these disequalities.
have hcard : ({a,b,c,d} : Finset (Fin 4)).card = 4 := by simp [hab,hac,had,hbc,hbd,hcd]
The set $\{a, b, c, d\}$ is the entire universe of $\mathrm{Fin}\;4$.
Because $\{a, b, c, d\}$ has cardinality 4 and the ambient type $\mathrm{Fin}\;4$ also has 4 elements, `Finset.eq_univ_of_card` establishes that $\{a, b, c, d\} = \mathrm{Finset.univ}$.
uses
Finset.eq_univ_of_cardhave hall : ({a,b,c,d} : Finset (Fin 4)) = Finset.univ := by apply Finset.eq_univ_of_card simpa using hcard
$e \in \{a, b, c, d\}$.
Since $\{a, b, c, d\}$ is the full universe, every element of $\mathrm{Fin}\;4$, and in particular $e$, belongs to it by `Finset.mem_univ`.
uses
Finset.mem_univhave he : e ∈ ({a,b,c,d} : Finset (Fin 4)) := by rw [hall] exact Finset.mem_univ _
$e = b$.
Unfolding membership in $\{a, b, c, d\}$ with `Finset.mem_insert` and `Finset.mem_singleton` expresses $e \in \{a, b, c, d\}$ as $e = a \lor e = b \lor e = c \lor e = d$. A case split on this disjunction eliminates $e = a$, $e = c$, and $e = d$ using the contradiction hypotheses $e \neq a$, $e \neq c$, and $e \neq d$, leaving only $e = b$.
uses
Finset.mem_insert,Finset.mem_singletonsimp only [Finset.mem_insert, Finset.mem_singleton] at he rcases he with h | h | h | h · exact (hea h).elim · exact h · exact (hec h).elim · exact (hed h).elim
Finset.eq_univ_of_card- A subset of a finite type whose cardinality equals that of the ambient type is the entire universe of elements.
Finset.mem_univ- Every element of a finite type belongs to the universal finset `univ`.
Finset.mem_insert- An element belongs to `insert b s` if and only if it equals `b` or belongs to `s`.
Finset.mem_singleton- An element belongs to the singleton set `{a}` if and only if it equals `a`.
- The calculation that the set of four pairwise distinct elements has cardinality 4 (step 1) is closed automatically by simplification lemmas.
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 op874_contraction_forces_equal_factor_palette (a b c d e : Fin 4) (hab : a ≠ b) (hac : a ≠ c) (had : a ≠ d) (hbc : b ≠ c) (hbd : b ≠ d) (hcd : c ≠ d) (hea : e ≠ a) (hec : e ≠ c) (hed : e ≠ d) : e = b := by have hcard : ({a,b,c,d} : Finset (Fin 4)).card = 4 := by simp [hab,hac,had,hbc,hbd,hcd] have hall : ({a,b,c,d} : Finset (Fin 4)) = Finset.univ := by apply Finset.eq_univ_of_card simpa using hcard have he : e ∈ ({a,b,c,d} : Finset (Fin 4)) := by rw [hall] exact Finset.mem_univ _ simp only [Finset.mem_insert, Finset.mem_singleton] at he rcases he with h | h | h | h · exact (hea h).elim · exact h · exact (hec h).elim · exact (hed h).elim