alternating_forbidden_palettes_block_six_cycle
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.
$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`).
have hf : f.val < 2 ↔ b.val < 2 := by omega have hd : d.val < 2 ↔ b.val < 2 := by omega
$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`.
uses
isLthave hb := b.isLt have hc := d.isLt have he := f.isLt
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.
omega
isLt- For any $x : \mathrm{Fin}\, n$, its natural number value $x.\mathrm{val}$ satisfies $x.\mathrm{val} < n$.
- The upper bounds $b < 4$, $d < 4$, and $f < 4$ hold by definition for elements of $\mathrm{Fin}\, 4$, but because their values in Lean have type $\mathbb{N}$, these bounds must be explicitly added to the local context via `isLt` (lines 12–14) for the `omega` tactic to access them.
- In lines 13 and 14, the proof assigns the bound on $d$ to the hypothesis name `hc` and the bound on $f$ to `he`, reusing vertex names rather than matching the variable names.
- The pigeonhole principle that finishes the proof in line 15—that three pairwise distinct numbers cannot all lie in a two-element set—is discharged automatically by `omega` via finite linear integer arithmetic.
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 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