Documentation

CslibFrontier.Algorithms.Lean.MaxCut.GoemansWilliamsonCurve

Goemans–Williamson Tradeoff Curve for MAX-CUT #

This module formalizes the large-cut approximation curve of Goemans and Williamson [GoemansWilliamson1995, Section 3.1, Theorem 3.1.1] for random-hyperplane rounding of supplied unit-vector solutions to the MAX-CUT semidefinite relaxation.

Source mapping #

In [GoemansWilliamson1995, Section 3.1], for nonnegative edge weights with positive total weight W_tot = ∑ e, w e, the paper defines h(x) = arccos (1 - 2 * x) / π, lets γ ≈ 0.84458 be the minimizer of h(x) / x on (0, 1], and sets A = sdpValue ends w v / W_tot (here sdpFraction ends w v). In CslibFrontier.Foundations.Analysis.SpecialFunctions.GoemansWilliamson, Real.thetaGW ∈ (π / 2, 3π / 4) is the unique solution in (0, π) of tan (θ / 2) = θ, where the tangent in Real.goemansWilliamson_tangent_ineq passes through the origin with slope Real.goemansWilliamsonConstant; this yields γ = (1 - cos Real.thetaGW) / 2 as the minimizer of h(x) / x on (0, 1] with minimum value h(γ) / γ = Real.goemansWilliamsonConstant (Real.isMinOn_arccos_one_sub_two_mul_div, Real.arccos_one_sub_two_mul_div_eq_goemansWilliamsonConstant).

Scope and limitations #

As in CslibFrontier.Algorithms.Lean.MaxCut.GoemansWilliamson, every bound here analyzes exact standard-Gaussian (stdGaussian F) random-hyperplane rounding of supplied unit vectors v. In goemansWilliamson_curve_of_maxCutOpt and its corollaries, exact SDP optimality IsMaxOn (sdpValue ends w) {v' | ∀ i, ‖v' i‖ = 1} v is taken as a hypothesis; solving the semidefinite program (SD) in polynomial time yields only additive ε-optimality (h(A) / A - ε in [GoemansWilliamson1995, Section 3.1 and Section 4.1]) and is not formalized here.

Main definitions #

Main results #

References #

noncomputable def Cslib.Algorithms.Lean.MaxCut.cutFraction {ι : Type u_1} {V : Type u_2} [Fintype ι] (ends : ι → V × V) (w : ι → ℝ) (side : V → Bool) :

Normalized cut fraction of a weighted multigraph (ends, w) under a bipartition side.

noncomputable def Cslib.Algorithms.Lean.MaxCut.maxCutOpt {ι : Type u_1} {V : Type u_2} [Fintype ι] (ends : ι → V × V) (w : ι → ℝ) :

Optimal Max-Cut fraction Opt(G) of a weighted multigraph.

noncomputable def Cslib.Algorithms.Lean.MaxCut.sdpFraction {ι : Type u_1} {V : Type u_2} {F : Type u_3} [Fintype ι] [NormedAddCommGroup F] [InnerProductSpace ℝ F] (ends : ι → V × V) (w : ι → ℝ) (v : V → F) :

Normalized Goemans–Williamson SDP objective A [GoemansWilliamson1995, Section 3.1] for a vector assignment v : V → F.

theorem Cslib.Algorithms.Lean.MaxCut.cutFraction_le_one {ι : Type u_1} {V : Type u_2} [Fintype ι] (ends : ι → V × V) {w : ι → ℝ} (hw : ∀ (e : ι), 0 ≤ w e) (side : V → Bool) :
cutFraction ends w side ≤ 1

Any bipartition cuts at most fraction 1 of the total weight when weights are nonnegative.

theorem Cslib.Algorithms.Lean.MaxCut.cutFraction_le_maxCutOpt {ι : Type u_1} {V : Type u_2} [Fintype ι] (ends : ι → V × V) {w : ι → ℝ} (hw : ∀ (e : ι), 0 ≤ w e) (side : V → Bool) :
cutFraction ends w side ≤ maxCutOpt ends w

For any finite weighted multigraph with nonnegative weights, cutFraction is bounded above by maxCutOpt.

theorem Cslib.Algorithms.Lean.MaxCut.cutFraction_eq_one_of_forall_ne {ι : Type u_1} {V : Type u_2} [Fintype ι] (ends : ι → V × V) {w : ι → ℝ} (hsum : 0 < ∑ e : ι, w e) {side : V → Bool} (hside : ∀ (e : ι), side (ends e).1 ≠ side (ends e).2) :
cutFraction ends w side = 1

