AFTD Auto-Formalizing Theoretical Domains

six_cycle_three_pairs_outer_inequalities_contradiction

theoremverified

On six cyclic colors, if one color occurs in three alternating incident pairs, then the stated outer-color inequalities cannot both hold.

Statement

theorem six_cycle_three_pairs_outer_inequalities_contradiction
    {Ω : Type*} (a b c d e f z : Ω)
    (h1 : z = a ∨ z = b) (h2 : z = c ∨ z = d) (h3 : z = e ∨ z = f)
    (hfa : f ≠ a) (hbc : b ≠ c) (hde : d ≠ e)
    (hac : a ≠ c) (hbf : b ≠ f) : False
Source
Six-cycle palette kernel for the OP-874 nonbinary ownership obstruction.
Verified
19 Nov 2026
Axioms
none — Lean reports it depends on no axioms

The proof, explained

The proof proceeds by contradiction via case analysis on the hypothesis z = a ∨ z = b. In the first case (z = a), the inequality f ≠ a rules out z = f, forcing z = e, which in turn with d ≠ e rules out z = d to force z = c, contradicting a ≠ c. The second case (z = b) is symmetric: b ≠ c forces z = d, which with d ≠ e forces z = f, contradicting b ≠ f.

  1. It suffices to derive a contradiction in each of the two cases: z = a and z = b.

    We perform a case split on the assumption h₁ : z = a ∨ z = b.

    line 6

      rcases h1 with hza | hzb
  2. Assuming z = a, we deduce z = e.

    If z = f, then transitivity with z = a implies f = a, contradicting hfa : f ≠ a. Thus z ≠ f. Since z = e ∨ z = f by h₃, eliminating the second disjunct forces z = e.

    lines 7–10

      · have hzf : z ≠ f := by
          intro hz
          exact hfa (hz.symm.trans hza)
        have hze : z = e := h3.resolve_right hzf
  3. From z = a and z = e, we deduce z = c.

    If z = d, then transitivity with z = e implies d = e, contradicting hde : d ≠ e. Thus z ≠ d. Since z = c ∨ z = d by h₂, eliminating the second disjunct forces z = c.

    lines 11–14

        have hzd : z ≠ d := by
          intro hz
          exact hde (hz.symm.trans hze)
        have hzc : z = c := h2.resolve_right hzd
  4. The case z = a leads to a contradiction.

    Since z = a and z = c, transitivity of equality gives a = c, which contradicts hac : a ≠ c.

    line 15

        exact hac (hza.symm.trans hzc)
  5. Assuming z = b, we deduce z = d.

    If z = c, then transitivity with z = b implies b = c, contradicting hbc : b ≠ c. Thus z ≠ c. Since z = c ∨ z = d by h₂, eliminating the first disjunct forces z = d.

    lines 16–19

      · have hzc : z ≠ c := by
          intro hz
          exact hbc (hzb.symm.trans hz)
        have hzd : z = d := h2.resolve_left hzc
  6. From z = b and z = d, we deduce z = f.

    If z = e, then transitivity with z = d implies d = e, contradicting hde : d ≠ e. Thus z ≠ e. Since z = e ∨ z = f by h₃, eliminating the first disjunct forces z = f.

    lines 20–23

        have hze : z ≠ e := by
          intro hz
          exact hde (hzd.symm.trans hz)
        have hzf : z = f := h3.resolve_left hze
  7. The case z = b leads to a contradiction, completing the proof.

    Since z = b and z = f, transitivity of equality gives b = f, which contradicts hbf : b ≠ f.

    line 24

        exact hbf (hzb.symm.trans hzf)

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_three_pairs_outer_inequalities_contradiction    {Ω : Type*} (a b c d e f z : Ω)    (h1 : z = a ∨ z = b) (h2 : z = c ∨ z = d) (h3 : z = e ∨ z = f)    (hfa : f ≠ a) (hbc : b ≠ c) (hde : d ≠ e)    (hac : a ≠ c) (hbf : b ≠ f) : False := by  rcases h1 with hza | hzb  · have hzf : z ≠ f := by      intro hz      exact hfa (hz.symm.trans hza)    have hze : z = e := h3.resolve_right hzf    have hzd : z ≠ d := by      intro hz      exact hde (hz.symm.trans hze)    have hzc : z = c := h2.resolve_right hzd    exact hac (hza.symm.trans hzc)  · have hzc : z ≠ c := by      intro hz      exact hbc (hzb.symm.trans hz)    have hzd : z = d := h2.resolve_left hzc    have hze : z ≠ e := by      intro hz      exact hde (hzd.symm.trans hz)    have hzf : z = f := h3.resolve_left hze    exact hbf (hzb.symm.trans hzf)
See it in the graphDiscuss this resultChallenge it