Documentation

CslibFrontier.Foundations.Analysis.SpecialFunctions.GoemansWilliamson

The Goemans–Williamson constant #

The Goemans–Williamson constant is α = min_{0 < θ ≤ π} (2 / π) · θ / (1 - cos θ) [GoemansWilliamson1995, Section 3]. It is the approximation ratio of random-hyperplane rounding for MAX-CUT: the probability arccos y / π that a uniformly random hyperplane separates two unit vectors with inner product y is at least α times the contribution (1 - y) / 2 of the pair to the semidefinite relaxation [GoemansWilliamson1995, Lemma 3.4]. Its value is α ≈ 0.878567; Goemans and Williamson show α > 0.87856 [GoemansWilliamson1995, Lemma 3.5].

Here α is Real.goemansWilliamsonConstant, defined as an infimum over θ ∈ (0, π]. The bounds 0.87856 < α < 0.87857 follow the source's proof. On (0, π / 2] the ratio is at least 1, because 1 - cos θ ≤ 2θ / π there. On [π / 2, π], the concave function 1 - cos θ lies below its tangent line at θ₀ = π - 0.810474 ≈ 2.331119, and that line lies below θ · sin θ₀. The needed values of cos and sin at 0.810474 come from degree-ten Taylor bounds (Real.cos_bound_ten, Real.sin_bound_ten) and the six-digit bounds on π in Mathlib, with explicit rational arithmetic.

This module also defines the threshold angle Real.thetaGW ∈ (π / 2, 3π / 4) solving tan (θ / 2) = θ and proves the global tangent-line lower bound Real.goemansWilliamson_tangent_ineq on t / π for every θ ∈ [thetaGW, π). At θ = thetaGW, the tangent line passes through the origin with slope α = Real.goemansWilliamsonConstant, giving the exact attainment Real.goemansWilliamsonConstant_eq and showing that the cutoff γ = (1 - cos thetaGW) / 2 ≈ 0.84458 minimizes h(x) / x on (0, 1] for h(x) = arccos (1 - 2x) / π with minimum value α [GoemansWilliamson1995, Section 3.1].

Main definitions #

Main results #

References #

The Goemans–Williamson constant α = inf_{0 < θ ≤ π} (2 / π) · θ / (1 - cos θ) [GoemansWilliamson1995, Section 3]. The infimum is attained near θ ≈ 2.33112, where α ≈ 0.878567.

The Goemans–Williamson constant is nonnegative.

The defining inequality of the Goemans–Williamson constant, multiplied out: α · (1 - cos θ) ≤ (2 / π) · θ for 0 ≤ θ ≤ π.

Goemans–Williamson, Lemma 3.4. For -1 ≤ y ≤ 1, α · (1 - y) / 2 ≤ arccos y / π: a random hyperplane separates two unit vectors with inner product y with probability at least α times their contribution to the MAX-CUT semidefinite relaxation [GoemansWilliamson1995, Lemma 3.4].

Goemans–Williamson, Lemma 3.5. The Goemans–Williamson constant exceeds 0.87856 [GoemansWilliamson1995, Lemma 3.5].

The Goemans–Williamson constant is below 0.87857, witnessed by θ = π - 0.810474. With Real.lt_goemansWilliamsonConstant, this pins down the first five decimal digits.

The threshold angle thetaGW, tangent inequality, and Section 3.1 minimizer #

noncomputable def Real.thetaGW :

The Goemans–Williamson threshold angle θ_GW ≈ 2.33112 ≈ 0.742π, defined as the unique solution in (0, π) of tan (θ / 2) = θ. It attains Real.goemansWilliamsonConstant (Real.goemansWilliamsonConstant_eq) and gives the cutoff γ = (1 - cos thetaGW) / 2 ≈ 0.84458 of [GoemansWilliamson1995, Section 3.1].

tan (thetaGW / 2) = thetaGW.

theorem Real.eq_thetaGW_of_tan_div_two {θ : ℝ} (hθ : θ ∈ Set.Ioo 0 Real.pi) (htan : tan (θ / 2) = θ) :

Uniqueness of thetaGW in (0, π).

The Section 3.1 cutoff γ = (1 - cos thetaGW) / 2 lies in (1 / 2, 1).

theorem Real.goemansWilliamson_tangent_ineq {θ t : ℝ} (hθ_lo : thetaGW ≤ θ) (hθ_hi : θ < Real.pi) (ht0 : 0 ≤ t) (htπ : t ≤ Real.pi) :
θ / Real.pi + 2 / (Real.pi * sin θ) * ((1 - cos t) / 2 - (1 - cos θ) / 2) ≤ t / Real.pi

Key tangent-line inequality for the Goemans–Williamson curve: for every θ ∈ [thetaGW, π) and t ∈ [0, π], θ / π + (2 / (π * sin θ)) * ((1 - cos t) / 2 - (1 - cos θ) / 2) ≤ t / π. At θ = thetaGW, the tangent passes through the origin with slope 2 / (π * sin thetaGW) = Real.goemansWilliamsonConstant [GoemansWilliamson1995, Section 3.1].

Real.goemansWilliamsonConstant is attained at Real.thetaGW: α = (2 / π) · thetaGW / (1 - cos thetaGW). At thetaGW, the tangent in goemansWilliamson_tangent_ineq passes through the origin with slope α [GoemansWilliamson1995, Section 3.1].

At the Section 3.1 cutoff γ = (1 - cos thetaGW) / 2, the ratio h(γ) / γ (where h(x) = arccos (1 - 2 * x) / π) equals Real.goemansWilliamsonConstant [GoemansWilliamson1995, Section 3.1].

theorem Real.isMinOn_arccos_one_sub_two_mul_div :
IsMinOn (fun (x : ℝ) => arccos (1 - 2 * x) / Real.pi / x) (Set.Ioc 0 1) ((1 - cos thetaGW) / 2)

The cutoff γ = (1 - cos thetaGW) / 2 minimizes h(x) / x on (0, 1], where h(x) = arccos (1 - 2 * x) / π [GoemansWilliamson1995, Section 3.1].