A proper 2-coloring cuts fraction 1 of the edges.

theorem Cslib.Algorithms.Lean.MaxCut.goemansWilliamson_curve_guarantee {ι : Type u_1} {V : Type u_2} {F : Type u_3} [Fintype ι] [NormedAddCommGroup F] [InnerProductSpace ℝ F] [FiniteDimensional ℝ F] [MeasurableSpace F] [BorelSpace F] (ends : ι → V × V) {w : ι → ℝ} (hw : ∀ (e : ι), 0 ≤ w e) (hsum : 0 < ∑ e : ι, w e) {v : V → F} (hv : ∀ (i : V), ‖v i‖ = 1) {θ : ℝ} (hθ_lo : Real.thetaGW ≤ θ) (hθ_hi : θ ≤ Real.pi) (hsdp : 1 / 2 - 1 / 2 * Real.cos θ ≤ sdpFraction ends w v) :

Goemans–Williamson approximation curve (angle-parameterized form of Theorem 3.1.1): for every θ ∈ [Real.thetaGW, π] and any supplied unit vectors v : V → F satisfying 1 / 2 - 1 / 2 * cos θ ≤ sdpFraction ends w v, exact Gaussian random-hyperplane rounding cuts at least an expected θ / π fraction of the edges [GoemansWilliamson1995, Section 3.1, Theorem 3.1.1].

Under the §3.1 notation h(x) = arccos (1 - 2 * x) / π and cutoff γ = (1 - cos Real.thetaGW) / 2, the angle range θ ∈ [Real.thetaGW, π] corresponds to SDP fraction thresholds (1 - cos θ) / 2 ∈ [γ, 1].

theorem Cslib.Algorithms.Lean.MaxCut.goemansWilliamson_large_cut_guarantee {ι : Type u_1} {V : Type u_2} {F : Type u_3} [Fintype ι] [NormedAddCommGroup F] [InnerProductSpace ℝ F] [FiniteDimensional ℝ F] [MeasurableSpace F] [BorelSpace F] (ends : ι → V × V) {w : ι → ℝ} (hw : ∀ (e : ι), 0 ≤ w e) (hsum : 0 < ∑ e : ι, w e) {v : V → F} (hv : ∀ (i : V), ‖v i‖ = 1) (hsdp : (1 - Real.cos Real.thetaGW) / 2 ≤ sdpFraction ends w v) :

Goemans–Williamson, Theorem 3.1.1. For nonnegative edge weights with positive total weight and supplied unit vectors v : V → F whose normalized SDP value A = sdpFraction ends w v satisfies A ≥ γ = (1 - cos Real.thetaGW) / 2, exact Gaussian random-hyperplane rounding achieves expected cut weight at least (h(A) / A) * sdpValue ends w v, where h(x) = arccos (1 - 2 * x) / π [GoemansWilliamson1995, Section 3.1, Theorem 3.1.1].

By Real.isMinOn_arccos_one_sub_two_mul_div and Real.arccos_one_sub_two_mul_div_eq_goemansWilliamsonConstant, γ minimizes h(x) / x on (0, 1] with minimum value Real.goemansWilliamsonConstant, so h(A) / A ≥ α on [γ, 1].

theorem Cslib.Algorithms.Lean.MaxCut.goemansWilliamson_curve_of_maxCutOpt {ι : Type u_1} {V : Type u_2} {F : Type u_3} [Fintype ι] [NormedAddCommGroup F] [InnerProductSpace ℝ F] [FiniteDimensional ℝ F] [MeasurableSpace F] [BorelSpace F] (ends : ι → V × V) {w : ι → ℝ} (hw : ∀ (e : ι), 0 ≤ w e) (hsum : 0 < ∑ e : ι, w e) {v : V → F} (hv : ∀ (i : V), ‖v i‖ = 1) (hopt : IsMaxOn (sdpValue ends w) {v' : V → F | ∀ (i : V), ‖v' i‖ = 1} v) {θ : ℝ} (hθ_lo : Real.thetaGW ≤ θ) (hθ_hi : θ ≤ Real.pi) (hcut : 1 / 2 - 1 / 2 * Real.cos θ ≤ maxCutOpt ends w) :

Tradeoff curve from maxCutOpt for exact SDP-optimal vectors: for supplied unit vectors v : V → F satisfying the exact SDP optimality hypothesis hopt and θ ∈ [Real.thetaGW, π] with 1 / 2 - 1 / 2 * cos θ ≤ maxCutOpt ends w, exact Gaussian random-hyperplane rounding achieves expected cut fraction at least θ / π [GoemansWilliamson1995, Section 3.1, Theorem 3.1.1].

