Documentation

Complexitylib.Classes.Containments.Defs

The configuration graph and its bounded reachability rounds #

The space-bounded containments — NL ⊆ P, NL ⊆ coNL, Savitch's theorem — all read a computation as a walk in the configuration graph: the nondeterministic step relation on configurations. This file holds the three definitions those arguments share, so that theorem statements about them can be read without opening any proof internals.

Main definitions #

The search window of a log-space machine. A machine's own space function is an arbitrary O(log n) function, which a program cannot evaluate; this concrete bound can be computed from the input length alone, and enlarging the window is harmless.

Equations
Instances For
    def Complexity.NTM.Succ {k : ℕ} (tm : NTM k) (c c' : Cfg k tm.Q) :

    One step of the configuration graph: a non-halted configuration has the two successors its transition functions produce.

    Equations
    Instances For
      def Complexity.NTM.ReachesCfg {k : ℕ} (tm : NTM k) :
      Cfg k tm.Q → Cfg k tm.Q → Prop

      Reachability in the configuration graph.

      Equations
      Instances For
        inductive Complexity.NTM.ReachesCfgIn {k : ℕ} (tm : NTM k) :
        ℕ → Cfg k tm.Q → Cfg k tm.Q → Prop

        Reachability in exactly t steps of the configuration graph.

        Instances For
          def Complexity.NTM.ReachesCfgLe {k : ℕ} (tm : NTM k) (t : ℕ) (c c' : Cfg k tm.Q) :

          Reachability in at most t steps. Halted configurations have no successors, so a walk cannot be padded and the bounded notion is genuinely weaker than the exact one.

          Equations
          Instances For
            def Complexity.NTM.reachSet {k : ℕ} (tm : NTM k) (c₀ : Cfg k tm.Q) :
            ℕ → Set (Cfg k tm.Q)

            The configurations reachable from c₀ within t rounds of successor-closure.

            Equations
            Instances For
              def Complexity.TM.spaceTimeBound {k : ℕ} (tm : TM k) (f : ℕ → ℕ) (n : ℕ) :

              The exponential configuration bound of a space-f machine: the number of states, times the n + f n + 2 input-head positions, times, for each of the k work tapes and the output tape, a head position within the window and window contents over the four-letter alphabet. A decider that stays within space f halts within this many steps (TM.decidesInTime_of_decidesInSpace).

              Equations
              Instances For