Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Papadimitriou–Yannakakis bounded-degree reduction to 3CNF-5

Open
SetCoverThreshold.SetCover.exists_formula5_reduction

by kmehltretter82 · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

Papadimitriou–Yannakakis degree reduction from 3CNF-BBB to 3CNF-5 (Formula5), preserving satisfiability and the constant-factor unsatisfiability gap in polynomial time: for any variable bound BBB and unsatisfiability gap ε0>0\varepsilon_0 > 0ε0​>0, there exists ε>0\varepsilon > 0ε>0 and a polynomial-time reduction ggg mapping 3CNF-BBB formulas to 3CNF-5 formulas such that satisfiable formulas remain satisfiable, and formulas where at most a (1−ε0)(1-\varepsilon_0)(1−ε0​) fraction of clauses can be satisfied are mapped to formulas where at most a (1−ε)(1-\varepsilon)(1−ε) fraction can be satisfied (Papadimitriou and Yannakakis 1991; Feige 1998, Proposition 2.1.2).

Preamble
import Mathlib
import Definitions.Def_CookPvsNP_defs
import Definitions.Def_SetCoverThreshold_SetCover_Complexity
import Definitions.Def_SetCoverThreshold_SetCover_Formula
Formal statement
namespace SetCoverThreshold.SetCover

/-- Papadimitriou–Yannakakis degree reduction from 3CNF-`B` to 3CNF-5 (`Formula5`),
preserving satisfiability and the constant-factor unsatisfiability gap in polynomial time. -/
theorem exists_formula5_reduction (B : ℕ) (ε₀ : ℝ) (hε₀ : 0 < ε₀) :
    ∃ (ε : ℝ) (g : CookPvsNP.CNF → Formula5)
      (g_enc : List CookPvsNP.SatSym → List CookPvsNP.SatSym),
      0 < ε ∧
      CookPvsNP.PolyTimeComputable g_enc ∧
      (∀ F, (Is3CNFB B F ∧ F.Satisfiable) ∨ (Is3CNFB B F ∧ AtMostFracSat (1 - ε₀) F) →
        CookPvsNP.encodeCNF (g F).toCNF = g_enc (CookPvsNP.encodeCNF F)) ∧
      (∀ F, Is3CNFB B F ∧ F.Satisfiable → (g F).toCNF.Satisfiable) ∧
      (∀ F, Is3CNFB B F ∧ AtMostFracSat (1 - ε₀) F → AtMostFracSat (1 - ε) (g F).toCNF) := by
  sorry

end SetCoverThreshold.SetCover
Source
Papadimitriou and Yannakakis 1991; Feige 1998, A Threshold of ln n for Approximating Set Cover, J. ACM 45(4): 634–652, Proposition 2.1.2

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me