Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

p. 367, proof of THEOREM 2, part (ii) — a dominating edge-set with |F| = 3n gives a satisfying assignment τ

Proved
EdgeDomSets.NPC.part_ii

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

edge-dominating-setp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1satisfiability

Let φ\varphiφ be a SAT-3-restricted formula with nnn variables and FFF an edge dominating set of GGG with ∣F∣=3n|F|=3n∣F∣=3n. Then FFF contains neither (ai,ci)(a_i,c_i)(ai​,ci​) nor (bi,ci)(b_i,c_i)(bi​,ci​), so it contains either ((ci,j3),ci)((c_i,j_3),c_i)((ci​,j3​),ci​) or both ((ai,j1),ai)((a_i,j_1),a_i)((ai​,j1​),ai​) and ((bi,j2),bi)((b_i,j_2),b_i)((bi​,j2​),bi​). Let τ\tauτ set xi=1x_i=1xi​=1 in the first case and xi=0x_i=0xi​=0 in the second. Then

τ satisfies all clauses C1,…,Cp.\tau\ \text{satisfies all clauses } C_1,\dots,C_p.τ satisfies all clauses C1​,…,Cp​.

With part (i), φ\varphiφ is satisfiable if and only if GGG has an edge dominating set of size 3n3n3n.

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 assignment is assignOfEdges φ F: xv=1x_v=1xv​=1 iff FFF contains the edge ((ci,j3),ci)((c_i,j_3),c_i)((ci​,j3​),ci​) at the negated occurrence of xvx_vxv​, and xv=0x_v=0xv​=0 otherwise.

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
  • encoding: τ: x_i = 1 if F has ((c_i, j3), c_i), x_i = 0 if F has both ((a_i, j1), a_i) and ((b_i, j2), b_i) → x_v = 1 iff F has ((c_i, j3), c_i), x_v = 0 otherwise; reason: under the hypotheses exactly one of the two cases holds, so the assignments agree on every variable of φ
  • 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 part_ii (φ : CookLevin.Formula) (hφ : IsSat3Restricted φ)
    (F : Finset (Sym2 (GV φ))) (hF : IsEdgeDominating (G φ) F)
    (hcard : F.card = 3 * numVars φ) :
    CookLevin.Satisfies (assignOfEdges φ F) φ := by sorry

end EdgeDomSets.NPC
Source
Yannakakis, Gavril, Edge dominating sets in graphs, SIAM J. Appl. Math. 38(3) (1980) 364–372, p. 367, proof of THEOREM 2, part (ii)
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