AFTD Auto-Formalizing Theoretical Domains

Cslib.Turing.SingleTapeTM.Cfg.spaceUsed_haltCfg

theoremverifiedformalizationimported Lean

Cslib.Turing.SingleTapeTM.Cfg.spaceUsed_haltCfg

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] (tm : SingleTapeTM Symbol) in
@[grind =]
lemma Cslib.Turing.SingleTapeTM.Cfg.spaceUsed_haltCfg (tm : SingleTapeTM Symbol) (s : List Symbol) :
    (tm.haltCfg s).spaceUsed = max 1 s.length
Formalizes
CSLib, `Cslib.Turing.SingleTapeTM.Cfg.spaceUsed_haltCfg`
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.Cfg.spaceUsed_haltCfg
--- Cslib/Computability/Machines/Turing/SingleTape/Deterministic.lean:171 (Cslib.Turing.SingleTapeTM.Cfg.spaceUsed_haltCfg)
+++ as compiled here
@@ -1,3 +1,11 @@
-@[scoped grind =]
-lemma Cfg.spaceUsed_haltCfg (tm : SingleTapeTM Symbol) (s : List Symbol) :
+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] (tm : SingleTapeTM Symbol) in
+@[grind =]
+lemma Cslib.Turing.SingleTapeTM.Cfg.spaceUsed_haltCfg (tm : SingleTapeTM Symbol) (s : List Symbol) :
     (tm.haltCfg s).spaceUsed = max 1 s.length := BiTape.spaceUsed_mk₁ s
Verified
08 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 24

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] (tm : SingleTapeTM Symbol) in
@[grind =]
lemma Cslib.Turing.SingleTapeTM.Cfg.spaceUsed_haltCfg (tm : SingleTapeTM Symbol) (s : List Symbol) :
    (tm.haltCfg s).spaceUsed = max 1 s.length := BiTape.spaceUsed_mk₁ s
See it in the graphDiscuss this resultChallenge it