Documentation

Complexitylib.Classes.Time

Base time complexity classes #

This file defines the parametric time complexity classes DTIME(T) and NTIME(T), the building blocks from which polynomial, exponential, and randomized time classes are derived.

Both use =O (Mathlib's IsBigO lifted to ℕ → ℕ) to express asymptotic bounds.

DTIME(T) is the class of languages decidable by a deterministic TM in time O(T(n)) (AB Definition 1.6). The machine may have any number of work tapes.

Equations
Instances For

    NTIME(T) is the class of languages decidable by a nondeterministic TM in time O(T(n)) (AB Definition 2.1). The machine may have any number of work tapes.

    Equations
    Instances For

      Complement class constructor: complClass C = {L | Lᶜ ∈ C}. Used to uniformly define coNP, coRP, coNL, etc.

      Equations
      Instances For
        @[simp]

        Membership in complClass C is exactly membership of the complement in C.

        The complement class is involutive: complClass (complClass C) = C.