The complexity class ZPP

Lax666725.ZeroError · concepts/Lax666725/ZeroError.lean · lax-666725

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.

    Natural Language Statement

    Definition

    A binary language belongs to ZPP\mathrm{ZPP} if a polynomial-time probabilistic machine may answer 00, 11, or "don't know", every definite answer is correct, and a definite answer occurs with probability at least 2/32/3 on every input. The time bound holds on every branch, including branches that answer "don't know".

    This is the bounded-time, failure-allowed definition of zero-error polynomial time. Its familiar expected-polynomial-time characterization uses repeated independent trials until a definite answer is obtained; the equivalence of these characterizations is not a theorem of this submission. Here nonenone denotes "don't know" and somebsome b a definite answer.

    Concept map
    3 concepts; 2 descendants hidden
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A

    Lean source view on GitHub

    1import Lax666725.ProbabilisticMachines
    2
    3/-!
    4---
    5title: The complexity class ZPP
    6type: definition
    7---
    8A binary language belongs to ZPP\mathrm{ZPP} if a polynomial-time
    9probabilistic machine may answer 00, 11, or "don't know", every definite
    10answer is correct, and a definite answer occurs with probability at least
    112/32/3 on every input. The time bound holds on every branch, including
    12branches that answer "don't know".
    13
    14This is the bounded-time, failure-allowed definition of zero-error
    15polynomial time. Its familiar expected-polynomial-time characterization
    16uses repeated independent trials until a definite answer is obtained;
    17the equivalence of these characterizations is not a theorem of this
    18submission. Here `none` denotes "don't know" and `some b` a definite answer.
    19-/
    20
    21namespace Lax666725.ZeroError
    22
    23open Lax434930.PolynomialTime ProbabilisticMachines
    24
    25def ZPP : Set Language :=
    26 {L | ∃ A : Procedure (Option Bool), ∀ x,
    27 (∀ r b, A.eval x r = some b → Correct L x b) ∧
    28 (2 / 3 : ℚ) ≤ A.probability x (fun a => a.isSome = true)}
    29
    30end Lax666725.ZeroError
    31

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…