Transition lookup in a machine description #
Turing.MultiTapeTM.Universal.find?_desc characterizes the transition found in the
public description of a finite machine. It requires no machine normal-form premise.
theorem Turing.MultiTapeTM.Universal.find?_desc {k : ℕ} {S Y : Type} [Fintype S] [Fintype Y] (eS : S ↪ ℕ) (eY : Y ↪ ℕ) (tm : MultiTapeTM k Y S) (q : S) (inp : Option Y) (work : Fin k → Option Y) :
List.find? (fun (x : Key × Act) => decide (x.1 = key (eS q) (Option.map (⇑eY) inp) (Option.map ⇑eY ∘ work)))
(desc eS eY tm).table = some (key (eS q) (Option.map (⇑eY) inp) (Option.map ⇑eY ∘ work), Act.ofAction (Action.map eS eY (tm.tr q inp work)))
The transition found in the description of a machine is the renamed transition of the machine.