Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

p. 367–368, proof of THEOREM 2 — G* is bipartite of maximum degree 3 and has an EDS of size ≤ 3n + 4q iff φ is satisfiable (corrected: H replaces only one-sign 3-literal clauses; threshold 3n + 4q)

Proved
EdgeDomSets.NPC.Gstar_props

by mikedeng1 · Oct 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

edge-dominating-setgadgetnp-completenessp2o-batch-pfp2ap2o-correctedp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1

Let φ\varphiφ be a SAT-3-restricted formula with nnn variables, and let G∗G^*G∗ be obtained from GGG by replacing the nodes dj,dj′d_j,d'_jdj​,dj′​ of every 3-literal clause whose literals all have the same sign by a copy of the gadget HHH, the three edges between the literal vertices and djd_jdj​ (or dj′d'_jdj′​) now attached to x,y,zx,y,zx,y,z. Let qqq be the number of replaced clauses. Then

  1. G∗G^*G∗ is bipartite;
  2. every vertex of G∗G^*G∗ has degree at most 3;
φ is satisfiable  ⟺  G∗ has an edge dominating set with at most 3n+4q edges.\varphi\ \text{is satisfiable}\iff G^*\ \text{has an edge dominating set with at most } 3n+4q \text{ edges}.φ is satisfiable⟺G∗ has an edge dominating set with at most 3n+4q edges.

This is the reduction of THEOREM 2: it maps SAT-3-restricted formulas to instances of the edge dominating set problem on bipartite graphs of maximum degree 3.

Formalization Note Clause and position indices are 0-based (Fin). The vertices of GGG are indexed by literal occurrences: the occurrence ooo has a literal vertex lit o (the paper's (ai,j1)(a_i,j_1)(ai​,j1​), (bi,j2)(b_i,j_2)(bi​,j2​) or (ci,j3)(c_i,j_3)(ci​,j3​)), a pendant pend o (the primed copy) and a variable-side vertex varNode o (aia_iai​ or bib_ibi​ for the two positive occurrences of xix_ixi​, cic_ici​ for the negated one); dNode j, dNode' j are djd_jdj​, dj′d'_jdj′​. The literal at position rrr of a replaced clause is attached to corner x,y,zx,y,zx,y,z for r=0,1,2r=0,1,2r=0,1,2. Copies of HHH for unreplaced clauses and the deleted dj,dj′d_j,d'_jdj​,dj′​ are isolated vertices of the vertex type.

Differences from the source:

  • encoding: vertices a_i, b_i, c_i, (a_i, j1), (b_i, j2), (c_i, j3), their primed copies, d_j, d'_j, with 1-based indices → one literal vertex, one pendant vertex and one variable-side vertex per literal occurrence (clause index, position), plus d_j, d'_j, all 0-based (Fin); reason: under SAT-3-restricted the three occurrences of x_i are exactly x_i ∈ C_j1, x_i ∈ C_j2, x̄_i ∈ C_j3, so the vertices and edges are the printed ones
  • correction: replace d_i, d'_i by H for every clause with a degree-4 node, stated as every 3-literal clause → replace exactly the 3-literal clauses whose literals have one sign; reason: positive literal vertices lie in T and negated ones in S while x, y, z lie in one class of H, so a mixed clause creates an odd cycle; counterexample: C1 = (x1 ∨ x2 ∨ x̄1), C2 = (x1 ∨ x2), C3 = (x̄2) gives the 9-cycle a_1 – (a_1,1) – x – b1 – b2 – b3 – z – (c_1,1) – c_1 – a_1; mixed 3-literal clauses have no degree-4 node
  • reading: properties of G* (bipartite, maximum degree 3) and its threshold are not printed → Colorable 2, every degree ≤ 3, threshold 3n + 4q; reason: the gadget properties ("four more edges from H", "four edges from H still suffice") give 3n + 4q; checked by ILP on 300 random formulas
  • encoding: the three edges are attached to x, y, z → the literal at position r = 0, 1, 2 of the clause goes to x, y, z; unused H copies and the deleted d_j, d'_j are isolated vertices; reason: isolated vertices change no edge, degree bound, colouring or edge dominating set; the paper fixes no order
  • generalization: a set of clauses with at most three literals per clause, every variable occurring two times and its negation once → IsSat3Restricted φ on a list of literal lists: occurrences counted with multiplicity, so a clause may repeat a literal or hold x and x̄, clauses may repeat, and empty clauses are allowed; reason: every instance of the printed problem satisfies IsSat3Restricted, so the statement specializes to the source's claim on each of them; the construction and the argument are unchanged on the extra formulas (paper.md reading 4)
Preamble
import Mathlib
import Definitions.Def_EdgeDomSets_NPC_Construction
Formal statement
namespace EdgeDomSets.NPC

theorem Gstar_props (φ : CookLevin.Formula) (hφ : IsSat3Restricted φ) :
    (Gstar φ).Colorable 2 ∧ MaxDegreeLE (Gstar φ) 3 ∧
      (CookLevin.Satisfiable φ ↔
        ∃ F : Finset (Sym2 (GstarV φ)), IsEdgeDominating (Gstar φ) F ∧
          F.card ≤ 3 * numVars φ + 4 * numReplaced φ) := by sorry

end EdgeDomSets.NPC
Source
Yannakakis, Gavril, Edge dominating sets in graphs, SIAM J. Appl. Math. 38(3) (1980) 364–372, pp. 367–368, proof of THEOREM 2 (substitution of H for d_i, d'_i)
Human review
  • Endorsed by Shuze Chen · Oct 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 24, 2026

    Confirmed by the mission captain (proposal self-audit).

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