A fixed finite repertoire for every local view, plus four reserved ports. The repertoire depends only on the finite glyph alphabet, never on the number of registers or instructions placed on the paper.
Equations
Instances For
Equations
- MindFormal.A595Paper.viewPort v = ⟨↑((Fintype.equivFin (MindFormal.A595Paper.View Γ)) v) + 4, ⋯⟩
Instances For
noncomputable def
MindFormal.A595Paper.portPattern
{Γ : Type u_1}
[Fintype Γ]
(i : Fin (viewCount Γ + 4))
:
Equations
- MindFormal.A595Paper.portPattern i = if h : 4 ≤ ↑i then some ((Fintype.equivFin (MindFormal.A595Paper.View Γ)).symm ⟨↑i - 4, ⋯⟩) else none
Instances For
@[simp]
noncomputable def
MindFormal.A595Paper.portCommand
{Γ : Type u_1}
[Fintype Γ]
(start : Command Γ)
(table : View Γ → Command Γ)
(i : Fin (viewCount Γ + 4))
:
Command Γ
A local transition table belongs to the mind's fixed command projection. The reserved start command is fixed independently of the paper contents.
Equations
- MindFormal.A595Paper.portCommand start table i = match MindFormal.A595Paper.portPattern i with | some v => table v | none => start