Documentation

CslibFrontier.Computability.Machines.AuxPDA.Basic

Auxiliary pushdown automata #

An auxiliary pushdown automaton (Turing.AuxPDA) extends a multi-tape nondeterministic Turing machine (read-only input tape with clamped endmarkers, k two-way read/write work tapes, and a write-only output tape) with an unbounded pushdown stack whose height is not charged to work space.

Each transition inspects the control state, the symbol under the input head, the k symbols under the work-tape heads, and the top symbol of the stack (Option StackSym, where none indicates an empty stack), and performs a multi-tape Turing action (Turing.Action) together with a stack operation (AuxPDA.StackOp: stay, push γ, or pop). Attempting pop on an empty stack fails (stack underflow, StackOp.apply? .pop [] = none) and cannot fire as a step.

Work space (AuxPDA.RunPath.space) counts distinct cells visited on the k work tapes only, matching Turing.MultiTapeNTM.RunPath.space; the pushdown stack is uncharged. Time bounds (AuxPDA.RunsInTime) apply to all computation paths, preventing vacuous looping branches.

This is original machine infrastructure for cslib-frontier #7920 (Work Package 3), mirroring the upstream multi-tape machine conventions of [Pap94a] and [Sip13].

Main definitions #

Main results #

References #

Stack operations, actions and configurations #

inductive Turing.AuxPDA.StackOp (StackSym : Type u_1) :
Type u_1

The elementary operations on the pushdown stack of an auxiliary pushdown automaton.

  • stay {StackSym : Type u_1} : StackOp StackSym

    Leave the stack unchanged.

  • push {StackSym : Type u_1} (sym : StackSym) : StackOp StackSym

    Push a symbol onto the top of the stack.

  • pop {StackSym : Type u_1} : StackOp StackSym

    Pop the top symbol of the stack; invalid (underflow) on an empty stack.

