Concrete Trace Difference Transformer #
This file formalizes the "Concrete Trace Differences" subsection of the note (Definition 2.6 and Proposition 2.7):
DiffSys: the space of difference systemsDS = (CCS Γ ProcSet) β TraceSet, ordered pointwise by subset inclusion.DTr: the concrete predecessor transformerD_Tr : π³ β π³, defined inductively on trace structure:[] β D_Tr(Ο)(p, Q)iffQ = βa::tr' β D_Tr(Ο)(p, Q)iffβ p' β Der(p, a), tr' β Ο(p', Der(Q, a))
lfpDTr: the least fixpoint ofDTr, defined as the intersection of all pre-fixpoints (KnasterβTarski / Kleene characterisation).traceDifferenceToSet_eq_lfpDTr: the main result, establishingTraceDifferenceToSet env p Q = lfpDTr env p Q.
A difference system maps each pair (p, Q) to a set of traces (Def 2.6 in the note).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The concrete predecessor transformer D_Tr (Definition 2.6).
DTr env Ο p Q tr is defined inductively on the structure of the trace tr:
tr = [](the empty observationβ€): holds iffQ = β, becauseβ€is a distinguishing observation from the empty set of competitors.tr = a :: tr'(the prefixed observationβ¨aβ©tr'): holds iff there exists a successorp' β Der(p, a)such thattr' β Ο(p', Der(Q, a)), propagating distinguishing observations backward along derivatives.
Equations
- One or more equations did not get rendered due to their size.
- EqCheckingAbstractInterpretation.Trace.DTr env Ο p Q [] = β (q : EqCheckingAbstractInterpretation.CCS.CCS Action Name), Β¬Q q
Instances For
The least fixpoint of DTr env, defined proof-theoretically as the intersection
of all pre-fixpoints. Equivalently, by KnasterβTarski, this coincides with the
least element Ο satisfying D_Tr(Ο) β Ο.
Equations
- One or more equations did not get rendered due to their size.
Instances For
TraceDifferenceToSet env is a pre-fixpoint of DTr env.
This is the key step (Part 2, "least among pre-fixpoints") in the proof of
Proposition 2.7: any pre-fixpoint contains the concrete difference, so
lfpDTr env β€ TraceDifferenceToSet env.
Part 1 of the proof of Proposition 2.7: the concrete trace difference is contained
in every pre-fixpoint of DTr env, hence in lfpDTr env.
The proof uses TraceSem.rec with a motive that universally quantifies over Q,
so that the induction hypothesis applies to the shifted set DerivSetOf env Q a
in the cons case.
Proposition 2.7: The concrete trace difference equals the least fixpoint of DTr.
For all p : CCS and Q : ProcSet and tr : Trace:
tr β TraceDifferenceToSet env p Q β tr β lfpDTr env p Q
Proof sketch:
- (β)
TraceDifferenceToSet β lfpDTr: by induction on the derivation ofTraceSem env p tr, with Q universally quantified in the motive so that the IH shifts Q toDerivSetOf env Q ain the cons step. - (β)
lfpDTr β TraceDifferenceToSet: by instantiating the universal quantifier inlfpDTrwithTraceDifferenceToSet envand checking that it is a pre-fixpoint ofDTr env(traceDiff_is_prefixpoint).
Corollary: trace preorder reduces to a fixpoint-emptiness check (Proposition 2.7).
TracePreorder env p q β Β¬ β tr, lfpDTr env p (Β· = q) tr