cfahlgren1's picture
download
raw
1.12 kB
import Mathlib.Computability.TuringMachine.Tape
namespace OAI
universe uDepth1
namespace DepthThreeLowerBound
namespace TapeWord
open Turing
variable {Γ : Type uDepth1} [Inhabited Γ]
@[simp] theorem head_mk₂_cons (L R : List Γ) (a : Γ) :
(Tape.mk₂ L (a :: R)).head = a := rfl
@[simp] theorem move_right_mk₂_cons (L R : List Γ) (a : Γ) :
(Tape.mk₂ L (a :: R)).move Dir.right = Tape.mk₂ (a :: L) R := rfl
@[simp] theorem write_mk₂_cons (L R : List Γ) (a b : Γ) :
(Tape.mk₂ L (a :: R)).write b = Tape.mk₂ L (b :: R) := rfl
theorem move_right_iterate_mk₂_append («prefix» L R : List Γ) :
(Tape.move Dir.right)^[«prefix».length] (Tape.mk₂ L («prefix» ++ R)) =
Tape.mk₂ («prefix».reverse ++ L) R := by
induction «prefix» generalizing L with
| nil => rfl
| cons a «prefix» ih =>
rw [List.length_cons, List.cons_append, Function.iterate_succ_apply,
move_right_mk₂_cons]
simpa only [List.reverse_cons, List.append_assoc, List.cons_append,
List.nil_append] using ih (a :: L)
end TapeWord
end DepthThreeLowerBound
end OAI

Xet Storage Details

Size:
1.12 kB
·
Xet hash:
98e35509ae121a97dd9388785c4d2fd9f4d79709df9463481228d3699ee8b0cd

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.