Brakensiek–Huang–Potechin–Zwick: ratio ρ ≥ 0.908 for MAX NAE-3SAT
OpenPNPMission.bhpz_algorithmThere are a rational and a function on bit strings, computable in polynomial time, such that for every MAX NAE-3SAT instance on distinct variables (given by its encoding), the assignment read from satisfies at least clauses. This is the cited result of Brakensiek, Huang, Potechin and Zwick (2025), used in the paper without proof; the paper's value is .
import Mathlib import Definitions.Def_PNP_ThmMain_Defs import Definitions.Def_PNPMission_Complexity import Definitions.Def_PNPMission_Instances open PNP.Gadget PNP.Semantics open PNPMission
theorem PNPMission.bhpz_algorithm :
∃ (ρ : ℚ) (A : List Bool → List Bool), 908 / 1000 ≤ ρ ∧ PolyTimeComputable A ∧
∀ (m : ℕ) (Φ : Fin m → Clause ℕ), (∀ i, Distinct (Φ i)) →
∀ o : ℕ, NaeOpt Φ o →
ρ * (o : ℚ) ≤ (naeVal Φ (bitsToAssignment (A (instanceBits (List.ofFn Φ)))) : ℚ) := by sorryRead-back
What the Lean code literally says, in plain math · claude-sonnet-5-5 (independent blind auditor)
The theorem asserts the existence of a rational and a function such that:
- (no upper bound stated).
- is polynomial-time computable: some Mathlib
TM2ComputableInPolyTimemachine computes it, with identity encodings of bit strings over . - For every and every family of clauses over with each clause on three pairwise distinct variables (signs unconstrained, clauses may repeat or share variables), and every that is the optimum of (the greatest value of over ),
in , where is the -th bit of for below its length and otherwise.
The encoding writes a natural number as its binary digits least significant first, each digit as the two bits , ending with ; a literal as , the code of , then ; a clause as its three literal codes followed by ; an instance as the concatenation of its clause codes. and are fixed before , and receives only the bit string.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.