Documentation

CslibFrontier.Foundations.Combinatorics.SimpleGraph.OddCycle

The Lovász theta function of odd cycles #

For odd n ≥ 3, put c = cos (π / n). Lovász computed the theta function of the cycle Cₙ and of its complement [Lov79b]: ϑ(Cₙ) = n c / (1 + c) and ϑ(Cₙᶜ) = (1 + c) / c. We follow the elementary proof in Knuth's notes [Knuth1994, §22], which needs no semidefinite duality:

Our Fourier vectors use the frequencies 2πk/n and have 2n real coordinates; Knuth uses the angle π(n - 1)/n and 2n - 1 coordinates. The two choices differ by a permutation of the frequencies (and one coordinate that is identically zero), so the Gram matrices agree.

For n = 3 the formula gives ϑ(K₃) = 1, and for n = 5 it gives √5, recovering SimpleGraph.lovaszTheta_cycleGraph_five. For odd n ≥ 7 it gives the upper bound Θ(Cₙ) ≤ ϑ(Cₙ), for instance Θ(C₇) ≤ ϑ(C₇) ≈ 3.32. The exact value of Θ(C₇) is open.

Main definitions #

Main results #

References #

The umbrella for the complement of an odd cycle #

noncomputable def SimpleGraph.oddCycleComplUmbrella (n : ℕ) (v : Fin n) :

The umbrella representation of Cₙᶜ in ℝ³ [Knuth1994, §22, (22.2)]: unit vectors whose azimuths around the handle (1, 0, 0) advance by π - π/n.

theorem SimpleGraph.inner_oddCycleComplUmbrella {n : ℕ} (hn : 3 ≤ n) (u v : Fin n) :
inner ℝ (oddCycleComplUmbrella n u) (oddCycleComplUmbrella n v) = Real.cos (Real.pi / ↑n) / (1 + Real.cos (Real.pi / ↑n)) + 1 / (1 + Real.cos (Real.pi / ↑n)) * Real.cos ((Real.pi - Real.pi / ↑n) * ↑↑u - (Real.pi - Real.pi / ↑n) * ↑↑v)

Inner product of two umbrella vectors for Cₙᶜ ([Knuth1994, §22, (22.3)]).

oddCycleComplUmbrella n is an orthonormal representation of Cₙᶜ for odd n ≥ 3 ([Knuth1994, §22, (22.2)–(22.5)]).

The Fourier representation of an odd cycle #

noncomputable def SimpleGraph.oddCycleWeight (n k : ℕ) :

The squared Fourier weights β k = (1 + cos (2πk/n) / cos (π/n)) / n of the representation SimpleGraph.oddCycleFourier; they are nonnegative for odd n ≥ 3.

theorem SimpleGraph.oddCycleWeight_nonneg {n k : ℕ} (hodd : Odd n) (hn : 3 ≤ n) (hk : k < n) :

The Fourier weights oddCycleWeight n k are nonnegative for odd n ≥ 3 and k < n.

noncomputable def SimpleGraph.oddCycleFourier (n : ℕ) (v : Fin n) :

The Fourier orthonormal representation of Cₙ ([Knuth1994, §22, (22.6)]): coordinates (k, 0) and (k, 1) are √(β k) cos (2πkv/n) and √(β k) sin (2πkv/n).

theorem SimpleGraph.inner_oddCycleFourier {n : ℕ} (hodd : Odd n) (hn : 3 ≤ n) (u v : Fin n) :
inner ℝ (oddCycleFourier n u) (oddCycleFourier n v) = ∑ k ∈ Finset.range n, oddCycleWeight n k * Real.cos (2 * Real.pi * ↑(↑↑u - ↑↑v) / ↑n * ↑k)

Gram inner product of the Fourier representation as a cosine sum ([Knuth1994, §22, (22.7)]).

theorem SimpleGraph.inner_oddCycleFourier_of_adj {n : ℕ} (hodd : Odd n) (hn : 3 ≤ n) {u v : Fin n} (hadj : (cycleGraph n).Adj u v) :

Adjacent vertices in Cₙ have inner product (2 cos (π/n))⁻¹ in oddCycleFourier n.

oddCycleFourier n is an orthonormal representation of Cₙ for odd n ≥ 3 ([Knuth1994, §22, (22.6)–(22.9)]).

Exact values for odd cycles and their complements #

theorem SimpleGraph.lovaszTheta_cycleGraph_of_odd {n : ℕ} (hodd : Odd n) (hn : 3 ≤ n) :
(cycleGraph n).lovaszTheta = ↑n * Real.cos (Real.pi / ↑n) / (1 + Real.cos (Real.pi / ↑n))

Lovász's theorem for odd cycles: ϑ(Cₙ) = n cos (π/n) / (1 + cos (π/n)) for odd n ≥ 3 [Knuth1994, §22, (22.11)].

ϑ(Cₙᶜ) = (1 + cos (π/n)) / cos (π/n) for odd n ≥ 3 [Knuth1994, §22, (22.12)].

Odd cycles attain equality in |V| ≤ ϑ(G) ϑ(Gᶜ) [Knuth1994, §23].

Lovász's upper bound on the Shannon capacity of an odd cycle [Lov79b].