Conversions between LTS and Relation. #
def Cslib.LTS.Relation.toLTS {State : Type u_1} {Label : Type u_2} [DecidableEq Label] (r : State → State → Prop) (μ : Label) :
LTS State Label
Any homogeneous relation can be seen as an LTS where all transitions have the same label.
theorem Cslib.LTS.MTr.toReflTransGen {State : Type u_1} {Label : Type u_2} (lts : LTS State Label) {s1 : State} {μs : List Label} {s2 : State} (h : lts.MTr s1 μs s2) :
Relation.ReflTransGen lts.UnlabelledTr s1 s2
A multistep transition induces a reflexive-transitive path in the underlying unlabelled transition relation.
theorem Cslib.LTS.MTr.toTransGen {State : Type u_1} {Label : Type u_2} (lts : LTS State Label) {s1 : State} {μs : List Label} {s2 : State} (h : lts.MTr s1 μs s2) (hne : μs ≠ []) :
Relation.TransGen lts.UnlabelledTr s1 s2
A nonempty multistep transition induces a nonempty path in the underlying unlabelled transition relation.
theorem Cslib.LTS.reflTransGen_unlabelledTr_iff {State : Type u_1} {Label : Type u_2} (lts : LTS State Label) {s1 s2 : State} :
The reflexive-transitive closure of the underlying unlabelled transition relation is exactly reachability in the LTS.
theorem Cslib.LTS.transGen_unlabelledTr_iff {State : Type u_1} {Label : Type u_2} (lts : LTS State Label) {s1 s2 : State} :
The transitive closure of the underlying unlabelled transition relation is exactly the nonempty multistep transitions of the LTS.
Calc tactic support for MTr #
@[instance_reducible]
instance Cslib.LTS.instTransToRelationToRelationConsNil {State : Type u_1} {Label : Type u_2} {μ1 μ2 : Label} (lts : LTS State Label) :
Transitions can be chained.
@[instance_reducible]
instance Cslib.LTS.instTransToRelationToRelationCons {State : Type u_1} {Label : Type u_2} {μ : Label} {μs : List Label} (lts : LTS State Label) :
Transitions can be chained with multi-step transitions.
@[instance_reducible]
instance Cslib.LTS.instTransToRelationToRelationHAppendListConsNil {State : Type u_1} {Label : Type u_2} {μs : List Label} {μ : Label} (lts : LTS State Label) :
Multi-step transitions can be chained with transitions.
@[instance_reducible]
instance Cslib.LTS.instTransToRelationHAppendList {State : Type u_1} {Label : Type u_2} {μs1 μs2 : List Label} (lts : LTS State Label) :
Multi-step transitions can be chained.