English
If n is odd, then the cycle graph C_n has chromatic number 3.
Русский
Если n нечетное, то цикл граф C_n имеет хроматическое число 3.
LaTeX
$$∀ n odd, (cycleGraph n).chromaticNumber = 3$$
Lean4
theorem chromaticNumber_cycleGraph_of_odd (n : ℕ) (h : 2 ≤ n) (hOdd : Odd n) : (cycleGraph n).chromaticNumber = 3 :=
by
have hc := (cycleGraph.tricoloring n h).colorable
apply le_antisymm
· apply hc.chromaticNumber_le
· have hn3 : n - 3 + 3 = n :=
by
refine Nat.sub_add_cancel (Nat.succ_le_of_lt (Nat.lt_of_le_of_ne h ?_))
intro h2
rw [← h2] at hOdd
exact (Nat.not_odd_iff.mpr rfl) hOdd
let w : (cycleGraph (n - 3 + 3)).Walk 0 0 := cycleGraph_EulerianCircuit (n - 3)
have hOdd' : Odd w.length := by
rw [cycleGraph_EulerianCircuit_length, hn3]
exact hOdd
rw [← hn3]
exact Walk.three_le_chromaticNumber_of_odd_loop w hOdd'