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

Lax434930.NondeterministicLogarithmicSpace

The complexity class NL

concepts/Lax434930/NondeterministicLogarithmicSpace.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 NL\mathrm{NL} if a nondeterministic Turing machine decides membership using O(logn)O(\log n) work space and a separate read-only input tape. Every branch halts and respects the space bound; membership means that at least one branch accepts. The bound is clog2(n+2)c\lfloor\log_2(n+2)\rfloor for one positive constant cc.

    Lean source view on GitHub

    1import Lax434930.SpaceBounds
    2
    3/-!
    4---
    5title: The complexity class NL
    6type: definition
    7---
    8A binary language belongs to NL\mathrm{NL} if a nondeterministic Turing
    9machine decides membership using O(logn)O(\log n) work space and a separate
    10read-only input tape. Every branch halts and respects the space bound;
    11membership means that at least one branch accepts. The bound is
    12clog2(n+2)c\lfloor\log_2(n+2)\rfloor for one positive constant cc.
    13-/
    14
    15namespace Lax434930.NondeterministicLogarithmicSpace
    16
    17open PolynomialTime SpaceBounds
    18
    19/-- Nondeterministic logarithmic work space. -/
    20def NL : Set Language :=
    21 {A | ∃ c : ℕ, 0 < c ∧ A ∈ NSPACE (fun n => c * logSpace n)}
    22
    23end Lax434930.NondeterministicLogarithmicSpace
    24

    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…