Interval vs. Point Temporal Logic Model Checking: an Expressiveness Comparison
Alberto Molinari
joint work with Laura Bozzelli, Angelo Montanari, Adriano Peron, Pietro Sala Jan 20, 2017
University of Udine, Department of Mathematics, Computer Science, and Physics (DIMA)
HS (state-based) semantics and model checking
Truth of a formula ψ over a track ρ of a Kripke structure K = (AP ,W, δ, µ, w0):
• K , ρ|= p iff p ∈∩
w∈states(ρ)µ(w), for any letter p∈ AP (homogeneity assumption); (?)
• negation, disjunction, and conjunction are standard;
• K , ρ|= ⟨A⟩ ψ iff there is a track ρ′ s.t. lst(ρ) = fst(ρ′)and K , ρ′ |= ψ;
• K , ρ|= ⟨B⟩ ψ iff there is a prefix ρ′ of ρ s.t. K , ρ′|= ψ;
• K , ρ|= ⟨E⟩ ψ iff there is a suffix ρ′ of ρ s.t. K , ρ′|= ψ;
• the semantic clauses for⟨A⟩, ⟨B⟩, and ⟨E⟩ are similar
Model Checking
K |= ψ ⇐⇒ for all initial tracks ρ of K , it holds that K , ρ |= ψ Possiblyinfinitely many tracks!
HS (state-based) semantics and model checking
Truth of a formula ψ over a track ρ of a Kripke structure K = (AP ,W, δ, µ, w0):
• K , ρ|= p iff p ∈∩
w∈states(ρ)µ(w), for any letter p∈ AP (homogeneity assumption); (?)
• negation, disjunction, and conjunction are standard;
• K , ρ|= ⟨A⟩ ψ iff there is a track ρ′ s.t. lst(ρ) = fst(ρ′)and K , ρ′ |= ψ;
• K , ρ|= ⟨B⟩ ψ iff there is a prefix ρ′ of ρ s.t. K , ρ′|= ψ;
• K , ρ|= ⟨E⟩ ψ iff there is a suffix ρ′ of ρ s.t. K , ρ′|= ψ;
• the semantic clauses for⟨A⟩, ⟨B⟩, and ⟨E⟩ are similar Model Checking
K |= ψ ⇐⇒ for all initial tracks ρ of K , it holds that K , ρ |= ψ Possiblyinfinitely many tracks!
Branching (state-based) semantic var. of HS (HS
st)
hBiϕ
3ϕ
3• Branching semantics of past/future operators [5]
Branching (state-based) semantic var. of HS (HS
st) φ
1⟨B⟩ φ
1φ
1⟨E⟩ φ
1• Branching semantics of past/future operators [5]
Linear-past (computation-tree-based) semantic var. of HS (HS
lp)
• Similar toCTL+ linear past
• Thepast is linear, finite and cumulative[3, 4]
A computation tree
v0
{p, s} {q, s}v1
v0
v1
v0 v1
v1 v0 v1
v1
v0 v1 v0 v1
· · ·
· · ·
Linear (trace-based) semantic var. of HS (HS
lin)
• Similar toLTL + PAST
• No branching in past/future
• K |=linψ, iff for each initial infinite path π and for each initial interval [0, i], it holds that ISK ,π, [0, i]|= ψ
Expressiveness comparison
HSlp HSlin
HSst
finitary CTL∗
LTL
CTL
≡ CTL∗
≡
<
̸=
<
̸=
̸=
̸=
̸=
Equivalence between LTL and HS
linEquivalence between LTL and HS
linFO formulasφ:
φ :=p∈ x | x = y | x < y | ¬ φ | φ ∧ φ | ∃x.φ .
Given a HSlinformula ψ⇝ ψFO=∃x((∀z.z ≥ x) ∧ ∀y.h(ψ, x, y))
h(p, x, y) =∀z.((z ≥ x ∧ z ≤ y) → p ∈ z), h(⟨E⟩ψ, x, y) = ∃z.(z > x ∧ z ≤ y ∧ h(ψ, z, y)), h(⟨B⟩ψ, x, y) = ∃z.(z ≥ x ∧ z < y ∧ h(ψ, x, z)), h(⟨E⟩ψ, x, y) = ∃z.(z < x ∧ h(ψ, z, y)), h(⟨B⟩ψ, x, y) = ∃z.(z > y ∧ h(ψ, x, z)).
Equivalence between LTL and HS
linTheorem (Kamp’s Theorem [2])
Given a FO sentence φ over AP, one can construct an LTL formula ψ such that for all Kripke structures K over AP and infinite paths π,
π|= φ ⇐⇒ π, 0 |= ψ.
Theorem LTL≥ HSlin.
Equivalence between LTL and HS
linTheorem (Kamp’s Theorem [2])
Given a FO sentence φ over AP, one can construct an LTL formula ψ such that for all Kripke structures K over AP and infinite paths π,
π|= φ ⇐⇒ π, 0 |= ψ.
Theorem LTL≥ HSlin.
Equivalence between LTL and HS
linConversely:
Theorem
Given an LTL formula φ, we can construct an AB formula ψ such that φin LTL is equivalent to ψ in ABlin.
f(p) = p, f(Xψ) =⟨A⟩(length2∧ ⟨A⟩(length1∧ f(ψ))), f(ψ1Uψ2) =⟨A⟩(
⟨A⟩(length1∧ f(ψ2))∧ [B](⟨A⟩(length1∧ f(ψ1)) )
.
It holds that K |= ψ iff K |=linlength1 → f(ψ) Corollary
HSlinand LTL have the same expressiveness.
A characterization of HS
lpA characterization of HS
lp• finitary CTL∗≤ HSlp:
• BE and LTL define thesame finitary languages, as (a) BE⇝ LTL: Kamp’s th. over finite words
(b) LTL⇝ BE: LTL-closure [6]
• A to simulate∀/∃
• finitary CTL∗≤ HSst
• HSlp≤ finitary CTL∗(CTL∗)
• viahybrid logics: hybrid-CTL∗lp
A characterization of HS
lp• finitary CTL∗≤ HSlp:
• BE and LTL define thesame finitary languages, as (a) BE⇝ LTL: Kamp’s th. over finite words
(b) LTL⇝ BE: LTL-closure [6]
• A to simulate∀/∃
• finitary CTL∗≤ HSst
• HSlp≤ finitary CTL∗(CTL∗)
• viahybrid logics: hybrid-CTL∗lp
Expressiveness comparison of HS
lin, HS
st, HS
lpExpressiveness comparison of HS
lin, HS
st, HS
lp• The reachability property∀G∃Fp is not LTL-expressible, but it is expressible in HSlpand HSst(by⟨B⟩ ⟨E⟩ p)
• but the LTL formula Fp cannot be expressed in HSlpor HSst
Expressiveness comparison of HS
lin, HS
st, HS
lpProposition
The LTL formula F p (equivalent to the CTL formula∀F p) cannot be expressed in either HSlpor HSst.
Proof: We exhibit two families of Kripke structures (Kn)n≥1and (Mn)n≥1over{p} such that
• for all n≥ 1 the LTL formulaF p distinguishes Knand Mn,
• but for every HSstformula ψ of size at most n, ψdoes not distinguish Knand Mn.
Kn:
s0 s1 s2n t
... p
Expressiveness comparison of HS
lin, HS
st, HS
lpProposition
The LTL formula F p (equivalent to the CTL formula∀F p) cannot be expressed in either HSlpor HSst.
Proof: We exhibit two families of Kripke structures (Kn)n≥1and (Mn)n≥1over{p} such that
• for all n≥ 1 the LTL formulaF p distinguishes Knand Mn,
• but for every HSstformula ψ of size at most n, ψdoes not distinguish Knand Mn.
Mn:
s0 s1 s2n t
... p
Expressiveness comparison of HS
lin, HS
st, HS
lp• Already proved: CTL∗≥ HSlp, HSst≥ HSlp(=finitary CTL∗)
• HSlp, CTL, CTL∗arenot sensitive to unravelling, HSstis
• the CTL formula∀Fp cannot be expressed in HSlpor HSst
• the (finitary) CTL∗formula∃(
((p1Up2)∨ (q1Uq2))U r)
cannot be expressed in CTL [1]
Expressiveness comparison of HS
lin, HS
st, HS
lp• HSlp, CTL, CTL∗are not sensitive to unravelling.
K1: p K2: p p
“each state reachable from the initial one where p holds has a predecessor where p holds as well” can be expressed in HSstby:
ψ =⟨E⟩(p ∧ length1)→ ⟨E⟩(length1∧ ⟨A⟩(p ∧ ¬length1)).
Corollary
HSlp̸≥ HSst, hence HSst >HSlp.
References I
E. A. Emerson and J. Y. Halpern.
“Sometimes” and “not never” revisited: on branching versus linear time temporal logic.
Journal of the ACM, 33(1):151–178, 1986.
H. Kamp.
Tense Logic and the Theory of Linear Order.
PhD thesis, Ucla, 1968.
A. Lomuscio and J. Michaliszyn.
An epistemic Halpern-Shoham logic.
In IJCAI, pages 1010–1016, 2013.
A. Lomuscio and J. Michaliszyn.
Decidability of model checking multi-agent systems against a class of EHS specifications.
In ECAI, pages 543–548, 2014.
References II
A. Molinari, A. Montanari, A. Murano, G. Perelli, and A. Peron.
Checking interval properties of computations.
Acta Informatica, 2016.
T. Wilke.
Classifying discrete temporal properties.
In STACS, LNCS 1563, pages 32–46, 1999.