Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Cook–Levin machines: polynomial-time initialization of all blank work tapes

Proved
CookLevin.blankWorkTapeEmitter_of_unary_width

by Robertboy18 · Sep 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

complexitycook-levinloopsturing-machines

Polynomial-time unary tableau width suffices to emit all blank work-tape initialization clauses, in tape and position order, including machines with fewer than three tapes. The proof specializes the general choice-cell emitter to zero choice bound and uses polynomial-time formula concatenation.

Preamble
import Definitions.Def_CookLevin_Reduction
import Definitions.Def_CookLevin_Complexity
open CookLevin
set_option autoImplicit false
Formal statement
theorem CookLevin.blankWorkTapeEmitter_of_unary_width (k G Q : Nat) (w : List Bool → Nat)
    (hw : IsPolyTimeComputable (fun x => List.replicate (w x) true)) :
    IsPolyTimeComputable (fun x => encodeFormula ((List.range (k - 2)).flatMap fun j =>
      (List.range (w x + 1)).map fun p =>
        [Literal.Pos ((⟨k, G, Q, w x⟩ : Shape).cellVar 0 (j + 2) p (contents [] p))])) := by sorry
Source
Input-dependent initialization for the Cook–Levin reduction.

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