Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of LEMMA 1, p. 333 — even-odd partition is in NP

Proved
GTWSched.NPC.evenOdd_mem_NP

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

complexitynp-completenessp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1partition

The even-odd partition problem belongs to NP: the language of binary codes of even-odd partition yes-instances (positive, strictly increasing integers x1<⋯<x2nx_1<\dots<x_{2n}x1​<⋯<x2n​, n≥1n\ge1n≥1, admitting a partition X1,X2X_1,X_2X1​,X2​ of equal sums with exactly one of x2i−1,x2ix_{2i-1},x_{2i}x2i−1​,x2i​ in X1X_1X1​ for every iii) is in

NP.\mathrm{NP}.NP.

This is the membership half of LEMMA 1.

Formalization Note NP is the published CookPvsNP.NP (one-tape Turing machines, polynomial checking relation); the language is evenOddLang over the published alphabet BSym.

Preamble
import Mathlib
import Definitions.Def_CookPvsNP_defs
import Definitions.Def_ProjSchedTW_Complexity_Encoding
import Definitions.Def_GTWSched_NPC_Schedules
import Definitions.Def_GTWSched_NPC_Problems
Formal statement
namespace GTWSched.NPC

open CookPvsNP ProjSchedTW.Complexity

/-- Proof of LEMMA 1, p. 333: the even-odd partition problem is in NP. -/
theorem evenOdd_mem_NP : evenOddLang ∈ NP BSym := by sorry

end GTWSched.NPC
Source
Garey, Tarjan & Wilfong, One-Processor Scheduling with Symmetric Earliness and Tardiness Penalties, Math. Oper. Res. 13 (1988), p. 333, proof of LEMMA 1
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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