A single tape control is implemented by literal three-square commands. The control and data alphabets are finite and fixed. A transition changes only its scanned data symbol and moves one square. Its implementation uses Pending/Arrive/Ready annotations and five or six physical commands.
- blank {Q : Type u_1} {A : Type u_2} : Annotation Q A
- ready {Q : Type u_1} {A : Type u_2} (q : Q) : Annotation Q A
- pending {Q : Type u_1} {A : Type u_2} (q : Q) (newData : A) (right : Bool) : Annotation Q A
- arrive {Q : Type u_1} {A : Type u_2} (q : Q) (right : Bool) : Annotation Q A
- done {Q : Type u_1} {A : Type u_2} : Annotation Q A
Instances For
def
MindFormal.A595Paper.instDecidableEqAnnotation.decEq
{Q✝ : Type u_1}
{A✝ : Type u_2}
[DecidableEq Q✝]
[DecidableEq A✝]
(x✝ x✝¹ : Annotation Q✝ A✝)
:
Equations
- One or more equations did not get rendered due to their size.
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq MindFormal.A595Paper.Annotation.blank MindFormal.A595Paper.Annotation.blank = isTrue ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq MindFormal.A595Paper.Annotation.blank (MindFormal.A595Paper.Annotation.ready q) = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq MindFormal.A595Paper.Annotation.blank (MindFormal.A595Paper.Annotation.pending q newData right) = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq MindFormal.A595Paper.Annotation.blank (MindFormal.A595Paper.Annotation.arrive q right) = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq MindFormal.A595Paper.Annotation.blank MindFormal.A595Paper.Annotation.done = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq (MindFormal.A595Paper.Annotation.ready q) MindFormal.A595Paper.Annotation.blank = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq (MindFormal.A595Paper.Annotation.ready a) (MindFormal.A595Paper.Annotation.ready b) = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq (MindFormal.A595Paper.Annotation.ready q) (MindFormal.A595Paper.Annotation.pending q_1 newData right) = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq (MindFormal.A595Paper.Annotation.ready q) (MindFormal.A595Paper.Annotation.arrive q_1 right) = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq (MindFormal.A595Paper.Annotation.ready q) MindFormal.A595Paper.Annotation.done = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq (MindFormal.A595Paper.Annotation.pending q newData right) MindFormal.A595Paper.Annotation.blank = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq (MindFormal.A595Paper.Annotation.pending q newData right) (MindFormal.A595Paper.Annotation.ready q_1) = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq (MindFormal.A595Paper.Annotation.pending q newData right) (MindFormal.A595Paper.Annotation.arrive q_1 right_1) = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq (MindFormal.A595Paper.Annotation.pending q newData right) MindFormal.A595Paper.Annotation.done = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq (MindFormal.A595Paper.Annotation.arrive q right) MindFormal.A595Paper.Annotation.blank = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq (MindFormal.A595Paper.Annotation.arrive q right) (MindFormal.A595Paper.Annotation.ready q_1) = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq (MindFormal.A595Paper.Annotation.arrive q right) (MindFormal.A595Paper.Annotation.pending q_1 newData right_1) = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq (MindFormal.A595Paper.Annotation.arrive q right) MindFormal.A595Paper.Annotation.done = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq MindFormal.A595Paper.Annotation.done MindFormal.A595Paper.Annotation.blank = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq MindFormal.A595Paper.Annotation.done (MindFormal.A595Paper.Annotation.ready q) = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq MindFormal.A595Paper.Annotation.done (MindFormal.A595Paper.Annotation.pending q newData right) = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq MindFormal.A595Paper.Annotation.done (MindFormal.A595Paper.Annotation.arrive q right) = isFalse ⋯
- MindFormal.A595Paper.instDecidableEqAnnotation.decEq MindFormal.A595Paper.Annotation.done MindFormal.A595Paper.Annotation.done = isTrue ⋯
Instances For
@[instance_reducible]
instance
MindFormal.A595Paper.instDecidableEqAnnotation
{Q✝ : Type u_1}
{A✝ : Type u_2}
[DecidableEq Q✝]
[DecidableEq A✝]
:
DecidableEq (Annotation Q✝ A✝)
@[instance_reducible]
instance
MindFormal.A595Paper.instFintypeAnnotation
{Q✝ : Type u_1}
{A✝ : Type u_2}
[Fintype Q✝]
[Fintype A✝]
:
Fintype (Annotation Q✝ A✝)
Equations
- MindFormal.A595Paper.instFintypeAnnotation = Fintype.ofEquiv (Unit ⊕ Q✝ ⊕ (_ : Q✝) × (_ : A✝) × Bool ⊕ (_ : Q✝) × Bool ⊕ Unit) (MindFormal.A595Paper.Annotation.proxyTypeEquiv Q✝ A✝)
@[reducible, inline]
Equations
- MindFormal.A595Paper.Glyph Q A = (A × MindFormal.A595Paper.Annotation Q A)
Instances For
@[simp]
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
MindFormal.A595Paper.Configuration.step
{Q : Type u_1}
{A : Type u_2}
(c : Configuration Q A)
(q : Q)
(s : A)
(right : Bool)
:
Configuration Q A
Equations
Instances For
def
MindFormal.A595Paper.localTable
{Q : Type u_1}
{A : Type u_2}
[DecidableEq Q]
[DecidableEq A]
(δ : Transition Q A)
(v : View (Glyph Q A))
:
On malformed views the table makes a literal idempotent center write. Every branch, including malformed input, is still a permitted motor command.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The concrete execution relation carries its length and verifies the table at every command. It is used to prove algorithms, never supplied as a physical success hypothesis.
- nil {Γ : Type u_1} {table : View Γ → Command Γ} (s : Tape Γ) : LocalRun table s 0 s
- cons {Γ : Type u_1} {table : View Γ → Command Γ} {s t u : Tape Γ} {n : ℕ} (head : s.apply (table s.view) = t) (tail : LocalRun table t n u) : LocalRun table s (n + 1) u
Instances For
Equations
- MindFormal.A595Paper.localIterate table 0 x✝ = x✝
- MindFormal.A595Paper.localIterate table n.succ x✝ = MindFormal.A595Paper.localIterate table n (x✝.apply (table x✝.view))