AFTD Auto-Formalizing Theoretical Domains

six_cycle_two_selected_pairs_force_equal_palettes

theoremverified

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.

  1. 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.

    lines 6–9

    uses Finset.mem_insert, Finset.mem_singleton

      have hd : d = a ∨ d = b := by
        have h := hcover d
        simp only [Finset.mem_insert, Finset.mem_singleton] at h
        aesop
  2. 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.

    lines 10–13

    uses Finset.mem_insert, Finset.mem_singleton

      have he : e = a ∨ e = b := by
        have h := hcover e
        simp only [Finset.mem_insert, Finset.mem_singleton] at h
        aesop
  3. {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`).

    lines 14–18

    uses False.elim, Finset.pair_comm

      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))
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

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))
See it in the graphDiscuss this resultChallenge it