ThueBridge #
Part of the dependency closure of the small undecidable group constructions.
Iteration of a deterministic partial transition function. The zeroth iterate is the initial configuration; a missing transition at any later stage records termination.
Equations
- Undecidability.MachineThue.iterate step 0 x✝ = some x✝
- Undecidability.MachineThue.iterate step n.succ x✝ = (step x✝).bind (Undecidability.MachineThue.iterate step n)
Instances For
A configuration terminates when some finite iterate encounters a missing transition.
Equations
- Undecidability.MachineThue.Terminates step c = ∃ (n : ℕ), Undecidability.MachineThue.iterate step n c = none
Instances For
Terminates agrees with Mathlib's domain predicate for the standard
state-transition evaluator.
The exact local obligations needed to turn a deterministic partial machine into a symmetric Thue system with a fixed target.
classify is Post's key inverse-simulation lemma. At a nonterminal encoded
configuration, a symmetric rewrite either performs the unique forward machine
step or reaches an encoded predecessor. The latter alternative is harmless:
determinism lets us cancel that backwards excursion from any terminating run.
- step : C → Option C
The partial transition function of the machine being simulated.
- system : ThueSystem α
The Thue system simulating the partial transition function.
- encode : C → List α
The word encoding a machine configuration in the simulating Thue system.
- target : List α
The target word representing halting in the simulating Thue system.