MindFormal v1.0.0One Mind

MindFormal.Tools.A630PaperPrograms.TapeMachine

@[reducible, inline]
Equations
Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def MindFormal.A630PaperPrograms.TapeMachine.embed {A : Type u_1} {Q : Type u_2} [Inhabited A] (S : Finset Q) (c : Turing.TM0.Cfg A Q) (hc : c.q ∈ S) (h : ℤ) :
      Equations
      Instances For
        theorem MindFormal.A630PaperPrograms.TapeMachine.embed_scanned {A : Type u_1} {Q : Type u_2} [Inhabited A] (S : Finset Q) (c : Turing.TM0.Cfg A Q) (hc : c.q ∈ S) (h : ℤ) :
        (embed S c hc h).tape.cells (embed S c hc h).tape.head = c.Tape.head
        theorem MindFormal.A630PaperPrograms.TapeMachine.embed_move {A : Type u_1} {Q : Type u_2} [Inhabited A] (S : Finset Q) (c : Turing.TM0.Cfg A Q) (hc : c.q ∈ S) (q : ↥S) (h : ℤ) (r : Bool) :
        theorem MindFormal.A630PaperPrograms.TapeMachine.embed_write_return {A : Type u_1} {Q : Type u_2} [Inhabited A] (S : Finset Q) (c : Turing.TM0.Cfg A Q) (hc : c.q ∈ S) (q : ↥S) (h : ℤ) (b : A) :
        have first := (embed S c hc h).step (q, true) b true; first.step (q, false) (first.tape.cells first.tape.head) false = embed S { q := ↑q, Tape := Turing.Tape.write b c.Tape } ⋯ h
        theorem MindFormal.A630PaperPrograms.TapeMachine.compile_step {A : Type u_1} {Q : Type u_2} [Inhabited A] [Inhabited Q] (M : Turing.TM0.Machine A Q) (S : Finset Q) (hS : Turing.TM0.Supports M ↑S) {c d : Turing.TM0.Cfg A Q} (hc : c.q ∈ S) (h : ℤ) (he : Turing.TM0.step M c = some d) :
        ∃ (hd : d.q ∈ S) (h' : ℤ) (n : ℕ), (n = 1 ∨ n = 2) ∧ A595Paper.MachineRun (transition M S hS) (embed S c hc h) n (embed S d hd h')
        theorem MindFormal.A630PaperPrograms.TapeMachine.compile_reaches {A : Type u_1} {Q : Type u_2} [Inhabited A] [Inhabited Q] (M : Turing.TM0.Machine A Q) (S : Finset Q) (hS : Turing.TM0.Supports M ↑S) {c d : Turing.TM0.Cfg A Q} (hc : c.q ∈ S) (h : ℤ) (he : StateTransition.Reaches (Turing.TM0.step M) c d) :
        ∃ (hd : d.q ∈ S) (h' : ℤ) (n : ℕ), A595Paper.MachineRun (transition M S hS) (embed S c hc h) n (embed S d hd h')
        theorem MindFormal.A630PaperPrograms.TapeMachine.embed_halt {A : Type u_1} {Q : Type u_2} [Inhabited A] [Inhabited Q] (M : Turing.TM0.Machine A Q) (S : Finset Q) (hS : Turing.TM0.Supports M ↑S) (c : Turing.TM0.Cfg A Q) (hc : c.q ∈ S) (h : ℤ) (he : Turing.TM0.step M c = none) :
        transition M S hS (embed S c hc h).control ((embed S c hc h).tape.cells (embed S c hc h).tape.head) = none