AFTD Auto-Formalizing Theoretical Domains

Cslib.Turing.StackTape

structureimported Lean

An infinite tape representation using a list of Option values, where the list is eventually none. Represented as a List (Option Symbol) that does not end with none.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
structure Cslib.Turing.StackTape (Symbol : Type*)
Defined in
CSLib, `Cslib.Turing.StackTape`
Lean proof
By Bolton Bailey, 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 54

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
/-- An infinite tape representation using a list of `Option` values, where the list is eventually `none`. Represented as a `List (Option Symbol)` that does not end with `none`. -/
structure Cslib.Turing.StackTape (Symbol : Type*) where
  /-- The underlying list representation -/
  toList : List (Option Symbol)
  /--
  The list can be empty (i.e. `none`),
  but if it is not empty, the last element is not (`some`) `none`
  -/
  toList_getLast?_ne_some_none : toList.getLast? ≠ some none
See it in the graphDiscuss this resultChallenge it