Documentation

Projects.Esolangs.Emanator.Programs.Cat

Equations
Instances For
    theorem Emanator.step_progCat_1 {s : State} (h₁ : s.halted = false) (h₂ : s.memory = initMem progCat) :
    StateT.run step s = StateT.run (do let n ← read write n memSet 0 6) s
    theorem Emanator.steps_2_progCat_of_input_eq_nil {s : State} (h₀ : s.input = []) (h₁ : s.halted = false) (h₂ : s.memory = initMem progCat) :
    StateT.run (steps 2) s = ((), { memory := s.memory.insert 0 6, input := [], output := s.output, halted := true })
    theorem Emanator.steps_2_progCat_of_input_eq_cons {s : State} [hs : s.WF] {x : ℕ} {xs : List ℕ} (h₀ : s.input = x :: xs) (h₁ : s.halted = false) (h₂ : s.memory = initMem progCat) :
    StateT.run (steps 2) s = ((), { memory := s.memory, input := xs, output := x :: s.output, halted := false })
    theorem Emanator.run_progCat {inp : List ℕ} (h : 0 ∉ inp) :
    theorem Emanator.halts_progCat {inp : List ℕ} (h : 0 ∉ inp) :
    theorem Emanator.runComp_progCat {inp : List ℕ} (h : 0 ∉ inp) :
    runComp progCat inp ⋯ = inp