AFTD Auto-Formalizing Theoretical Domains

Cslib.LTS.Total.chooseFLTS

theoremverifiedformalizationimported Lean

The FLTS chosen by chooseFLTS always provides legal transitions.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Cslib Cslib.LTS in
variable {State Label : Type*} {lts : LTS State Label} in
theorem Cslib.LTS.Total.chooseFLTS (lts : LTS State Label) [h : lts.Total] (s : State) (μ : Label) :
    lts.Tr s μ (lts.chooseFLTS.tr s μ)
Formalizes
CSLib, `Cslib.LTS.Total.chooseFLTS`
Lean proof
By Ching-Tsun Chou, from github.com/leanprover/cslib at 3951377e5a3f (Copyright (c) 2026 Ching-Tsun Chou. 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
Classical.choice
Built on 6
  • Cslib.LTS.TotalAn LTS is total iff every state has a μ-derivative for every label μ.
  • Cslib.LTS.chooseFLTSChoose an FLTS that is a "sub-LTS" of a total LTS.
  • Cslib.LTSA Labelled Transition System (LTS) for a type of states (State) and a type of transition labels (Label) consists of a labelled…
  • Cslib.FLTSA Functional Labelled Transition System (FLTS) for a type of states (State) and a type of transition labels (Label) consists of a…
  • Cslib.FLTS.mtr_nil_eqCslib.FLTS.mtr_nil_eq
  • Cslib.FLTS.mtr_concat_eqCslib.FLTS.mtr_concat_eq

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Cslib Cslib.LTS in
variable {State Label : Type*} {lts : LTS State Label} in
/-- The FLTS chosen by `chooseFLTS` always provides legal transitions. -/
theorem Cslib.LTS.Total.chooseFLTS (lts : LTS State Label) [h : lts.Total] (s : State) (μ : Label) :
    lts.Tr s μ (lts.chooseFLTS.tr s μ) :=
  Classical.choose_spec <| h.total s μ
See it in the graphDiscuss this resultChallenge it