MindFormal v1.0.0One Mind

MindFormal.Tools.A595Paper.LocalTape

Literal persistent three-square paper. A glyph may be a product of data and annotation tracks. A command writes one glyph at a visible offset or moves the view one square. It cannot fetch an address or evaluate an instruction. The initial tape and the finite command decoder are fixed before a run.

@[reducible, inline]
abbrev MindFormal.A595Paper.View (Γ : Type u_1) :
Type u_1
Equations
Instances For
    structure MindFormal.A595Paper.Tape (Γ : Type u_1) :
    Type u_1
    Instances For
      inductive MindFormal.A595Paper.Command (Γ : Type u_1) :
      Type u_1
      Instances For
        Equations
        Instances For
          def MindFormal.A595Paper.Tape.view {Γ : Type u_1} (s : Tape Γ) :
          View Γ
          Equations
          Instances For
            def MindFormal.A595Paper.Tape.apply {Γ : Type u_1} (s : Tape Γ) :
            Command Γ → Tape Γ
            Equations
            Instances For
              theorem MindFormal.A595Paper.write_head {Γ : Type u_1} (s : Tape Γ) (i : Fin 3) (g : Γ) :
              theorem MindFormal.A595Paper.write_glyph {Γ : Type u_1} (s : Tape Γ) (i : Fin 3) (g : Γ) :
              (s.apply (Command.write i g)).cells (s.head + offset i) = g
              theorem MindFormal.A595Paper.write_preserves_elsewhere {Γ : Type u_1} (s : Tape Γ) (i : Fin 3) (g : Γ) (k : ℤ) (hk : k ≠ s.head + offset i) :
              (s.apply (Command.write i g)).cells k = s.cells k
              theorem MindFormal.A595Paper.move_preserves_tape {Γ : Type u_1} (s : Tape Γ) (right : Bool) :
              theorem MindFormal.A595Paper.move_unit {Γ : Type u_1} (s : Tape Γ) (right : Bool) :
              |(s.apply (Command.move right)).head - s.head| = 1
              def MindFormal.A595Paper.execute {Γ : Type u_1} (s : Tape Γ) (commands : List (Command Γ)) :
              Tape Γ

              The persistent physical state after a finite command list. This definition is not a premise that this list succeeds or occurs on a native run.

              Equations
              Instances For
                theorem MindFormal.A595Paper.execute_append {Γ : Type u_1} (s : Tape Γ) (xs ys : List (Command Γ)) :
                execute s (xs ++ ys) = execute (execute s xs) ys
                theorem MindFormal.A595Paper.execute_next {Γ : Type u_1} (s : Tape Γ) (xs : List (Command Γ)) (c : Command Γ) :
                execute s (xs ++ [c]) = (execute s xs).apply c