AFTD Auto-Formalizing Theoretical Domains

Cslib.Turing.SingleTapeTM.Stmt

structureimported Lean

A Turing machine "statement" is just a Optional command to move left or right, and write a symbol (i.e. an Option Symbol, where none is the blank symbol) on the BiTape

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Relation in
open _root_.Turing in
variable {Symbol : Type} in
structure Cslib.Turing.SingleTapeTM.Stmt (Symbol : Type)
Defined in
CSLib, `Cslib.Turing.SingleTapeTM.Stmt`
Lean proof
By Bolton Bailey, Pim Spelier, Daan van Gent, from github.com/leanprover/cslib at 3951377e5a3f (Copyright (c) 2026 Bolton Bailey. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.33.0.
Verified
08 Oct 2026
Axioms
none listed
Used by 8

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Relation in
open _root_.Turing in
variable {Symbol : Type} in
/-- A Turing machine "statement" is just a `Option`al command to move left or right, and write a symbol (i.e. an `Option Symbol`, where `none` is the blank symbol) on the `BiTape` -/
structure Cslib.Turing.SingleTapeTM.Stmt (Symbol : Type) where
  /-- The symbol to write at the current head position -/
  symbol : Option Symbol
  /-- The direction to move the tape head -/
  movement : Option Dir
deriving Inhabited
See it in the graphDiscuss this resultChallenge it