six_cycle_two_selected_pairs_force_equal_palettes
If four consecutive factor colors exhaust the palette, two complementary colors at a selected six-cycle pair have the same two-color set as the middle pair.
Statement
theorem six_cycle_two_selected_pairs_force_equal_palettes {Ω : Type*} [DecidableEq Ω] (a b c d e f : Ω) (hcover : ∀ z : Ω, z ∈ ({f,a,b,c} : Finset Ω)) (hcd : c ≠ d) (hdf : d ≠ f) (hef : e ≠ f) (hce : c ≠ e) (hde : d ≠ e) : ({a,b} : Finset Ω) = {d,e}
- Source
- Palette obstruction reduction for the OP-874 campaign.
- Verified
- 19 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
The proof, explained
The four elements {f, a, b, c} are assumed to exhaust the entire universe. Since d and e are distinct from both f and c, both d and e must belong to {a, b}. Because d ≠ e, they cannot be equal, leaving only the cases where {d, e} and {a, b} contain the same two distinct elements.
d = a ∨ d = b
Applying the universal coverage hypothesis to d gives d ∈ {f, a, b, c}, which expands to d = f ∨ d = a ∨ d = b ∨ d = c. Automated propositional reasoning (`aesop`) rules out d = f and d = c using the hypotheses d ≠ f and c ≠ d, leaving d = a ∨ d = b.
uses
Finset.mem_insert,Finset.mem_singletonhave hd : d = a ∨ d = b := by have h := hcover d simp only [Finset.mem_insert, Finset.mem_singleton] at h aesop
e = a ∨ e = b
Similarly, applying coverage to e gives e ∈ {f, a, b, c}, expanding to e = f ∨ e = a ∨ e = b ∨ e = c. Automated reasoning rules out e = f and e = c using e ≠ f and c ≠ e, leaving e = a ∨ e = b.
uses
Finset.mem_insert,Finset.mem_singletonhave he : e = a ∨ e = b := by have h := hcover e simp only [Finset.mem_insert, Finset.mem_singleton] at h aesop
{a, b} = {d, e}
Case analysis on the possible values of d and e yields four cases. If d = a and e = a, or d = b and e = b, we have d = e, contradicting d ≠ e and closing these branches via `False.elim`. If d = a and e = b, substitution immediately gives {a, b} = {d, e}. If d = b and e = a, substitution gives {b, a}, which equals {d, e} by the commutativity of pair sets (`Finset.pair_comm`).
uses
False.elim,Finset.pair_commrcases hd with hda | hdb <;> rcases he with hea | heb · exact False.elim (hde (hda.trans hea.symm)) · rw [hda, heb] · rw [hdb, hea, Finset.pair_comm] · exact False.elim (hde (hdb.trans heb.symm))
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 `{a}` if and only if it equals `a`.
False.elim- From a proof of False, any proposition can be derived (ex falso quodlibet).
Finset.pair_comm- The unordered pair `{a, b}` equals `{b, a}`.
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 six_cycle_two_selected_pairs_force_equal_palettes {Ω : Type*} [DecidableEq Ω] (a b c d e f : Ω) (hcover : ∀ z : Ω, z ∈ ({f,a,b,c} : Finset Ω)) (hcd : c ≠ d) (hdf : d ≠ f) (hef : e ≠ f) (hce : c ≠ e) (hde : d ≠ e) : ({a,b} : Finset Ω) = {d,e} := by have hd : d = a ∨ d = b := by have h := hcover d simp only [Finset.mem_insert, Finset.mem_singleton] at h aesop have he : e = a ∨ e = b := by have h := hcover e simp only [Finset.mem_insert, Finset.mem_singleton] at h aesop rcases hd with hda | hdb <;> rcases he with hea | heb · exact False.elim (hde (hda.trans hea.symm)) · rw [hda, heb] · rw [hdb, hea, Finset.pair_comm] · exact False.elim (hde (hdb.trans heb.symm))