AFTD Auto-Formalizing Theoretical Domains

Cslib.LTS.Stuck

defimported Lean

A state 'is stuck' if it is not terminated and cannot go forward. The definition of Terminated is a parameter.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Cslib in
universe u v in
variable {State : Type u} {Label : Type v} (lts : LTS State Label) (Terminated : State → Prop) in
def Cslib.LTS.Stuck (s : State) : Prop
Defined in
CSLib, `Cslib.LTS.Stuck`
Lean proof
By Fabrizio Montesi, from github.com/leanprover/cslib at 3951377e5a3f (Copyright (c) 2026 Fabrizio Montesi. 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
Built on 1
  • Cslib.LTSA Labelled Transition System (LTS) for a type of states (State) and a type of transition labels (Label) consists of a labelled…

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Cslib in
universe u v in
variable {State : Type u} {Label : Type v} (lts : LTS State Label) (Terminated : State → Prop) in
/-- A state 'is stuck' if it is not terminated and cannot go forward. The definition of `Terminated` is a parameter. -/
def Cslib.LTS.Stuck (s : State) : Prop :=
  ¬Terminated s ∧ ¬∃ μ s', lts.Tr s μ s'
See it in the graphDiscuss this resultChallenge it