Section fixM.
Variable M : SBTM.
Definition M' : SBTM.
exists (1 + num_states M).
intros [q o].
dependent elimination q.
- destruct (trans M (Fin.F1, o)) as [[[q' w] m] | ].
dependent elimination q'.
+ exact (Some (Fin.F1, w, m)).
+ exact (Some (Fin.FS (Fin.FS t), w, m)).
+ exact (Some (Fin.FS Fin.F1, None, Nmove)).
- dependent elimination t.
+ exact None.
+ destruct (trans M (Fin.FS t, o)) as [[[q' w] m] | ].
dependent elimination q'.
* exact (Some (Fin.F1, w, m)).
* exact (Some (Fin.FS (Fin.FS t0), w, m)).
* exact (Some (Fin.FS Fin.F1, None, Nmove)).
Defined.
Definition conv_state (q : Fin.t (S (num_states M))) : Fin.t (S (1 + num_states M)).
dependent elimination q. exact Fin.F1. exact (Fin.FS (Fin.FS t)).
Defined.

Lemma spec3 q c : trans M (q, c) = None -> trans M' (conv_state q, c) = Some (Fin.FS Fin.F1, None, Nmove).