MindFormal v1.0.0One Mind

MindFormal.Tools.A595Paper.NorControl

Fixed control for the serial unary-register NOR interpreter. The only control data are the first operand bit or the computed NOR bit. Every variable address is compared on paper by compareTable. The physical command table is obtained by localTable norTable.

Instances For
    Equations
    Instances For
      Instances For
        Equations
        Instances For
          Instances For
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              @[instance_reducible]
              Equations
              • One or more equations did not get rendered due to their size.
              def MindFormal.A595Paper.Configuration.mapControl {Q : Type u_1} {R : Type u_2} {A : Type u_3} (φ : Q → R) (c : Configuration Q A) :
              Equations
              Instances For
                theorem MindFormal.A595Paper.MachineRun.map_control {Q : Type u_1} {R : Type u_2} {A : Type u_3} {δ : Transition Q A} {ε : Transition R A} (φ : Q → R) (hδ : ∀ (q : Q) (c : A) (q' : Q) (s : A) (right : Bool), δ q c = some (q', s, right) → ε (φ q) c = some (φ q', s, right)) {c d : Configuration Q A} {n : ℕ} (h : MachineRun δ c n d) :
                theorem MindFormal.A595Paper.nor_compare_transition (access : Access) (q : CompareState) (c : Cell) (q' : CompareState) (s : Cell) (right : Bool) (h : compareTable q c = some (q', s, right)) :
                norTable (NorState.compare access q) c = some (NorState.compare access q', s, right)
                theorem MindFormal.A595Paper.nor_compare_correct {f : ℤ → Cell} {a b : ℤ} {na nb L : ℕ} (hf : CompareFields f a b na nb) (hb : 0 ≤ b) (hL : a + ↑na + 2 ≤ ↑L) (access : Access) :
                ∃ n ≤ 8 * (L + 1) ^ 2, MachineRun norTable { tape := { cells := f, head := a + 1 }, control := NorState.compare access CompareState.scanA } n { tape := { cells := f, head := b + ↑nb + 2 }, control := NorState.compare access (CompareState.finish (decide (na = nb))) }