Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Optional: P is a proper subset of EXPTIME

Open
PvsNP.P_strictSubset_EXPTIME

by alexcarter · Sep 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

complexity-theoryformalizationp-vs-np

P is a proper subset of deterministic exponential time, using the same TM2 framework and bounds two raised to a natural-coefficient polynomial in input length. This is a later sanity check, not a claim about NP.

Status: Known mathematics / implementation obligation awaiting formal proof.

Formal statement
import Definitions.Def_PvsNPFrontier

namespace PvsNP
theorem P_strictSubset_EXPTIME : P ⊂ EXPTIME := by sorry
end PvsNP
Source
Arora–Barak, Computational Complexity: A Modern Approach (2009); inspected author draft January 8, 2007, Definitions 1.4, 1.20, 2.1, 2.7, Claim 2.3, Theorem 2.6; https://theory.cs.princeton.edu/complexity/book.pdf; deterministic time hierarchy, Chapter 3; Sipser second edition Chapter 9. Exact-model simulation/hierarchy proof remains missing.
Read-back

What the Lean code literally says, in plain math · gpt-6-astra

The class PPP is a proper subset of EXPTIMEEXPTIMEEXPTIME: every language in PPP lies in EXPTIMEEXPTIMEEXPTIME, and the reverse inclusion fails, equivalently some language in EXPTIMEEXPTIMEEXPTIME does not belong to PPP. No hypotheses are supplied, and the time-bound definitions are exactly those expanded here. Here B={false,true}B=\{\mathrm{false},\mathrm{true}\}B={false,true}, B∗B^*B∗ is the set of all finite Boolean lists, including the empty list, and ∣w∣|w|∣w∣ is list length. The set PPP consists exactly of languages L⊆B∗L\subseteq B^*L⊆B∗ for which there is a Boolean function χ:B∗→B\chi:B^*\to Bχ:B∗→B satisfying D(χ)D(\chi)D(χ) and ∀w∈B∗, w∈L ⟺ χ(w)=true\forall w\in B^*,\ w\in L\ \Longleftrightarrow\ \chi(w)=\mathrm{true}∀w∈B∗, w∈L ⟺ χ(w)=true. Write D(χ)D(\chi)D(χ) for existence of such a machine and a polynomial p∈N[X]p\in\mathbb N[X]p∈N[X] that, for every w∈B∗w\in B^*w∈B∗, compute the singleton output [χ(w)][\chi(w)][χ(w)] from input www in at most p(∣w∣)p(|w|)p(∣w∣) steps. The set EXPTIMEEXPTIMEEXPTIME consists exactly of languages L⊆B∗L\subseteq B^*L⊆B∗ for which there are a Boolean function χ:B∗→B\chi:B^*\to Bχ:B∗→B, a machine with a natural-valued time bound t:N→Nt:\mathbb N\to\mathbb Nt:N→N computing [χ(w)][\chi(w)][χ(w)] from www within t(∣w∣)t(|w|)t(∣w∣) steps for every www, and p∈N[X]p\in\mathbb N[X]p∈N[X] with ∀n∈N, t(n)≤2p(n)\forall n\in\mathbb N,\ t(n)\le 2^{p(n)}∀n∈N, t(n)≤2p(n), such that ∀w, w∈L ⟺ χ(w)=true\forall w,\ w\in L\ \Longleftrightarrow\ \chi(w)=\mathrm{true}∀w, w∈L ⟺ χ(w)=true. The bound includes n=0n=0n=0. A machine in these assertions is a Mathlib TM2 stack machine with finitely many stack indices, instruction labels, and control states, a finite input-stack alphabet, designated input and output stacks, a program, and initial label and control state; its other stack alphabets need not be finite. Input and output alphabet bijections transport the specified encoded lists to the corresponding stack alphabets. Computation starts with only the input stack populated, and reaches a halted configuration with the specified output on the output stack, all other stacks empty, and the control state reset to its initial value. Time counts executions of whole TM2 statements, each of which may contain several stack operations. The supplied body is admitted with sorry; no proof of this assertion is supplied there.

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me