AFTD Auto-Formalizing Theoretical Domains

Cslib.Turing.SingleTapeTM.TransitionRelation

defimported Lean

The TransitionRelation corresponding to a SingleTapeTM Symbol is defined by the step function, which maps a configuration to its next configuration, if it exists.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Cslib Cslib.Turing Cslib.Turing.SingleTapeTM in
open Relation in
open Cslib.Turing.BiTape Cslib.Turing.StackTape in
open _root_.Turing in
variable {Symbol : Type} in
variable [Inhabited Symbol] [Fintype Symbol] in
@[grind =]
def Cslib.Turing.SingleTapeTM.TransitionRelation (tm : SingleTapeTM Symbol) (c₁ c₂ : tm.Cfg) : Prop
Defined in
CSLib, `Cslib.Turing.SingleTapeTM.TransitionRelation`
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.
What was changed in Cslib.Turing.SingleTapeTM.TransitionRelation
--- Cslib/Computability/Machines/Turing/SingleTape/Deterministic.lean:198 (Cslib.Turing.SingleTapeTM.TransitionRelation)
+++ as compiled here
@@ -1,7 +1,10 @@
-/--
-The `TransitionRelation` corresponding to a `SingleTapeTM Symbol`
-is defined by the `step` function,
-which maps a configuration to its next configuration, if it exists.
--/
-@[scoped grind =]
-def TransitionRelation (tm : SingleTapeTM Symbol) (c₁ c₂ : tm.Cfg) : Prop := tm.step c₁ = some c₂
+set_option autoImplicit true in
+set_option relaxedAutoImplicit true in
+open Cslib Cslib.Turing Cslib.Turing.SingleTapeTM in
+open Relation in
+open Cslib.Turing.BiTape Cslib.Turing.StackTape in
+open _root_.Turing in
+variable {Symbol : Type} in
+variable [Inhabited Symbol] [Fintype Symbol] in
+@[grind =]
+def Cslib.Turing.SingleTapeTM.TransitionRelation (tm : SingleTapeTM Symbol) (c₁ c₂ : tm.Cfg) : Prop := tm.step c₁ = some c₂
Verified
08 Oct 2026
Axioms
none listed
Built on 23
Used by 5

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Cslib Cslib.Turing Cslib.Turing.SingleTapeTM in
open Relation in
open Cslib.Turing.BiTape Cslib.Turing.StackTape in
open _root_.Turing in
variable {Symbol : Type} in
variable [Inhabited Symbol] [Fintype Symbol] in
/-- The `TransitionRelation` corresponding to a `SingleTapeTM Symbol` is defined by the `step` function, which maps a configuration to its next configuration, if it exists. -/
@[grind =]
def Cslib.Turing.SingleTapeTM.TransitionRelation (tm : SingleTapeTM Symbol) (c₁ c₂ : tm.Cfg) : Prop := tm.step c₁ = some c₂
See it in the graphDiscuss this resultChallenge it