AFTD Auto-Formalizing Theoretical Domains

Cslib.LTS.mtrInv_of_trInv

theoremverifiedformalizationimported Lean

Any single-step invariant is also a multistep invariant.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Cslib Cslib.LTS in
universe u v in
variable {State : Type u} {Label : Type v} (lts : LTS State Label) in
theorem Cslib.LTS.mtrInv_of_trInv {lts : LTS State Label} {p : State → Prop}
    (htr : lts.TrInv p) : lts.MTrInv p
Formalizes
CSLib, `Cslib.LTS.mtrInv_of_trInv`
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.
Verified
08 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 6
  • Cslib.LTS.MTrDefinition of a multistep transition. (Implementation note: compared to [Montesi2023], we choose stepL instead of stepR as fundamental…
  • Cslib.LTS.MTr.nil_iffCslib.LTS.MTr.nil_iff
  • Cslib.LTS.TrInvSingle-step invariant.
  • Cslib.LTS.MTr.singleton_iffA 1-sized multistep transition is exactly a single transition with the given label.
  • Cslib.LTS.MTrInvMultistep invariant.
  • 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 inset_option relaxedAutoImplicit true inopen Cslib Cslib.LTS inuniverse u v invariable {State : Type u} {Label : Type v} (lts : LTS State Label) in/-- Any single-step invariant is also a multistep invariant. -/theorem Cslib.LTS.mtrInv_of_trInv {lts : LTS State Label} {p : State → Prop}    (htr : lts.TrInv p) : lts.MTrInv p := by  intro s1 μs s2 h  induction h <;> grind
See it in the graphDiscuss this resultChallenge it