AFTD Auto-Formalizing Theoretical Domains

Cslib.LTS.Deterministic

classimported Lean

An lts is deterministic if a state cannot reach different states with the same transition label.

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) in
@[grind]
class Cslib.LTS.Deterministic (lts : LTS State Label)
Defined in
CSLib, `Cslib.LTS.Deterministic`
Lean proof
By Fabrizio Montesi, from github.com/leanprover/cslib at 3951377e5a3f (Copyright (c) 2025 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.
What was changed in Cslib.LTS.Deterministic
--- Cslib/Foundations/Semantics/LTS/Basic.lean:227 (Cslib.LTS.Deterministic)
+++ as compiled here
@@ -1,5 +1,8 @@
-/-- An lts is deterministic if a state cannot reach different states with the same transition
-label. -/
-@[scoped grind]
-class Deterministic (lts : LTS State Label) where
+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) in
+@[grind]
+class Cslib.LTS.Deterministic (lts : LTS State Label) where
   deterministic (s1 : State) (μ : Label) (s2 s3 : State) :
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…
Used by 4

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) in
/-- An lts is deterministic if a state cannot reach different states with the same transition label. -/
@[grind]
class Cslib.LTS.Deterministic (lts : LTS State Label) where
  deterministic (s1 : State) (μ : Label) (s2 s3 : State) :
    lts.Tr s1 μ s2 → lts.Tr s1 μ s3 → s2 = s3
See it in the graphDiscuss this resultChallenge it