Goemans–Williamson random-hyperplane rounding for MAX-2SAT #
This module formalizes the MAX-2SAT extension of Goemans–Williamson random-hyperplane rounding
[GoemansWilliamson1995, Section 7.2.1], reusing the MAX-CUT constant
Real.goemansWilliamsonConstant (α > 0.87856) and Gaussian expectation analysis from
CslibFrontier.Algorithms.Lean.MaxCut.GoemansWilliamson.
Main definitions #
Cslib.Algorithms.Lean.MaxTwoSAT.signedCutValue,Cslib.Algorithms.Lean.MaxTwoSAT.signedSdpValue: the signed-pair quadratic program(Q')and its semidefinite relaxation(P')(normalized by1 / 2to match MAX-CUT'ssdpValue).Cslib.Algorithms.Lean.MaxTwoSAT.litVector,Cslib.Algorithms.Lean.MaxTwoSAT.satSdpClause: the homogeneous vector relaxation of a literal and a clause of length at most2using a distinguished truth-anchor vertexnone : Option V.Cslib.Algorithms.Lean.MaxTwoSAT.satValue,Cslib.Algorithms.Lean.MaxTwoSAT.satSdpValue: weighted satisfied-clause objective and its relaxation.Cslib.Algorithms.Lean.MaxTwoSAT.satHyperplaneAssignment: the Boolean assignment induced by random-hyperplane rounding (xis true iffhyperplaneSide v r (some x) = hyperplaneSide v r none).
Main results #
goemansWilliamsonConstant_mul_signedSdpValue_le_integral: Theorem 7.2.1.1 of [GW95] for(P'), plusε-optimal guarantees for(Q').goemansWilliamsonConstant_mul_satSdpValue_le_integral,goemansWilliamsonConstant_mul_sub_le_integral: for any weighted collection of clauses of length at most2,ε-optimal unit vectors give expected weight at leastα (satValue σ - ε).exists_forall_goemansWilliamsonConstant_mul_sub_le,exists_isMaxOn_satSdpValue.
Limitations #
As with CslibFrontier.Algorithms.Lean.MaxCut.GoemansWilliamson, this analyzes rounding of a given
vector solution under Mathlib's exact stdGaussian; polynomial-time SDP solving, finite-precision
sampling, and the MAX-SAT LP/SDP hybrid algorithm ([GoemansWilliamson1995, Section 7.2.2]) are
not formalized.
References #
Signed-pair quadratic program (Q') and relaxation (P') #
Objective of the generalized quadratic program (Q') [GoemansWilliamson1995, Section 7.2.1],
normalized by 1 / 2 to match cutValue: a e pays when endpoints lie on opposite sides and
b e pays when endpoints lie on the same side.
Objective of the semidefinite relaxation (P') [GoemansWilliamson1995, Section 7.2.1],
normalized by 1 / 2: ∑ e, (a e * (1 - ⟪v i, v j⟫) / 2 + b e * (1 + ⟪v i, v j⟫) / 2).
At a cut's ±u vector solution, signedSdpValue equals signedCutValue.
If unit vectors v are within ε of optimal for signedSdpValue, then every Boolean cut has
value at most signedSdpValue ends a b v + ε.
signedCutValue along a random hyperplane is integrable under any finite measure.
Expected signedCutValue under random-hyperplane rounding.
Goemans–Williamson, Theorem 7.2.1.1. For nonnegative weights a and b and unit vectors
v, the expected signedCutValue under random-hyperplane rounding is at least
α * signedSdpValue ends a b v [GoemansWilliamson1995, Theorem 7.2.1.1].
The ε-optimal guarantee for (Q'): α * (signedCutValue side - ε) ≤ E[signedCutValue].
Exact-optimum guarantee for (Q').
Some hyperplane realizes the (Q') guarantee simultaneously against every cut.
Optimal unit vectors exist for signedSdpValue in every nontrivial finite-dimensional F.
Boolean MAX-2SAT relaxation and random-hyperplane rounding #
The signed vector of a literal ℓ under v : Option V → F: v (some x) for a positive
literal x and -v (some x) for a negated literal ¬x.
The semidefinite relaxation value of a clause of length at most 2
[GoemansWilliamson1995, Section 7.2.1], using none : Option V as the truth-anchor v₀:
[]has value0[ℓ]has value(1 + ⟪litVector v ℓ, v none⟫) / 2[ℓ₁, ℓ₂]has value(1 + ⟪litVector v ℓ₁, v none⟫) / 4 + (1 + ⟪litVector v ℓ₂, v none⟫) / 4 + (1 - ⟪litVector v ℓ₁, litVector v ℓ₂⟫) / 4.
Total weight of clauses in clauses satisfied by the Boolean assignment σ.
Semidefinite relaxation objective of weighted MAX-2SAT at vector assignment
v : Option V → F.
Boolean assignment induced by random-hyperplane rounding at r : F.
Homogeneous ±u vector lift of a Boolean assignment σ : V → Bool (sending anchor none to
u and some x to u if σ x else -u).
At liftAssignment u σ (for ‖u‖ = 1), satSdpValue equals satValue.
ε-optimal unit vectors for satSdpValue beat every Boolean assignment up to ε.
The weighted satisfied-clause value under random-hyperplane rounding is integrable.
Goemans–Williamson MAX-2SAT relaxation bound. For weighted clauses of length at most 2
and unit vectors v : Option V → F, the expected satisfied weight under random-hyperplane rounding
is at least α * satSdpValue clauses w v [GoemansWilliamson1995, Section 7.2.1].
Goemans–Williamson MAX-2SAT ε-optimal guarantee. If v are within ε of optimal for
satSdpValue, then for every Boolean assignment σ, the expected rounded satisfied weight is at
least α * (satValue clauses w σ - ε) [GoemansWilliamson1995, Section 7.2.1].
Goemans–Williamson MAX-2SAT exact-optimum guarantee.
Some hyperplane induces a Boolean assignment achieving the (α, ε) MAX-2SAT bound against
every assignment σ.
Optimal unit vectors exist for satSdpValue in every nontrivial finite-dimensional F.