AFTD Auto-Formalizing Theoretical Domains

eight_cycle_square_matching_palette_obstruction

theoremverified

On an eight-cycle colored with four colors so that positions at distance one or two have different colors, at least one of the unordered color pairs at positions 4–5 and 0–1, or at positions 3–4 and 7–0, is equal to its counterpart.

Statement

theorem eight_cycle_square_matching_palette_obstruction
    (a b c d e f g h : Fin 4)
    (H : a ≠ b ∧
      a ≠ c ∧
      b ≠ c ∧
      b ≠ d ∧
      c ≠ d ∧
      c ≠ e ∧
      d ≠ e ∧
      d ≠ f ∧
      e ≠ f ∧
      e ≠ g ∧
      f ≠ g ∧
      f ≠ h ∧
      g ≠ h ∧
      g ≠ a ∧
      h ≠ a ∧
      h ≠ b ∧
      ¬ ((e = a ∧ f = b) ∨ (e = b ∧ f = a)) ∧
      ¬ ((d = h ∧ e = a) ∨ (d = a ∧ e = h))) : False
Source
Two matching-chord obstruction to globally square-coloring the complementary cycles in the two-versus-four route to OP-874, arXiv:2610.41950.
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The theorem shows by contradiction that any proper 4-coloring of the square of the 8-cycle C₈² must match the color palette of at least one of two pairs of opposite edges: positions 4–5 with 0–1, or positions 3–4 with 7–0. The proof assumes that all distance-1 and distance-2 color distinctness constraints hold while both palette matches fail. It then reaches False by an exhaustive finite case analysis over all 4⁸ = 65,536 possible color assignments to the eight vertices, where every branch is pruned to a contradiction by simplification.

  1. The composite hypothesis H is unpacked into sixteen distinctness conditions and two negated palette-match conditions.

    We break the conjunction H into individual hypotheses: sixteen inequalities ensuring that vertices at distance 1 and 2 in the 8-cycle receive distinct colors, and two negated disjunctions asserting that neither the unordered color pair at edges 4–5 and 0–1 nor the pair at edges 3–4 and 7–0 match.

    line 21

      rcases H with ⟨h0, h1, h2, h3, h4, h5, h6, h7, h8, h9, h10, h11, h12, h13, h14, h15, h16, h17⟩
  2. No assignment of four colors to the eight vertices satisfies all constraints, deriving a contradiction (False). automation

    The proof carries out an exhaustive case exhaustion across all eight vertices a, b, c, d, e, f, g, h ∈ Fin 4. For each vertex in succession, `fin_cases` branches on the four possible color values (0, 1, 2, 3), and `simp_all` evaluates the concrete equalities and inequalities, eliminating any branch that violates an edge constraint, a distance-two constraint, or the palette non-matching conditions. All 4⁸ branches are refuted, leaving no surviving valid coloring.

    lines 22–25

      fin_cases a <;> simp_all <;> fin_cases b <;> simp_all <;>
        fin_cases c <;> simp_all <;> fin_cases d <;> simp_all <;>
        fin_cases e <;> simp_all <;> fin_cases f <;> simp_all <;>
        fin_cases g <;> simp_all <;> fin_cases h <;> simp_all

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

Lean’s trace was cut to the first 400 of 2486 tactics.

theorem eight_cycle_square_matching_palette_obstruction    (a b c d e f g h : Fin 4)    (H : a ≠ b ∧      a ≠ c ∧      b ≠ c ∧      b ≠ d ∧      c ≠ d ∧      c ≠ e ∧      d ≠ e ∧      d ≠ f ∧      e ≠ f ∧      e ≠ g ∧      f ≠ g ∧      f ≠ h ∧      g ≠ h ∧      g ≠ a ∧      h ≠ a ∧      h ≠ b ∧      ¬ ((e = a ∧ f = b) ∨ (e = b ∧ f = a)) ∧      ¬ ((d = h ∧ e = a) ∨ (d = a ∧ e = h))) : False := by  rcases H with ⟨h0, h1, h2, h3, h4, h5, h6, h7, h8, h9, h10, h11, h12, h13, h14, h15, h16, h17⟩  fin_cases a <;> simp_all <;> fin_cases b <;> simp_all <;>    fin_cases c <;> simp_all <;> fin_cases d <;> simp_all <;>    fin_cases e <;> simp_all <;> fin_cases f <;> simp_all <;>    fin_cases g <;> simp_all <;> fin_cases h <;> simp_all
See it in the graphDiscuss this resultChallenge it