Exact SDP optimality of v is a hypothesis here; solving the SDP relaxation in polynomial time yields only additive ε-optimality [GoemansWilliamson1995, Section 4.1].

theorem Cslib.Algorithms.Lean.MaxCut.goemansWilliamson_three_fourths {ι : Type u_1} {V : Type u_2} {F : Type u_3} [Fintype ι] [NormedAddCommGroup F] [InnerProductSpace ℝ F] [FiniteDimensional ℝ F] [MeasurableSpace F] [BorelSpace F] (ends : ι → V × V) {w : ι → ℝ} (hw : ∀ (e : ι), 0 ≤ w e) (hsum : 0 < ∑ e : ι, w e) {v : V → F} (hv : ∀ (i : V), ‖v i‖ = 1) (hopt : IsMaxOn (sdpValue ends w) {v' : V → F | ∀ (i : V), ‖v' i‖ = 1} v) (hcut : 1 / 2 + 1 / (2 * √2) ≤ maxCutOpt ends w) :

Explicit 3 / 4 regime (at θ = 3π / 4): for supplied unit vectors v : V → F satisfying the exact SDP optimality hypothesis hopt on an instance with 1 / 2 + 1 / (2 * √2) ≤ maxCutOpt ends w, exact Gaussian random-hyperplane rounding achieves expected cut fraction at least 3 / 4. Exact SDP optimality is a hypothesis here [GoemansWilliamson1995, Section 3.1 and Section 4.1].

theorem Cslib.Algorithms.Lean.MaxCut.goemansWilliamson_four_fifths {ι : Type u_1} {V : Type u_2} {F : Type u_3} [Fintype ι] [NormedAddCommGroup F] [InnerProductSpace ℝ F] [FiniteDimensional ℝ F] [MeasurableSpace F] [BorelSpace F] (ends : ι → V × V) {w : ι → ℝ} (hw : ∀ (e : ι), 0 ≤ w e) (hsum : 0 < ∑ e : ι, w e) {v : V → F} (hv : ∀ (i : V), ‖v i‖ = 1) (hopt : IsMaxOn (sdpValue ends w) {v' : V → F | ∀ (i : V), ‖v' i‖ = 1} v) (hcut : 5 / 8 + √5 / 8 ≤ maxCutOpt ends w) :

Explicit 4 / 5 regime (at θ = 4π / 5): for supplied unit vectors v : V → F satisfying the exact SDP optimality hypothesis hopt on an instance with 5 / 8 + √5 / 8 ≤ maxCutOpt ends w, exact Gaussian random-hyperplane rounding achieves expected cut fraction at least 4 / 5. Exact SDP optimality is a hypothesis here [GoemansWilliamson1995, Section 3.1 and Section 4.1].

theorem Cslib.Algorithms.Lean.MaxCut.goemansWilliamson_near_bipartite {ι : Type u_1} {V : Type u_2} {F : Type u_3} [Fintype ι] [NormedAddCommGroup F] [InnerProductSpace ℝ F] [FiniteDimensional ℝ F] [MeasurableSpace F] [BorelSpace F] (ends : ι → V × V) {w : ι → ℝ} (hw : ∀ (e : ι), 0 ≤ w e) (hsum : 0 < ∑ e : ι, w e) {v : V → F} (hv : ∀ (i : V), ‖v i‖ = 1) (hopt : IsMaxOn (sdpValue ends w) {v' : V → F | ∀ (i : V), ‖v' i‖ = 1} v) {ε : ℝ} (hε0 : 0 ≤ ε) (hε_hi : ε ≤ (1 + Real.cos Real.thetaGW) / 2) (hcut : 1 - ε ≤ maxCutOpt ends w) :

Near-bipartite regime (Opt(G) ≥ 1 - ε): for 0 ≤ ε ≤ 1 - γ = (1 + cos Real.thetaGW) / 2 and supplied unit vectors v : V → F satisfying the exact SDP optimality hypothesis hopt on an instance with 1 - ε ≤ maxCutOpt ends w, exact Gaussian random-hyperplane rounding achieves expected cut fraction at least 1 - (2 / π) * arcsin √ε. Exact SDP optimality is a hypothesis here [GoemansWilliamson1995, Section 3.1 and Section 4.1].

Little-o asymptotic expansion: as ε → 0⁺, 1 - (2 / π) * arcsin √ε = 1 - (2 / π) * √ε - o(√ε).