MindFormal v1.0.0One Mind

MindFormal.Tools.A595Paper.WriteScans

def MindFormal.A595Paper.mapSegment {A : Type u_2} (f : ℤ → A) (h : ℤ) (n : ℕ) (u : A → A) (z : ℤ) :
A
Equations
Instances For
    @[simp]
    theorem MindFormal.A595Paper.mapSegment_zero {A : Type u_2} (f : ℤ → A) (h : ℤ) (u : A → A) :
    mapSegment f h 0 u = f
    theorem MindFormal.A595Paper.mapSegment_next {A : Type u_2} (f : ℤ → A) (h : ℤ) (n : ℕ) (u : A → A) :
    mapSegment (Function.update f h (u (f h))) (h + 1) n u = mapSegment f h (n + 1) u
    theorem MindFormal.A595Paper.write_scan {Q : Type u_1} {A : Type u_2} (δ : Transition Q A) (f : ℤ → A) (h : ℤ) (q : Q) (n : ℕ) (u : A → A) (hs : ∀ k < n, δ q (f (h + ↑k)) = some (q, u (f (h + ↑k)), true)) :
    MachineRun δ { tape := { cells := f, head := h }, control := q } n { tape := { cells := mapSegment f h n u, head := h + ↑n }, control := q }

    A whole-field restoration is a sequence of single-cell writes and unit moves. The output function is only the mathematical description of those updates; it is not a command available to the machine.