]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/lib/turing/turing.ma
nth_current_chars
[helm.git] / matita / matita / lib / turing / turing.ma
index 4cf3ebaf17a99ed3fe6e0d0333e1db2456794bbe..9b2d8437c32605d0604dbefb8fde2d37368ff72b 100644 (file)
@@ -31,7 +31,13 @@ qed.
 
 definition current_chars ≝ λsig.λn.λtapes.
   vec_map ?? (current sig) (S n) tapes.
-  
+
+lemma nth_current_chars : ∀sig,n,tapes,i.
+  nth i ? (current_chars sig n tapes) (None ?) 
+   = current sig (nth i ? tapes (niltape sig)).
+#sig #n #tapes #i >(nth_vec_map … (current sig) i (S n)) %
+qed.
+
 definition tape_move_multi ≝ 
   λsig,n,ts,mvs.
   pmap_vec ??? (tape_move_mono sig) n ts mvs.