MindFormal v1.0.0One Mind

MindFormal.Tools.A595Paper.FiniteControl

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.

inductive MindFormal.A595Paper.Annotation (Q : Type u_1) (A : Type u_2) :
Type (max u_1 u_2)
Instances For
    def MindFormal.A595Paper.instDecidableEqAnnotation.decEq {Q✝ : Type u_1} {A✝ : Type u_2} [DecidableEq Q✝] [DecidableEq A✝] (x✝ x✝¹ : Annotation Q✝ A✝) :
    Decidable (x✝ = x✝¹)
    Equations
    Instances For
      @[instance_reducible]
      instance MindFormal.A595Paper.instFintypeAnnotation {Q✝ : Type u_1} {A✝ : Type u_2} [Fintype Q✝] [Fintype A✝] :
      Fintype (Annotation Q✝ A✝)
      Equations
      @[reducible, inline]
      abbrev MindFormal.A595Paper.Glyph (Q : Type u_1) (A : Type u_2) :
      Type (max u_2 u_2 u_1)
      Equations
      Instances For
        structure MindFormal.A595Paper.Configuration (Q : Type u_1) (A : Type u_2) :
        Type (max u_1 u_2)
        • tape : Tape A
        • control : Q
        Instances For
          @[reducible, inline]
          abbrev MindFormal.A595Paper.Transition (Q : Type u_1) (A : Type u_2) :
          Type (max (max u_1 u_2) u_2 u_1)
          Equations
          Instances For
            Equations
            Instances For
              Equations
              Instances For
                Equations
                Instances For
                  @[simp]
                  def MindFormal.A595Paper.Configuration.pack {Q : Type u_1} {A : Type u_2} (c : Configuration Q A) :
                  Tape (Glyph Q A)
                  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) :
                    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
                        inductive MindFormal.A595Paper.LocalRun {Γ : Type u_1} (table : View Γ → Command Γ) :
                        Tape Γ → ℕ → Tape Γ → Prop

                        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.

                        Instances For
                          theorem MindFormal.A595Paper.LocalRun.append {Γ : Type u_1} {table : View Γ → Command Γ} {s t u : Tape Γ} {m n : ℕ} (h : LocalRun table s m t) (k : LocalRun table t n u) :
                          LocalRun table s (m + n) u
                          def MindFormal.A595Paper.localIterate {Γ : Type u_1} (table : View Γ → Command Γ) :
                          ℕ → Tape Γ → Tape Γ
                          Equations
                          Instances For
                            theorem MindFormal.A595Paper.LocalRun.iterate {Γ : Type u_1} {table : View Γ → Command Γ} {s t : Tape Γ} {n : ℕ} (h : LocalRun table s n t) :
                            localIterate table n s = t
                            theorem MindFormal.A595Paper.localIterate_add {Γ : Type u_1} (table : View Γ → Command Γ) (m n : ℕ) (s : Tape Γ) :
                            localIterate table (m + n) s = localIterate table n (localIterate table m s)