Draft — mutable and not usable as a dependency; its citation marks the draft state.

Lax434930.NondeterministicPolynomialSpace

The complexity class NPSPACE

concepts/Lax434930/NondeterministicPolynomialSpace.lean · lax-434930

definition

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Concept map

    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A

    Definition

    A binary language belongs to NPSPACE\mathrm{NPSPACE} if one nondeterministic Turing machine decides membership using at most p(n)p(n) work cells on every branch on inputs of length nn, for some polynomial pN[X]p\in\mathbb{N}[X]. All branches halt; at least one accepts precisely when the input belongs to the language. The input tape is read-only and excluded from work space.

    Lean source view on GitHub

    1import Lax434930.SpaceBounds
    2
    3/-!
    4---
    5title: The complexity class NPSPACE
    6type: definition
    7---
    8A binary language belongs to NPSPACE\mathrm{NPSPACE} if one nondeterministic
    9Turing machine decides membership using at most p(n)p(n) work cells on
    10every branch on inputs of length nn, for some polynomial
    11pN[X]p\in\mathbb{N}[X]. All branches halt; at least one accepts precisely
    12when the input belongs to the language. The input tape is read-only and
    13excluded from work space.
    14-/
    15
    16namespace Lax434930.NondeterministicPolynomialSpace
    17
    18open PolynomialTime SpaceBounds
    19
    20/-- Nondeterministic polynomial work space. -/
    21def NPSPACE : Set Language :=
    22 {A | ∃ p : Polynomial ℕ, A ∈ NSPACE p.eval}
    23
    24end Lax434930.NondeterministicPolynomialSpace
    25

    Community review

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above; your ORCID profile must share a public name.

    0 comments

    Loading discussion…