Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

p. 367, proof of THEOREM 2 — the bipartition (S, T) of the graph G

Proved
EdgeDomSets.NPC.G_bipartition

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

bipartite-graphedge-dominating-setp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1

Let φ=C1∧⋯∧Cp\varphi=C_1\wedge\dots\wedge C_pφ=C1​∧⋯∧Cp​ be a SAT-3-restricted formula and GGG the graph of the proof of THEOREM 2. The printed partition

S={ai,bi,(ai,j1)′,(bi,j2)′,(ci,j3)}∪{di},T={ci,(ai,j1),(bi,j2),(ci,j3)′}∪{di′}S=\{a_i,b_i,(a_i,j_1)',(b_i,j_2)',(c_i,j_3)\}\cup\{d_i\},\qquad T=\{c_i,(a_i,j_1),(b_i,j_2),(c_i,j_3)'\}\cup\{d'_i\}S={ai​,bi​,(ai​,j1​)′,(bi​,j2​)′,(ci​,j3​)}∪{di​},T={ci​,(ai​,j1​),(bi​,j2​),(ci​,j3​)′}∪{di′​}

is a bipartition of GGG: every edge of GGG joins a vertex of SSS to a vertex of TTT. In particular GGG is bipartite.

This is the first step towards the bipartiteness of the graph G∗G^*G∗ produced by the reduction.

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 side of a vertex is the Boolean inS (true for SSS).

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
  • 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 G_bipartition (φ : CookLevin.Formula) (hφ : IsSat3Restricted φ) :
    (∀ a b : GV φ, (G φ).Adj a b → inS a ≠ inS b) ∧ (G φ).Colorable 2 := 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 (the bipartition (S, T))
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