Descriptions of nondeterministic machines #
A description d (Turing.MultiTapeTM.Universal.Desc) lists transitions as pairs of a key and an
action. The simulation of d fires the first entry whose key matches the configuration and halts
when there is none. Read nondeterministically, any matching entry may fire, and a running
configuration that matches no entry is stuck (Turing.MultiTapeTM.Universal.NStep).
A nondeterministic machine with finitely many states and symbols, renamed into ℕ, has a
description listing every permitted transition (Turing.MultiTapeTM.Universal.descN). Its steps
are the renamed steps of the machine, in both directions, so the machine accepts exactly when its
description reaches a halted configuration with the output [1].
Along a computation path of the machine within S cells, the description's run stays within
cfgSpaceBound (descLen d) n k S bits, for inputs of length n and k work tapes. The zippers
of the run hold only cells that the machine's heads have visited, so this bound holds at every
configuration the run steps to.
Main definitions #
Turing.MultiTapeTM.Universal.NStep: a step of a description read nondeterministically.Turing.MultiTapeTM.Universal.descN: the description of a nondeterministic machine.
Main results #
Turing.MultiTapeTM.Universal.mem_descN: the entries of the description are the permitted transitions, renamed.Turing.MultiTapeTM.Universal.exists_nStep_of_step,Turing.MultiTapeTM.Universal.exists_step_of_nStep: steps of the machine and of its description correspond.Turing.MultiTapeTM.Universal.exists_computationPath_of_reflTransGen,Turing.MultiTapeTM.Universal.exists_reflTransGen_of_computationPath: so do computation paths of the machine and runs of its description.Turing.MultiTapeTM.Universal.exists_reflTransGen_fits_of_computationPath: a computation path withinScells is represented by a run of the description within the space bound.Turing.MultiTapeTM.Universal.accepts_iff_reflTransGen_nStep: the machine accepts exactly when its description reaches a halted configuration with the output[1].Turing.MultiTapeTM.Universal.accepts_iff_reflTransGen_nStep_fits: for a machine withinScells, the same within the space bound.
Descriptions of nondeterministic machines #
The description of a nondeterministic machine with finitely many states and symbols, renamed
into ℕ by eS and eY: an entry for every permitted transition.
The entries of the description are the permitted transitions, renamed.
A step of the machine is a step of its description: from a well-shaped configuration of the simulation representing a running configuration, the description can take the renamed step.
A step of the description is a step of the machine: from a well-shaped configuration of the simulation representing a configuration of the machine, a step of the description represents a step of the machine.
Computations #
The configurations the description reaches represent the last configurations of computation paths of the machine.
Runs within the space of the machine #
A computation path of the machine within S cells is represented by a run of its
description within the space bound: every configuration the run steps to is at most
cfgSpaceBound (descLen d) n k S bits long.
The last configuration of every computation path of the machine is represented by a configuration the description reaches.
A machine accepts exactly when its description reaches a halted configuration with the output
[1].
A machine within S cells accepts exactly when its description reaches a halted
configuration with the output [1] within the space bound.