AFTD Auto-Formalizing Theoretical Domains

alternating_forbidden_palettes_block_six_cycle

theoremverified

Alternating complementary forbidden palettes force the three alternating factor edges into the same pair of colors, so they cannot be pairwise distinct.

Statement

theorem alternating_forbidden_palettes_block_six_cycle
    (a b c d e f : Fin 4)
    (h0 : a.val < 2 ∨ f.val < 2)
    (h1 : 2 ≤ a.val ∨ 2 ≤ b.val)
    (h2 : b.val < 2 ∨ c.val < 2)
    (h3 : 2 ≤ c.val ∨ 2 ≤ d.val)
    (h4 : d.val < 2 ∨ e.val < 2)
    (h5 : 2 ≤ e.val ∨ 2 ≤ f.val)
    (hfb : f.val ≠ b.val) (hbd : b.val ≠ d.val) (hdf : d.val ≠ f.val) : False
Source
Precolored factor-cycle obstruction for the OP-874 campaign.
Verified
19 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The theorem shows that alternating forbidden palette constraints on a 6-cycle prevent the three alternating vertices $b, d, f \in \{0, 1, 2, 3\}$ from being pairwise distinct. Chaining the disjunctive constraints around the 6-cycle forces $f < 2 \iff b < 2$ and $d < 2 \iff b < 2$, so $b, d, f$ must either all lie in $\{0, 1\}$ or all lie in $\{2, 3\}$. By the pigeonhole principle, three pairwise distinct values cannot belong to a two-element set, yielding a contradiction.

  1. $f < 2 \iff b < 2$ and $d < 2 \iff b < 2$

    The forbidden palette constraints around the 6-cycle couple the parity-like halves of the palette for alternating vertices. If $b < 2$, hypothesis $h_1$ ($2 \le a \lor 2 \le b$) forces $a \ge 2$, which with $h_0$ ($a < 2 \lor f < 2$) forces $f < 2$. Conversely, if $f < 2$, $h_5$ forces $e \ge 2$, which by $h_4$ forces $d < 2$, which by $h_3$ forces $c \ge 2$, which by $h_2$ forces $b < 2$. The same cyclic chain shows $d < 2 \iff b < 2$. Both equivalences are verified by linear integer arithmetic (`omega`).

    lines 10–11

      have hf : f.val < 2 ↔ b.val < 2 := by omega
      have hd : d.val < 2 ↔ b.val < 2 := by omega
  2. $b < 4$, $d < 4$, and $f < 4$

    Because $b, d, f$ are elements of $\mathrm{Fin}\, 4$, their underlying natural number values are strictly bounded by $4$. We introduce these bounds (`hb`, `hc`, and `he`) into the proof context using `isLt`.

    lines 12–14

    uses isLt

      have hb := b.isLt
      have hc := d.isLt
      have he := f.isLt
  3. False

    Since $f < 2 \iff b < 2$ and $d < 2 \iff b < 2$, the three values $b, d, f$ either all lie in $\{0, 1\}$ (if $b < 2$) or all lie in $\{2, 3\}$ (if $b \ge 2$, using the bounds $< 4$). In either case, all three values belong to a set of cardinality 2. But by hypotheses $hfb$, $hbd$, and $hdf$, the three values are pairwise distinct, which contradicts the pigeonhole principle. Linear integer arithmetic (`omega`) detects this contradiction and closes the goal.

    line 15

      omega
isLt
For any $x : \mathrm{Fin}\, n$, its natural number value $x.\mathrm{val}$ satisfies $x.\mathrm{val} < n$.

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 alternating_forbidden_palettes_block_six_cycle    (a b c d e f : Fin 4)    (h0 : a.val < 2 ∨ f.val < 2)    (h1 : 2 ≤ a.val ∨ 2 ≤ b.val)    (h2 : b.val < 2 ∨ c.val < 2)    (h3 : 2 ≤ c.val ∨ 2 ≤ d.val)    (h4 : d.val < 2 ∨ e.val < 2)    (h5 : 2 ≤ e.val ∨ 2 ≤ f.val)    (hfb : f.val ≠ b.val) (hbd : b.val ≠ d.val) (hdf : d.val ≠ f.val) : False := by  have hf : f.val < 2 ↔ b.val < 2 := by omega  have hd : d.val < 2 ↔ b.val < 2 := by omega  have hb := b.isLt  have hc := d.isLt  have he := f.isLt  omega
See it in the graphDiscuss this resultChallenge it