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

Lax434930.PolynomialTime

The complexity class P

concepts/Lax434930/PolynomialTime.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 P\mathrm{P} if a deterministic Turing machine decides membership in polynomial time. We reuse the definition of lax-554803 without modification: input is an ordinary binary string, output is one Boolean, and one machine and one polynomial work for all inputs.

    Lean source view on GitHub

    1import Lax554803.PolynomialTime
    2
    3/-!
    4---
    5title: The complexity class P
    6type: definition
    7---
    8A binary language belongs to P\mathrm{P} if a deterministic Turing machine
    9decides membership in polynomial time. We reuse the definition of lax-554803
    10without modification: input is an ordinary binary string, output is one
    11Boolean, and one machine and one polynomial work for all inputs.
    12-/
    13
    14namespace Lax434930.PolynomialTime
    15
    16/-- A finite binary string, as in lax-554803. -/
    17abbrev Word := Lax554803.PolynomialTime.Word
    18
    19/-- A language of finite binary strings, as in lax-554803. -/
    20abbrev Language := Lax554803.PolynomialTime.Language
    21
    22/-- Deterministic polynomial time, exactly as defined in lax-554803. -/
    23abbrev P : Set Language := Lax554803.PolynomialTime.P
    24
    25end Lax434930.PolynomialTime
    26

    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…