• Non ci sono risultati.

Interval vs. Point Temporal Logic Model Checking: an Expressiveness Comparison

N/A
N/A
Protected

Academic year: 2021

Condividi "Interval vs. Point Temporal Logic Model Checking: an Expressiveness Comparison"

Copied!
25
0
0

Testo completo

(1)

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)

(2)

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!

(3)

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!

(4)

Branching (state-based) semantic var. of HS (HS

st

)

hBiϕ

3

ϕ

3

• Branching semantics of past/future operators [5]

(5)

Branching (state-based) semantic var. of HS (HS

st

) φ

1

⟨B⟩ φ

1

φ

1

⟨E⟩ φ

1

• Branching semantics of past/future operators [5]

(6)

Linear-past (computation-tree-based) semantic var. of HS (HS

lp

)

• Similar toCTL+ linear past

• Thepast is linear, finite and cumulative[3, 4]

(7)

A computation tree

v0

{p, s} {q, s}v1

v0

v1

v0 v1

v1 v0 v1

v1

v0 v1 v0 v1

· · ·

· · ·

(8)

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]|= ψ

(9)

Expressiveness comparison

HSlp HSlin

HSst

finitary CTL∗

LTL

CTL

CTL∗

<

̸=

<

̸=

̸=

̸=

̸=

(10)

Equivalence between LTL and HS

lin

(11)

Equivalence between LTL and HS

lin

FO 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)).

(12)

Equivalence between LTL and HS

lin

Theorem (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.

(13)

Equivalence between LTL and HS

lin

Theorem (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.

(14)

Equivalence between LTL and HS

lin

Conversely:

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(ψ12) =⟨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.

(15)

A characterization of HS

lp

(16)

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-CTLlp

(17)

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-CTLlp

(18)

Expressiveness comparison of HS

lin

, HS

st

, HS

lp

(19)

Expressiveness 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

(20)

Expressiveness comparison of HS

lin

, HS

st

, HS

lp

Proposition

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

(21)

Expressiveness comparison of HS

lin

, HS

st

, HS

lp

Proposition

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

(22)

Expressiveness comparison of HS

lin

, HS

st

, HS

lp

• Already proved: CTL≥ HSlp, HSst≥ HSlp(=finitary CTL)

• HSlp, CTL, CTLarenot sensitive to unravelling, HSstis

• the CTL formula∀Fp cannot be expressed in HSlpor HSst

• the (finitary) CTLformula(

((p1Up2)∨ (q1Uq2))U r)

cannot be expressed in CTL [1]

(23)

Expressiveness comparison of HS

lin

, HS

st

, HS

lp

• HSlp, CTL, CTLare 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.

(24)

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.

(25)

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.

Riferimenti

Documenti correlati

This is an important conclusion even if the language we solved the problem for contains only the send operator, because we do believe that it is the core of any other richer

Stable isotope ratios of herbs and spices commonly used as herbal infusions on the Italian market Khatri P.K1,2, Larcher R2,3, Camin F.1,2, Ziller L.1, Tonon A.1, Nardin T.3,

Dionisotti, che sbagliava le date della carcerazione di Botta (da fine 1792 all’estate del 1794, diceva, quando invece nel 1793 era ben fuori dal carcere; vi fu dal 28 maggio 1794 al

In conclusion, results of this study showed that a large part of the differences between combined therapy and single pharmacotherapy registered in BPD patients at the

If on one hand, as the authors try to show through this explorative study, during emergencies CSR could assume a double perspective in terms of strategical

Se il primo è probabilmente quello più diffuso perché riguarda conflitti che spesso hanno un rilievo internazionale (basti pensare al conflitto tra USA e URSS

Cosmology, Ministry of Education; Shanghai Key Laboratory for Particle Physics and Cosmology; Institute of Nuclear and Particle Physics, Shanghai 200240, People ’s Republic of China..

FACT 1: For any Kripke structure K and any BE-nesting depth k ≥ 0, the number of different BE k -descriptors is finite (and thus at least one descriptor has to be associated