Goemans–Williamson rounding for the MaxTwoSAT problem #
This module connects the Goemans–Williamson MAX-2SAT analysis in
CslibFrontier.Algorithms.Lean.MaxTwoSAT.GoemansWilliamson [GW95] to the
complexity-theoretic Cslib.Complexity.MaxTwoSAT problem on MaxTwoSATInstance, whose
satisfied-clause count is φ.countP (Clause.eval σ). Indexing clauses by Fin φ.length,
satValue equals (φ.countP (Clause.eval σ) : ℝ) (satValue_eq_countP), and the ε-optimal
rounding guarantee restates directly for MaxTwoSAT.
Main results #
Cslib.Algorithms.Lean.MaxTwoSAT.satValue_eq_countP:satValuewith unit weights on a formulaφ : CNF Vis the number of satisfied clauses(φ.countP (Clause.eval σ) : ℝ).Cslib.Algorithms.Lean.MaxTwoSAT.goemansWilliamsonConstant_mul_countP_le_integral: the Goemans–Williamson guarantee forCNF.countP.Cslib.Algorithms.Lean.MaxTwoSAT.goemansWilliamsonConstant_mul_target_le_integral_of_mem: for any⟨φ, K⟩ ∈ Cslib.Complexity.MaxTwoSATandε-optimal unit vectors, the expected number of satisfied clauses under random-hyperplane rounding is at leastα ((K : ℝ) - ε).
References #
satValue counts satisfied clauses. For any φ : CNF V indexed by Fin φ.length with
unit weights, satValue is (φ.countP (Clause.eval σ) : ℝ).
Goemans–Williamson guarantee for CNF.countP. Given φ : CNF V with all clauses of length
at most 2 and ε-optimal unit vectors v : Option V → F, the expected satisfied-clause count is
at least α ((φ.countP (Clause.eval σ) : ℝ) - ε) for every assignment σ.
Goemans–Williamson guarantee for Cslib.Complexity.MaxTwoSAT. If ⟨φ, K⟩ ∈ MaxTwoSAT and
unit vectors v are within ε of optimal for satSdpValue, then the expected number of clauses
satisfied by satHyperplaneAssignment v r is at least α ((K : ℝ) - ε).