Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Encodings.Pair.Projections

Projections of the framed pair encoding #

unframe and dropFrame recover the two components of an encPair word. simp already proves these through encPair_apply, unframe_frame_append and dropFrame_frame_append. The named lemmas are for rw and for proofs that must not unfold encPair.

Main results #

theorem Turing.MultiTapeTM.unframe_encPair {α : Type u} {β : Type v} (enc₁ : α ↪ List Bool) (enc₂ : β ↪ List Bool) (a : α) (b : β) :
unframe ((encPair enc₁ enc₂) (a, b)) = enc₁ a

unframe recovers the first component of an encPair word.

theorem Turing.MultiTapeTM.dropFrame_encPair {α : Type u} {β : Type v} (enc₁ : α ↪ List Bool) (enc₂ : β ↪ List Bool) (a : α) (b : β) :
dropFrame ((encPair enc₁ enc₂) (a, b)) = enc₂ b

dropFrame recovers the second component of an encPair word.

theorem Turing.MultiTapeTM.unframe_encPair_encBits {γ : Type u_1} (enc : γ ↪ List Bool) (a : List Bool) (b : γ) :
unframe ((encPair encBits enc) (a, b)) = a

unframe_encPair for a raw bit-string first component.

theorem Turing.MultiTapeTM.dropFrame_encPair_encBits {γ : Type u_1} (enc : γ ↪ List Bool) (a : γ) (b : List Bool) :

dropFrame_encPair for a raw bit-string second component.