Instances For
    def Turing.AuxPDA.instDecidableEqStackOp.decEq {StackSym✝ : Type u_1} [DecidableEq StackSym✝] (x✝ x✝¹ : StackOp StackSym✝) :
    Decidable (x✝ = x✝¹)
    @[instance_reducible]
    instance Turing.AuxPDA.instDecidableEqStackOp {StackSym✝ : Type u_1} [DecidableEq StackSym✝] :
    DecidableEq (StackOp StackSym✝)
    @[instance_reducible]
    instance Turing.AuxPDA.instReprStackOp {StackSym✝ : Type u_1} [Repr StackSym✝] :
    Repr (StackOp StackSym✝)
    def Turing.AuxPDA.instReprStackOp.repr {StackSym✝ : Type u_1} [Repr StackSym✝] :
    StackOp StackSym✝ → ℕ → Std.Format
    def Turing.AuxPDA.StackOp.apply? {StackSym : Type u_1} :
    StackOp StackSym → List StackSym → Option (List StackSym)

    Apply a stack operation to a stack represented top-first. Popping an empty stack returns none (stack underflow).

    @[simp]
    theorem Turing.AuxPDA.StackOp.apply?_stay {StackSym : Type u_1} (stack : List StackSym) :
    stay.apply? stack = some stack
    @[simp]
    theorem Turing.AuxPDA.StackOp.apply?_push {StackSym : Type u_1} (sym : StackSym) (stack : List StackSym) :
    (push sym).apply? stack = some (sym :: stack)
    @[simp]
    theorem Turing.AuxPDA.StackOp.apply?_pop_cons {StackSym : Type u_1} (sym : StackSym) (rest : List StackSym) :
    pop.apply? (sym :: rest) = some rest
    theorem Turing.AuxPDA.StackOp.length_le_of_apply? {StackSym : Type u_1} {op : StackOp StackSym} {s s' : List StackSym} (h : op.apply? s = some s') :

    A stack operation changes the stack height by at most one (increasing).

    theorem Turing.AuxPDA.StackOp.le_length_add_one_of_apply? {StackSym : Type u_1} {op : StackOp StackSym} {s s' : List StackSym} (h : op.apply? s = some s') :

    A stack operation decreases the stack height by at most one.

    structure Turing.AuxPDA.Action (k : ℕ) (Symbol : Type u_1) (StackSym : Type u_2) (State : Type u_3) :
    Type (max (max u_1 u_2) u_3)

    One step of an auxiliary pushdown automaton: a multi-tape Turing action paired with a pushdown stack operation.

    • tape : Turing.Action k Symbol State

      The input-head move, work-tape edits/moves, optional output, and successor state.

    • stackOp : StackOp StackSym

      The operation applied to the pushdown stack.

    Instances For
      structure Turing.AuxPDA.Cfg (k : ℕ) (Symbol : Type u_1) (StackSym : Type u_2) (State : Type u_3) (input : List Symbol) :
      Type (max (max u_1 u_2) u_3)

      A configuration of an auxiliary pushdown automaton relative to input: an underlying multi-tape Turing configuration together with the pushdown stack (top symbol first).

      • tapes : Turing.Cfg k Symbol State input

        The underlying multi-tape Turing configuration (state, input head, work tapes, output).

      • stack : List StackSym

        The pushdown stack, with the top symbol at the head of the list.

      Instances For
        theorem Turing.AuxPDA.Cfg.ext_iff {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {x y : Cfg k Symbol StackSym State input} :
        x = y ↔ x.tapes = y.tapes ∧ x.stack = y.stack
        theorem Turing.AuxPDA.Cfg.ext {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {x y : Cfg k Symbol StackSym State input} (tapes : x.tapes = y.tapes) (stack : x.stack = y.stack) :
        x = y
        @[instance_reducible]
        instance Turing.AuxPDA.instInhabitedCfg {a✝ : ℕ} {a✝¹ : Type u_1} {a✝² : Type u_2} {a✝³ : Type u_3} {a✝⁴ : List a✝¹} :
        Inhabited (Cfg a✝ a✝¹ a✝² a✝³ a✝⁴)
        @[reducible, inline]
        abbrev Turing.AuxPDA.Cfg.topSym {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} (c : Cfg k Symbol StackSym State input) :
        Option StackSym

        The symbol at the top of the stack, or none when the stack is empty.

        @[reducible, inline]
        abbrev Turing.AuxPDA.Cfg.Halted {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} (c : Cfg k Symbol StackSym State input) :

        A configuration is halted when its underlying Turing configuration has halted.

        @[reducible, inline]
        abbrev Turing.AuxPDA.Cfg.storage {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} (c : Cfg k Symbol StackSym State input) :
        Storage Symbol State k

        The control state and work-tape storage of a configuration (forgetting input head, output, and stack).

        def Turing.AuxPDA.Cfg.init {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} (q₀ : State) (input : List Symbol) :
        Cfg k Symbol StackSym State input

        The initial configuration for starting state q₀ and input: standard multi-tape initial configuration with an empty pushdown stack.

        def Turing.AuxPDA.Action.apply? {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} (act : Action k Symbol StackSym State) (cfg : Cfg k Symbol StackSym State input) :
        Option (Cfg k Symbol StackSym State input)

        Apply an AuxPDA.Action to a configuration. Returns none on stack underflow (pop on an empty stack).

        theorem Turing.AuxPDA.Action.apply?_eq_some_iff {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {act : Action k Symbol StackSym State} {cfg cfg' : Cfg k Symbol StackSym State input} :
        act.apply? cfg = some cfg' ↔ ∃ (stack' : List StackSym), act.stackOp.apply? cfg.stack = some stack' ∧ cfg' = { tapes := act.tape.apply cfg.tapes, stack := stack' }

        Nondeterministic auxiliary pushdown automata #

        structure Turing.AuxPDA (k : ℕ) (Symbol : Type u_1) (StackSym : Type u_2) (State : Type u_3) :
        Type (max (max u_1 u_2) u_3)

        A nondeterministic auxiliary pushdown automaton with k read/write work tapes over Option Symbol (none = blank), a read-only input tape, a write-only output tape, and an unbounded pushdown stack over StackSym.

        • q₀ : State

          The initial control state.

        • Tr (q : State) (input : Option Symbol) (work : Fin k → Option Symbol) (top : Option StackSym) (action : Action k Symbol StackSym State) : Prop

          The nondeterministic transition relation on control state, input symbol, work-tape head symbols, top stack symbol (none when empty), and resulting action.

        def Turing.AuxPDA.initCfg {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} (M : AuxPDA k Symbol StackSym State) (input : List Symbol) :
        Cfg k Symbol StackSym State input

        The initial configuration of M on input.

        def Turing.AuxPDA.Step {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} (M : AuxPDA k Symbol StackSym State) (c₁ c₂ : Cfg k Symbol StackSym State input) :

        The one-step relation on configurations. A halted configuration steps only to itself; a running configuration steps by applying any action related by Tr that does not underflow the stack.

        theorem Turing.AuxPDA.step_of_halt {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} {c c' : Cfg k Symbol StackSym State input} (h : c.Halted) :
        M.Step c c' ↔ c' = c

        A halted configuration steps only to itself.

        theorem Turing.AuxPDA.Step.workTapePos_le {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} {c c' : Cfg k Symbol StackSym State input} (h : M.Step c c') (i : Fin k) :

        A single step changes each work-tape head by at most one cell.

        theorem Turing.AuxPDA.Step.workTapes_eq_of_ne {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} {c c' : Cfg k Symbol StackSym State input} (h : M.Step c c') {i : Fin k} {z : ℤ} (hz : z ≠ c.tapes.workTapePos i) :

        A single step does not modify any work-tape cell away from its head.

        theorem Turing.AuxPDA.Step.stackHeight_le {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} {c c' : Cfg k Symbol StackSym State input} (h : M.Step c c') :

        A single step increases the stack height by at most one.

        theorem Turing.AuxPDA.Step.le_stackHeight_add_one {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} {c c' : Cfg k Symbol StackSym State input} (h : M.Step c c') :

        A single step decreases the stack height by at most one.

        @[reducible, inline]
        abbrev Turing.AuxPDA.stepRel {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} (M : AuxPDA k Symbol StackSym State) (input : List Symbol) :
        SetRel (Cfg k Symbol StackSym State input) (Cfg k Symbol StackSym State input)

        The one-step relation as a SetRel.

        @[reducible, inline]
        abbrev Turing.AuxPDA.runningStepRel {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} (M : AuxPDA k Symbol StackSym State) (input : List Symbol) :
        SetRel (Cfg k Symbol StackSym State input) (Cfg k Symbol StackSym State input)

        Steps from running (non-halted) configurations.

        @[reducible, inline]
        abbrev Turing.AuxPDA.RunPath {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} (M : AuxPDA k Symbol StackSym State) (input : List Symbol) :
        Type (max (max u_1 u_2) u_3)

        A finite sequence of configurations joined by steps of M.

        def Turing.AuxPDA.RunPath.time {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.RunPath input) :

        The number of steps taken by a run path.

        theorem Turing.AuxPDA.RunPath.last_eq_of_head_halted {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.RunPath input) (h : (RelSeries.head p).Halted) :

        Once a run path is halted, its configuration stays unchanged.

        theorem Turing.AuxPDA.RunPath.last_eq_of_halted {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.RunPath input) (i : Fin (p.length + 1)) (h : (p.toFun i).Halted) :

        The last configuration equals any earlier halted configuration.

        theorem Turing.AuxPDA.RunPath.exists_running {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.RunPath input) (h : (RelSeries.last p).Halted) :
        ∃ (q : RelSeries (M.runningStepRel input)), q.head = RelSeries.head p ∧ q.last = RelSeries.last p ∧ q.length ≤ p.length ∧ ∀ c ∈ q, c ∈ p

        A run path that ends halted decomposes into a running prefix ending at its first halted configuration.

        theorem Turing.AuxPDA.RunPath.stackHeight_le {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.RunPath input) :

        Height-vs-time bound: stack height grows by at most one per step along a run path.

        def Turing.AuxPDA.RunPath.visitedByTapeHead {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.RunPath input) (i : Fin k) :

        The positions visited by work-tape head i along a run path. The pushdown stack is not counted in space.

        def Turing.AuxPDA.RunPath.spaceUsedByTape {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.RunPath input) (i : Fin k) :

        The number of distinct cells visited by work-tape head i along a run path.

        def Turing.AuxPDA.RunPath.space {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.RunPath input) :

        Total work-tape space used by a run path (summed across the k work tapes; stack uncharged).

        @[simp]
        theorem Turing.AuxPDA.RunPath.mem_visitedByTapeHead {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.RunPath input) {i : Fin k} {z : ℤ} :
        z ∈ p.visitedByTapeHead i ↔ ∃ c ∈ p, c.tapes.workTapePos i = z
        theorem Turing.AuxPDA.RunPath.visitedByTapeHead_take_subset {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.RunPath input) (j : Fin (p.length + 1)) (i : Fin k) :
        theorem Turing.AuxPDA.RunPath.visitedByTapeHead_snoc {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.RunPath input) (c : Cfg k Symbol StackSym State input) (h : M.Step (RelSeries.last p) c) (i : Fin k) :
        theorem Turing.AuxPDA.RunPath.uIcc_workTapePos_subset_visitedByTapeHead {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.RunPath input) (i : Fin k) :

        Every cell between the first and last head positions of a work tape is visited.

        theorem Turing.AuxPDA.RunPath.mem_visitedByTapeHead_of_workTapes_ne {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.RunPath input) {i : Fin k} {z : ℤ} (h : (RelSeries.last p).tapes.workTapes i z ≠ (RelSeries.head p).tapes.workTapes i z) :

        Any work-tape cell that changed along a path was visited by its head.

        theorem Turing.AuxPDA.RunPath.natAbs_le_spaceUsedByTape_of_mem_visited {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.RunPath input) {i : Fin k} {z : ℤ} (hz : z ∈ p.visitedByTapeHead i) :

        Every visited head position lies within spaceUsedByTape of its starting position.

        structure Turing.AuxPDA.ComputationPath {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} (M : AuxPDA k Symbol StackSym State) (input : List Symbol) extends RelSeries (M.stepRel input) :
        Type (max (max u_1 u_2) u_3)

        A run path starting at the initial configuration of M on input.

        def Turing.AuxPDA.ComputationPath.time {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.ComputationPath input) :

        The number of steps taken by a computation path.

        def Turing.AuxPDA.ComputationPath.spaceUsedByTape {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.ComputationPath input) (i : Fin k) :

        Cells visited on work tape i along a computation path.

        def Turing.AuxPDA.ComputationPath.space {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.ComputationPath input) :

        Total work-tape space used along a computation path (stack uncharged).

        theorem Turing.AuxPDA.ComputationPath.stackHeight_le {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.ComputationPath input) :

        The stack height at the end of a computation path is at most its step count.

        theorem Turing.AuxPDA.ComputationPath.storage_fitsIn {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} (p : M.ComputationPath input) :

        The work-tape storage at the end of a computation path fits in its per-tape visited-cell windows, matching Turing.MultiTapeNTM.ComputationPath.storage_fitsIn.

        Time bounds, space bounds and decision #

        def Turing.AuxPDA.RunsInTime {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} (M : AuxPDA k Symbol StackSym State) (input : List Symbol) (t : ℕ) :

        Every computation path on input of at least t steps ends halted.

        theorem Turing.AuxPDA.RunsInTime.mono {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} {t t' : ℕ} (h : M.RunsInTime input t) (ht : t ≤ t') :
        M.RunsInTime input t'

        A time bound can be increased.

        def Turing.AuxPDA.RunsInSpace {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} (M : AuxPDA k Symbol StackSym State) (input : List Symbol) (s : ℕ) :

        Every computation prefix on input visits at most s work-tape cells (stack uncharged).

        theorem Turing.AuxPDA.RunsInSpace.mono {k : ℕ} {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} {input : List Symbol} {M : AuxPDA k Symbol StackSym State} {s s' : ℕ} (h : M.RunsInSpace input s) (hs : s ≤ s') :
        M.RunsInSpace input s'

        A space bound can be increased.

        @[simp]
        theorem Turing.AuxPDA.runsInSpace_zero_tapes {Symbol : Type u_1} {StackSym : Type u_2} {State : Type u_3} (M : AuxPDA 0 Symbol StackSym State) (input : List Symbol) (s : ℕ) :
        M.RunsInSpace input s

        A machine without work tapes satisfies every space bound regardless of stack usage.

        def Turing.AuxPDA.Accepts {k : ℕ} {StackSym : Type u_2} {State : Type u_3} (M : AuxPDA k Bool StackSym State) (input : List Bool) :

        A binary AuxPDA accepts input when some computation path ends halted with output [true], matching Turing.MultiTapeNTM.Accepts.

        def Turing.AuxPDA.DecidesInTimeAndSpace {k : ℕ} {StackSym : Type u_2} {State : Type u_3} {α : Type u_4} (M : AuxPDA k Bool StackSym State) (enc : α ↪ List Bool) (A : Set α) (s t : α → ℕ) :

        M decides A within work space s and all-branches time t relative to enc: on every encoded instance enc a, every computation prefix uses at most s a work-tape cells, every computation path of length at least t a halts, and a ∈ A ↔ M.Accepts (enc a).

        theorem Turing.AuxPDA.DecidesInTimeAndSpace.mono {k : ℕ} {StackSym : Type u_2} {State : Type u_3} {α : Type u_4} {M : AuxPDA k Bool StackSym State} {enc : α ↪ List Bool} {A : Set α} {s s' t t' : α → ℕ} (h : M.DecidesInTimeAndSpace enc A s t) (hs : ∀ (a : α), s a ≤ s' a) (ht : ∀ (a : α), t a ≤ t' a) :
        M.DecidesInTimeAndSpace enc A s' t'

        Monotone resource closure for DecidesInTimeAndSpace.

        Embedding multi-tape nondeterministic Turing machines #

        def Turing.AuxPDA.ofMultiTapeNTM {k : ℕ} {Symbol : Type u_1} {State : Type u_3} (ntm : MultiTapeNTM k Symbol State) :
        AuxPDA k Symbol PUnit.{u_4 + 1} State

        Embed any MultiTapeNTM as an AuxPDA with a dummy stack alphabet PUnit that never pushes or pops (StackOp.stay on every transition).

        theorem Turing.AuxPDA.ofMultiTapeNTM_step_iff {k : ℕ} {Symbol : Type u_1} {State : Type u_3} {input : List Symbol} {ntm : MultiTapeNTM k Symbol State} {c₁ c₂ : Cfg k Symbol PUnit.{u_4 + 1} State input} :
        (ofMultiTapeNTM ntm).Step c₁ c₂ ↔ ntm.Step c₁.tapes c₂.tapes ∧ c₂.stack = c₁.stack
        theorem Turing.AuxPDA.ofMultiTapeNTM_runsInSpace_iff {k : ℕ} {Symbol : Type u_1} {State : Type u_3} {input : List Symbol} {ntm : MultiTapeNTM k Symbol State} {s : ℕ} :
        (ofMultiTapeNTM ntm).RunsInSpace input s ↔ ntm.RunsInSpace input s

        ofMultiTapeNTM preserves work-tape space bounds exactly.

        theorem Turing.AuxPDA.ofMultiTapeNTM_runsInTime_iff {k : ℕ} {Symbol : Type u_1} {State : Type u_3} {input : List Symbol} {ntm : MultiTapeNTM k Symbol State} {t : ℕ} :
        (ofMultiTapeNTM ntm).RunsInTime input t ↔ ntm.RunsInTime input t

        ofMultiTapeNTM preserves all-branches time bounds exactly.

        theorem Turing.AuxPDA.ofMultiTapeNTM_accepts_iff {k : ℕ} {State : Type u_3} {ntm : MultiTapeNTM k Bool State} {input : List Bool} :
        (ofMultiTapeNTM ntm).Accepts input ↔ ntm.Accepts input

        ofMultiTapeNTM preserves acceptance exactly.