Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Core sum-bound multi-tape machine for conjunction of poly-time relations

Proved
CookLevin.polyTimeDecidable_and_sum_core_machine

by Rizwan G Mir · Sep 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

complexitycook-levindecides-in

If fff and ggg are poly-time decidable, there exists a machine MMM whose runtime is bounded by the sum of two polynomial bounds polyBound(c1,d1,n)+polyBound(c2,d2,n)\text{polyBound}(c_1, d_1, n) + \text{polyBound}(c_2, d_2, n)polyBound(c1​,d1​,n)+polyBound(c2​,d2​,n).

Formal statement
import Definitions.Def_CookLevin_Basic
import Definitions.Def_CookLevin_Satisfiability
import Definitions.Def_CookLevin_Complexity
import Definitions.Def_CookLevin_Verifier

open CookLevin

theorem CookLevin.polyTimeDecidable_and_sum_core_machine (f g : List Bool → List Bool → Bool)
    (hf : PolyTimeDecidable f) (hg : PolyTimeDecidable g) :
    ∃ (M : Machine) (k G c1 d1 c2 d2 : Nat),
      TuringMachine k G M ∧
      ∀ x w : List Bool,
        DecidesIn M k (boolsToSymbols x) (boolsToSymbols w)
          (polyBound c1 d1 (x.length + w.length) + polyBound c2 d2 (x.length + w.length))
          (f x w && g x w) := by sorry
Source
https://github.com/Rizvonium/cook_levin_lean_v1/blob/main/drafts/10_SatVerifierMachine.lean

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