on the expressiveness of tptl and mtl - lsv · on the expressiveness of tptl and mtl patricia...

123
On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS Cachan & CNRS, France February 16, 2006

Upload: others

Post on 30-Jun-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

On the Expressiveness of TPTL and MTL

Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey

Lab. Specification et Verification,ENS Cachan & CNRS, France

February 16, 2006

Page 2: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Model checking

Does a system satisfy some property?

Modelling

E.g. with temporal logics [Pnu77]:

Always(problem ⇒ Eventually alarm)

Specification

Page 3: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Model checking

Does a system satisfy some property?

Modelling

E.g. with temporal logics [Pnu77]:

Always(problem ⇒ Eventually alarm)

Specification

Page 4: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Linear-time Temporal Logic: LTL

LTL allows to express properties over one single path:

running ∧ X problem

problem U alarm

F problem (≡ true U problem)

G running (≡ ¬ F ¬ running)

Page 5: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Linear-time Temporal Logic: LTL

LTL allows to express properties over one single path:

running ∧ X problem

problem U alarm

F problem (≡ true U problem)

G running (≡ ¬ F ¬ running)

Page 6: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Linear-time Temporal Logic: LTL

LTL allows to express properties over one single path:

running ∧ X problem

problem U alarm

F problem (≡ true U problem)

G running (≡ ¬ F ¬ running)

Page 7: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Linear-time Temporal Logic: LTL

LTL allows to express properties over one single path:

running ∧ X problem

problem U alarm

F problem (≡ true U problem)

G running (≡ ¬ F ¬ running)

Page 8: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Linear-time Temporal Logic: LTL

LTL allows to express properties over one single path:

running ∧ X problem

problem U alarm

LTL

Page 9: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Linear-time Temporal Logic: LTL

LTL allows to express properties over one single path:

running ∧ X problem

problem U alarm

LTL

Past-time modalities have symmetric meanings:

G (reboot ⇒ X−1 alarm)

G (alarm ⇒ (alarm S problem))

Page 10: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Linear-time Temporal Logic: LTL

LTL allows to express properties over one single path:

running ∧ X problem

problem U alarm

LTL

Past-time modalities have symmetric meanings:

G (reboot ⇒ X−1 alarm)

G (alarm ⇒ (alarm S problem))

Page 11: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Linear-time Temporal Logic: LTL

LTL allows to express properties over one single path:

running ∧ X problem

problem U alarm

LTL

Past-time modalities have symmetric meanings:

G (reboot ⇒ X−1 alarm)

G (alarm ⇒ (alarm S problem))

LTL+Past

Page 12: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Linear-time Temporal Logic: LTL

LTL allows to express properties over one single path:

running ∧ X problem

problem U alarm

LTL

Past-time modalities have symmetric meanings:

G (reboot ⇒ X−1 alarm)

G (alarm ⇒ (alarm S problem))

LTL+Past

Theorem ([Kam68, GPSS80])

LTL and LTL+Past are equally expressive.

Page 13: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Adding real-time constraints

Timed automata: Finite automata + real-valuedclocks [AD90]

Timed LTL: 2 standard extensions:

MTL [Koy90]: adding subscripts to modalities:

G (problem ⇒ problem U≤5 alarm)

TPTL [AH89]: adding clocks in formulas:

G (problem ⇒ x .[problem U (alarm ∧ x ≤ 5)])

G (problem ⇒ x .F [alarm ∧ F (reboot ∧ x ≤ 5)])

Conjecture ([AH90])

TPTL is strictly more expressive than MTL.

Page 14: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Adding real-time constraints

Timed automata: Finite automata + real-valuedclocks [AD90]

Timed LTL: 2 standard extensions:

MTL [Koy90]: adding subscripts to modalities:

G (problem ⇒ problem U≤5 alarm)

TPTL [AH89]: adding clocks in formulas:

G (problem ⇒ x .[problem U (alarm ∧ x ≤ 5)])

G (problem ⇒ x .F [alarm ∧ F (reboot ∧ x ≤ 5)])

Conjecture ([AH90])

TPTL is strictly more expressive than MTL.

Page 15: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Adding real-time constraints

Timed automata: Finite automata + real-valuedclocks [AD90]

Timed LTL: 2 standard extensions:

MTL [Koy90]: adding subscripts to modalities:

G (problem ⇒ problem U≤5 alarm)

TPTL [AH89]: adding clocks in formulas:

G (problem ⇒ x .[problem U (alarm ∧ x ≤ 5)])

G (problem ⇒ x .F [alarm ∧ F (reboot ∧ x ≤ 5)])

Conjecture ([AH90])

TPTL is strictly more expressive than MTL.

Page 16: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Adding real-time constraints

Timed automata: Finite automata + real-valuedclocks [AD90]

Timed LTL: 2 standard extensions:

MTL [Koy90]: adding subscripts to modalities:

G (problem ⇒ problem U≤5 alarm)

TPTL [AH89]: adding clocks in formulas:

G (problem ⇒ x .[problem U (alarm ∧ x ≤ 5)])

G (problem ⇒ x .F [alarm ∧ F (reboot ∧ x ≤ 5)])

Conjecture ([AH90])

TPTL is strictly more expressive than MTL.

Page 17: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Adding real-time constraints

Timed automata: Finite automata + real-valuedclocks [AD90]

Timed LTL: 2 standard extensions:

MTL [Koy90]: adding subscripts to modalities:

G (problem ⇒ problem U≤5 alarm)

TPTL [AH89]: adding clocks in formulas:

G (problem ⇒ x .[problem U (alarm ∧ x ≤ 5)])

G (problem ⇒ x .F [alarm ∧ F (reboot ∧ x ≤ 5)])

Conjecture ([AH90])

TPTL is strictly more expressive than MTL.

Page 18: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Adding real-time constraints

Timed automata: Finite automata + real-valuedclocks [AD90]

Timed LTL: 2 standard extensions:

MTL [Koy90]: adding subscripts to modalities:

G (problem ⇒ problem U≤5 alarm)

TPTL [AH89]: adding clocks in formulas:

G (problem ⇒ x .[problem U (alarm ∧ x ≤ 5)])

G (problem ⇒ x .F [alarm ∧ F (reboot ∧ x ≤ 5)])

Conjecture ([AH90])

TPTL is strictly more expressive than MTL.

Page 19: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Outline of the talk

1 Introduction

2 DefinitionsTwo frameworks: pointwise and continuousSemantics of TPTL and MTL

3 Expressiveness of TPTL and MTL

Alur and Henzinger’s conjectureThe formula can be expressed......but the conjecture holds!

4 What if we only allow the F modality?TPTLF and MTLF are equally expressiveAn interesting corollary

Page 20: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Outline of the talk

1 Introduction

2 DefinitionsTwo frameworks: pointwise and continuousSemantics of TPTL and MTL

3 Expressiveness of TPTL and MTL

Alur and Henzinger’s conjectureThe formula can be expressed......but the conjecture holds!

4 What if we only allow the F modality?TPTLF and MTLF are equally expressiveAn interesting corollary

Page 21: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Two possible semantics for a timed path

pointwise semantics: discrete view of a continuous system:

timed word: ((wi )i∈N, (ti)i∈N)

word in (2AP)N sequence of dates in (Q+)N

interval-based: continuous view of the system:

timed state sequence: ((wi )i∈N, (Ii)i∈N)

Page 22: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Two possible semantics for a timed path

pointwise semantics: discrete view of a continuous system:

timed word: ((wi )i∈N, (ti)i∈N)

ε, 0 problem, 1.7 alarm, 3.9 reboot, 5.7

interval-based: continuous view of the system:

timed state sequence: ((wi )i∈N, (Ii)i∈N)

Page 23: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Two possible semantics for a timed path

pointwise semantics: discrete view of a continuous system:

timed word: ((wi )i∈N, (ti)i∈N)

ε, 0 problem, 1.7 alarm, 3.9 reboot, 5.7

interval-based: continuous view of the system:

timed state sequence: ((wi )i∈N, (Ii)i∈N)

word in (2AP)N sequence of intervals of R+

Page 24: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Two possible semantics for a timed path

pointwise semantics: discrete view of a continuous system:

timed word: ((wi )i∈N, (ti)i∈N)

ε, 0 problem, 1.7 alarm, 3.9 reboot, 5.7

interval-based: continuous view of the system:

timed state sequence: ((wi )i∈N, (Ii)i∈N)

running running

problem

running

problem

alarm

reboot

0 1.1 2.7 4.4

Page 25: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

where p ranges over AP and I is an interval with boundsin Q+ ∪ {+∞}.

Pointwise semantics of MTL: over π = ((wi )i , (ti)i ):

π, i |= φ UI ψ iff there exists some j > 0 s.t.

– π, i + j |= ψ,

– π, i + k |= φ for all 0 < k < j ,

– ti+j − ti ∈ I .

Examples:

Page 26: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

where p ranges over AP and I is an interval with boundsin Q+ ∪ {+∞}.

Pointwise semantics of MTL: over π = ((wi )i , (ti)i ):

π, i |= φ UI ψ iff there exists some j > 0 s.t.

– π, i + j |= ψ,

– π, i + k |= φ for all 0 < k < j ,

– ti+j − ti ∈ I .

Examples:

Page 27: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

where p ranges over AP and I is an interval with boundsin Q+ ∪ {+∞}.

Pointwise semantics of MTL: over π = ((wi )i , (ti)i ):

π, i |= φ UI ψ iff there exists some j > 0 s.t.

– π, i + j |= ψ,

– π, i + k |= φ for all 0 < k < j ,

– ti+j − ti ∈ I .

Examples:

problem U≤5 alarmproblem

4.5

alarm

8.5

reboot

11.5

Page 28: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

where p ranges over AP and I is an interval with boundsin Q+ ∪ {+∞}.

Pointwise semantics of MTL: over π = ((wi )i , (ti)i ):

π, i |= φ UI ψ iff there exists some j > 0 s.t.

– π, i + j |= ψ,

– π, i + k |= φ for all 0 < k < j ,

– ti+j − ti ∈ I .

Examples:

problem U≤5 alarmproblem

4.5

alarm

8.5

reboot

11.5✔

Page 29: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

where p ranges over AP and I is an interval with boundsin Q+ ∪ {+∞}.

Pointwise semantics of MTL: over π = ((wi )i , (ti)i ):

π, i |= φ UI ψ iff there exists some j > 0 s.t.

– π, i + j |= ψ,

– π, i + k |= φ for all 0 < k < j ,

– ti+j − ti ∈ I .

Examples:

false U alarmproblem

4.5

alarm

8.5

reboot

11.5

Page 30: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

where p ranges over AP and I is an interval with boundsin Q+ ∪ {+∞}.

Pointwise semantics of MTL: over π = ((wi )i , (ti)i ):

π, i |= φ UI ψ iff there exists some j > 0 s.t.

– π, i + j |= ψ,

– π, i + k |= φ for all 0 < k < j ,

– ti+j − ti ∈ I .

Examples:

false U alarmproblem

4.5

alarm

8.5

reboot

11.5✔

Page 31: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

where p ranges over AP and I is an interval with boundsin Q+ ∪ {+∞}.

Pointwise semantics of MTL: over π = ((wi )i , (ti)i ):

π, i |= φ UI ψ iff there exists some j > 0 s.t.

– π, i + j |= ψ,

– π, i + k |= φ for all 0 < k < j ,

– ti+j − ti ∈ I .

Examples:

false U alarm

≡ X alarmproblem

4.5

alarm

8.5

reboot

11.5✔

Page 32: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

where p ranges over AP and I is an interval with boundsin Q+ ∪ {+∞}.

Pointwise semantics of MTL: over π = ((wi )i , (ti)i ):

π, i |= φ UI ψ iff there exists some j > 0 s.t.

– π, i + j |= ψ,

– π, i + k |= φ for all 0 < k < j ,

– ti+j − ti ∈ I .

Examples:

F[5,6] (alarm ∨ reboot)problem

4.5

alarm

8.5

reboot

11.5

Page 33: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

where p ranges over AP and I is an interval with boundsin Q+ ∪ {+∞}.

Pointwise semantics of MTL: over π = ((wi )i , (ti)i ):

π, i |= φ UI ψ iff there exists some j > 0 s.t.

– π, i + j |= ψ,

– π, i + k |= φ for all 0 < k < j ,

– ti+j − ti ∈ I .

Examples:

F[5,6] (alarm ∨ reboot)problem

4.5

alarm

8.5

reboot

11.5✘

Page 34: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

where p ranges over AP and I is an interval with boundsin Q+ ∪ {+∞}.

Pointwise semantics of MTL: over π = ((wi )i , (ti)i ):

π, i |= φ UI ψ iff there exists some j > 0 s.t.

– π, i + j |= ψ,

– π, i + k |= φ for all 0 < k < j ,

– ti+j − ti ∈ I .

Examples:

F=7 rebootproblem

4.5

alarm

8.5

reboot

11.5

Page 35: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

where p ranges over AP and I is an interval with boundsin Q+ ∪ {+∞}.

Pointwise semantics of MTL: over π = ((wi )i , (ti)i ):

π, i |= φ UI ψ iff there exists some j > 0 s.t.

– π, i + j |= ψ,

– π, i + k |= φ for all 0 < k < j ,

– ti+j − ti ∈ I .

Examples:

F=7 rebootproblem

4.5

alarm

8.5

reboot

11.5✔

Page 36: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

where p ranges over AP and I is an interval with boundsin Q+ ∪ {+∞}.

Pointwise semantics of MTL: over π = ((wi )i , (ti)i ):

π, i |= φ UI ψ iff there exists some j > 0 s.t.

– π, i + j |= ψ,

– π, i + k |= φ for all 0 < k < j ,

– ti+j − ti ∈ I .

Examples:

F=4 (F=3 reboot)problem

4.5

alarm

8.5

reboot

11.5

Page 37: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

where p ranges over AP and I is an interval with boundsin Q+ ∪ {+∞}.

Pointwise semantics of MTL: over π = ((wi )i , (ti)i ):

π, i |= φ UI ψ iff there exists some j > 0 s.t.

– π, i + j |= ψ,

– π, i + k |= φ for all 0 < k < j ,

– ti+j − ti ∈ I .

Examples:

F=4 (F=3 reboot)problem

4.5

alarm

8.5

reboot

11.5✔

Page 38: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

where p ranges over AP and I is an interval with boundsin Q+ ∪ {+∞}.

Pointwise semantics of MTL: over π = ((wi )i , (ti)i ):

π, i |= φ UI ψ iff there exists some j > 0 s.t.

– π, i + j |= ψ,

– π, i + k |= φ for all 0 < k < j ,

– ti+j − ti ∈ I .

Examples:

F=3 (F=4 reboot)problem

4.5

alarm

8.5

reboot

11.5

Page 39: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

where p ranges over AP and I is an interval with boundsin Q+ ∪ {+∞}.

Pointwise semantics of MTL: over π = ((wi )i , (ti)i ):

π, i |= φ UI ψ iff there exists some j > 0 s.t.

– π, i + j |= ψ,

– π, i + k |= φ for all 0 < k < j ,

– ti+j − ti ∈ I .

Examples:

F=3 (F=4 reboot)problem

4.5

alarm

8.5

reboot

11.5✘

Page 40: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of TPTL:

TPTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ U φ | x ∼ c | x . φ

where p ranges over AP, x ranges over a set of formulaclocks, c ∈ Q+ and ∼ ∈ {<,≤,=,≥, >}.

Pointwise semantics of TPTL: over π = ((wi)i , (ti)i ):π, i , τ |= x ∼ c iff τ (x) ∼ c

π, i , τ |= x . φ iff π, i , τ [x←0] |= φ

π, i , τ |= φ U ψ iff there exists some j > 0 s.t.– π, i + j , τ + ti+j − ti |= ψ,

– π, i + k , τ + ti+k − ti |= φ for all 0 < k < j .

Examples:

Page 41: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of TPTL:

TPTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ U φ | x ∼ c | x . φ

where p ranges over AP, x ranges over a set of formulaclocks, c ∈ Q+ and ∼ ∈ {<,≤,=,≥, >}.

Pointwise semantics of TPTL: over π = ((wi)i , (ti)i ):π, i , τ |= x ∼ c iff τ (x) ∼ c

π, i , τ |= x . φ iff π, i , τ [x←0] |= φ

π, i , τ |= φ U ψ iff there exists some j > 0 s.t.– π, i + j , τ + ti+j − ti |= ψ,

– π, i + k , τ + ti+k − ti |= φ for all 0 < k < j .

Examples:

Page 42: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of TPTL:

TPTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ U φ | x ∼ c | x . φ

where p ranges over AP, x ranges over a set of formulaclocks, c ∈ Q+ and ∼ ∈ {<,≤,=,≥, >}.

Pointwise semantics of TPTL: over π = ((wi)i , (ti)i ):π, i , τ |= x ∼ c iff τ (x) ∼ c

π, i , τ |= x . φ iff π, i , τ [x←0] |= φ

π, i , τ |= φ U ψ iff there exists some j > 0 s.t.– π, i + j , τ + ti+j − ti |= ψ,

– π, i + k , τ + ti+k − ti |= φ for all 0 < k < j .

Examples:

Page 43: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of TPTL:

TPTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ U φ | x ∼ c | x . φ

where p ranges over AP, x ranges over a set of formulaclocks, c ∈ Q+ and ∼ ∈ {<,≤,=,≥, >}.

Pointwise semantics of TPTL: over π = ((wi)i , (ti)i ):π, i , τ |= x ∼ c iff τ (x) ∼ c

π, i , τ |= x . φ iff π, i , τ [x←0] |= φ

π, i , τ |= φ U ψ iff there exists some j > 0 s.t.– π, i + j , τ + ti+j − ti |= ψ,

– π, i + k , τ + ti+k − ti |= φ for all 0 < k < j .

Examples:

Page 44: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of TPTL:

TPTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ U φ | x ∼ c | x . φ

where p ranges over AP, x ranges over a set of formulaclocks, c ∈ Q+ and ∼ ∈ {<,≤,=,≥, >}.

Pointwise semantics of TPTL: over π = ((wi)i , (ti)i ):π, i , τ |= x ∼ c iff τ (x) ∼ c

π, i , τ |= x . φ iff π, i , τ [x←0] |= φ

π, i , τ |= φ U ψ iff there exists some j > 0 s.t.– π, i + j , τ + ti+j − ti |= ψ,

– π, i + k , τ + ti+k − ti |= φ for all 0 < k < j .

Examples:

x . (problem U (alarm ∧ x ≤ 5))problem

4.5

alarm

8.5

reboot

11.5

Page 45: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of TPTL:

TPTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ U φ | x ∼ c | x . φ

where p ranges over AP, x ranges over a set of formulaclocks, c ∈ Q+ and ∼ ∈ {<,≤,=,≥, >}.

Pointwise semantics of TPTL: over π = ((wi)i , (ti)i ):π, i , τ |= x ∼ c iff τ (x) ∼ c

π, i , τ |= x . φ iff π, i , τ [x←0] |= φ

π, i , τ |= φ U ψ iff there exists some j > 0 s.t.– π, i + j , τ + ti+j − ti |= ψ,

– π, i + k , τ + ti+k − ti |= φ for all 0 < k < j .

Examples:

x . (problem U (alarm ∧ x ≤ 5))problem

4.5

alarm

8.5

reboot

11.5✔

Page 46: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of TPTL:

TPTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ U φ | x ∼ c | x . φ

where p ranges over AP, x ranges over a set of formulaclocks, c ∈ Q+ and ∼ ∈ {<,≤,=,≥, >}.

Pointwise semantics of TPTL: over π = ((wi)i , (ti)i ):π, i , τ |= x ∼ c iff τ (x) ∼ c

π, i , τ |= x . φ iff π, i , τ [x←0] |= φ

π, i , τ |= φ U ψ iff there exists some j > 0 s.t.– π, i + j , τ + ti+j − ti |= ψ,

– π, i + k , τ + ti+k − ti |= φ for all 0 < k < j .

Examples:

x . (problem U (alarm ∧ x ≤ 5))

≡ problem U≤5 alarmproblem

4.5

alarm

8.5

reboot

11.5✔

Page 47: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of TPTL:

TPTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ U φ | x ∼ c | x . φ

where p ranges over AP, x ranges over a set of formulaclocks, c ∈ Q+ and ∼ ∈ {<,≤,=,≥, >}.

Pointwise semantics of TPTL: over π = ((wi)i , (ti)i ):π, i , τ |= x ∼ c iff τ (x) ∼ c

π, i , τ |= x . φ iff π, i , τ [x←0] |= φ

π, i , τ |= φ U ψ iff there exists some j > 0 s.t.– π, i + j , τ + ti+j − ti |= ψ,

– π, i + k , τ + ti+k − ti |= φ for all 0 < k < j .

Examples:

x . F (alarm ∧ F (reboot ∧ x ≤ 8))problem

4.5

alarm

8.5

reboot

11.5

Page 48: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the pointwise semantics

Syntax of TPTL:

TPTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ U φ | x ∼ c | x . φ

where p ranges over AP, x ranges over a set of formulaclocks, c ∈ Q+ and ∼ ∈ {<,≤,=,≥, >}.

Pointwise semantics of TPTL: over π = ((wi)i , (ti)i ):π, i , τ |= x ∼ c iff τ (x) ∼ c

π, i , τ |= x . φ iff π, i , τ [x←0] |= φ

π, i , τ |= φ U ψ iff there exists some j > 0 s.t.– π, i + j , τ + ti+j − ti |= ψ,

– π, i + k , τ + ti+k − ti |= φ for all 0 < k < j .

Examples:

x . F (alarm ∧ F (reboot ∧ x ≤ 8))problem

4.5

alarm

8.5

reboot

11.5✔

Page 49: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the continuous semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

Continuous semantics of MTL: over π = ((wi)i , (Ii)i ):π, t |= φ UI ψ iff there exists some u ≥ 0 s.t.

– π, t + u |= ψ,

– π, t + v |= φ for all 0 < v < u,

– u ∈ I .

π, t |= p iff for some i , p ∈ wi and t ∈ Ii .

Examples:

Page 50: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the continuous semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

Continuous semantics of MTL: over π = ((wi)i , (Ii)i ):π, t |= φ UI ψ iff there exists some u ≥ 0 s.t.

– π, t + u |= ψ,

– π, t + v |= φ for all 0 < v < u,

– u ∈ I .

π, t |= p iff for some i , p ∈ wi and t ∈ Ii .

Examples:

Page 51: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the continuous semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

Continuous semantics of MTL: over π = ((wi)i , (Ii)i ):π, t |= φ UI ψ iff there exists some u ≥ 0 s.t.

– π, t + u |= ψ,

– π, t + v |= φ for all 0 < v < u,

– u ∈ I .

π, t |= p iff for some i , p ∈ wi and t ∈ Ii .

Examples:

Page 52: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the continuous semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

Continuous semantics of MTL: over π = ((wi)i , (Ii)i ):π, t |= φ UI ψ iff there exists some u ≥ 0 s.t.

– π, t + u |= ψ,

– π, t + v |= φ for all 0 < v < u,

– u ∈ I .

π, t |= p iff for some i , p ∈ wi and t ∈ Ii .

Examples:

running U≥5 problemrunning

3.7

problem

11.5

Page 53: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the continuous semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

Continuous semantics of MTL: over π = ((wi)i , (Ii)i ):π, t |= φ UI ψ iff there exists some u ≥ 0 s.t.

– π, t + u |= ψ,

– π, t + v |= φ for all 0 < v < u,

– u ∈ I .

π, t |= p iff for some i , p ∈ wi and t ∈ Ii .

Examples:

running U≥5 problemrunning

3.7

problem

11.5

Page 54: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the continuous semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

Continuous semantics of MTL: over π = ((wi)i , (Ii)i ):π, t |= φ UI ψ iff there exists some u ≥ 0 s.t.

– π, t + u |= ψ,

– π, t + v |= φ for all 0 < v < u,

– u ∈ I .

π, t |= p iff for some i , p ∈ wi and t ∈ Ii .

Examples:

F=4 (F=3 running)running

3.7

problem

6.3

running

8

Page 55: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the continuous semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

Continuous semantics of MTL: over π = ((wi)i , (Ii)i ):π, t |= φ UI ψ iff there exists some u ≥ 0 s.t.

– π, t + u |= ψ,

– π, t + v |= φ for all 0 < v < u,

– u ∈ I .

π, t |= p iff for some i , p ∈ wi and t ∈ Ii .

Examples:

F=4 (F=3 running)running

3.7

problem

6.3

running

8

Page 56: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the continuous semantics

Syntax of MTL:

MTL ∋ φ ::= p | ¬φ | φ ∨ φ | φ UI φ

Continuous semantics of MTL: over π = ((wi)i , (Ii)i ):π, t |= φ UI ψ iff there exists some u ≥ 0 s.t.

– π, t + u |= ψ,

– π, t + v |= φ for all 0 < v < u,

– u ∈ I .

π, t |= p iff for some i , p ∈ wi and t ∈ Ii .

Examples:

F=4 (F=3 running)

≡ F=3 (F=4 running)running

3.7

problem

6.3

running

8

Page 57: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the continuous semantics

Syntax of TPTL:

TPTL ∋ φ ::= p | x ∼ c | ¬φ | φ ∨ φ | φ U φ | x . φ

Continuous semantics of TPTL: over π = ((wi )i , (Ii )i):

π, t, τ |= x ∼ c iff τ (x) ∼ c

π, t, τ |= x . φ iff π, t, τ [x←0] |= φ

π, t, τ |= φ U ψ iff there exists some u > 0 s.t.

– π, t + u, τ + u − t |= ψ,

– π, t + v , τ + v − t |= φ for all 0 < v < u.

Examples:

Page 58: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the continuous semantics

Syntax of TPTL:

TPTL ∋ φ ::= p | x ∼ c | ¬φ | φ ∨ φ | φ U φ | x . φ

Continuous semantics of TPTL: over π = ((wi )i , (Ii )i):

π, t, τ |= x ∼ c iff τ (x) ∼ c

π, t, τ |= x . φ iff π, t, τ [x←0] |= φ

π, t, τ |= φ U ψ iff there exists some u > 0 s.t.

– π, t + u, τ + u − t |= ψ,

– π, t + v , τ + v − t |= φ for all 0 < v < u.

Examples:

Page 59: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the continuous semantics

Syntax of TPTL:

TPTL ∋ φ ::= p | x ∼ c | ¬φ | φ ∨ φ | φ U φ | x . φ

Continuous semantics of TPTL: over π = ((wi )i , (Ii )i):

π, t, τ |= x ∼ c iff τ (x) ∼ c

π, t, τ |= x . φ iff π, t, τ [x←0] |= φ

π, t, τ |= φ U ψ iff there exists some u > 0 s.t.

– π, t + u, τ + u − t |= ψ,

– π, t + v , τ + v − t |= φ for all 0 < v < u.

Examples:

Page 60: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the continuous semantics

Syntax of TPTL:

TPTL ∋ φ ::= p | x ∼ c | ¬φ | φ ∨ φ | φ U φ | x . φ

Continuous semantics of TPTL: over π = ((wi )i , (Ii )i):

π, t, τ |= x ∼ c iff τ (x) ∼ c

π, t, τ |= x . φ iff π, t, τ [x←0] |= φ

π, t, τ |= φ U ψ iff there exists some u > 0 s.t.

– π, t + u, τ + u − t |= ψ,

– π, t + v , τ + v − t |= φ for all 0 < v < u.

Examples:

Page 61: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the continuous semantics

Syntax of TPTL:

TPTL ∋ φ ::= p | x ∼ c | ¬φ | φ ∨ φ | φ U φ | x . φ

Continuous semantics of TPTL: over π = ((wi )i , (Ii )i):

π, t, τ |= x ∼ c iff τ (x) ∼ c

π, t, τ |= x . φ iff π, t, τ [x←0] |= φ

π, t, τ |= φ U ψ iff there exists some u > 0 s.t.

– π, t + u, τ + u − t |= ψ,

– π, t + v , τ + v − t |= φ for all 0 < v < u.

Examples:

x . G (x ≤ 5 ⇒ ¬ problem)running

3.7

problem

11.5

Page 62: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

TPTL and MTL in the continuous semantics

Syntax of TPTL:

TPTL ∋ φ ::= p | x ∼ c | ¬φ | φ ∨ φ | φ U φ | x . φ

Continuous semantics of TPTL: over π = ((wi )i , (Ii )i):

π, t, τ |= x ∼ c iff τ (x) ∼ c

π, t, τ |= x . φ iff π, t, τ [x←0] |= φ

π, t, τ |= φ U ψ iff there exists some u > 0 s.t.

– π, t + u, τ + u − t |= ψ,

– π, t + v , τ + v − t |= φ for all 0 < v < u.

Examples:

x . G (x ≤ 5 ⇒ ¬ problem)running

3.7

problem

11.5

Page 63: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Outline of the talk

1 Introduction

2 DefinitionsTwo frameworks: pointwise and continuousSemantics of TPTL and MTL

3 Expressiveness of TPTL and MTL

Alur and Henzinger’s conjectureThe formula can be expressed......but the conjecture holds!

4 What if we only allow the F modality?TPTLF and MTLF are equally expressiveAn interesting corollary

Page 64: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Alur and Henzinger’s conjecture

Clearly, MTL can be translated into TPTL:

φ UI ψ ≡ x . φ U (ψ ∧ x ∈ I ).

Conjecture ([AH90])

TPTL is strictly more expressive than MTL,

the TPTL formula

G (a ⇒ x . F (b ∧ F (c ∧ x ≤ 2))

cannot be expressed in MTL.

Page 65: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Alur and Henzinger’s conjecture

Clearly, MTL can be translated into TPTL:

φ UI ψ ≡ x . φ U (ψ ∧ x ∈ I ).

Conjecture ([AH90])

TPTL is strictly more expressive than MTL,

the TPTL formula

G (a ⇒ x . F (b ∧ F (c ∧ x ≤ 2))

cannot be expressed in MTL.

Page 66: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

The formula can be expressed...

It turns out that the formula can be expressed in MTL:

G (a ⇒ x . F (b ∧ F (c ∧ x ≤ 2))

a

0 1 2

G a ⇒

F≤1 b ∧ F[1,2] c

F≤1 (b ∧ F≤1 c)∨

F≤1 (F≤1 b ∧ F=1 c)

Page 67: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

The formula can be expressed...

It turns out that the formula can be expressed in MTL:

G (a ⇒ x . F (b ∧ F (c ∧ x ≤ 2))

a

0 1 2

G a ⇒

F≤1 b ∧ F[1,2] c

F≤1 (b ∧ F≤1 c)∨

F≤1 (F≤1 b ∧ F=1 c)

Page 68: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

The formula can be expressed...

It turns out that the formula can be expressed in MTL:

G (a ⇒ x . F (b ∧ F (c ∧ x ≤ 2))

a b c

0 1 2

G a ⇒

F≤1 b ∧ F[1,2] c

F≤1 (b ∧ F≤1 c)∨

F≤1 (F≤1 b ∧ F=1 c)

Page 69: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

The formula can be expressed...

It turns out that the formula can be expressed in MTL:

G (a ⇒ x . F (b ∧ F (c ∧ x ≤ 2))

a b c

0 1 2

G a ⇒

F≤1 b ∧ F[1,2] c

F≤1 (b ∧ F≤1 c)∨

F≤1 (F≤1 b ∧ F=1 c)

Page 70: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

The formula can be expressed...

It turns out that the formula can be expressed in MTL:

G (a ⇒ x . F (b ∧ F (c ∧ x ≤ 2))

a b c

0 1 2

G a ⇒

F≤1 b ∧ F[1,2] c

F≤1 (b ∧ F≤1 c)∨

F≤1 (F≤1 b ∧ F=1 c)

Page 71: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

The formula can be expressed...

It turns out that the formula can be expressed in MTL:

G (a ⇒ x . F (b ∧ F (c ∧ x ≤ 2))

a b c

F=1 c

0 1 2

G a ⇒

F≤1 b ∧ F[1,2] c

F≤1 (b ∧ F≤1 c)∨

F≤1 (F≤1 b ∧ F=1 c)

Page 72: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

The formula can be expressed...

It turns out that the formula can be expressed in MTL:

G (a ⇒ x . F (b ∧ F (c ∧ x ≤ 2))

a b c

F=1 c

0 1 2

G a ⇒

F≤1 b ∧ F[1,2] c

F≤1 (b ∧ F≤1 c)∨

F≤1 (F≤1 b ∧ F=1 c)

Page 73: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

The formula can be expressed...

x . F (b ∧ F (c ∧ x ≤ 2)) ≡

F≤1 b ∧ F=1 F≤1 c

F≤1 (b ∧ F≤1 c)∨

F≤1 (F≤1 b ∧ F=1 c)

Several remarks:

of course, it does not mean that TPTL ≡ MTL.

the formulas are equivalent only for the continuous semantics.

Page 74: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

The formula can be expressed...

x . F (b ∧ F (c ∧ x ≤ 2)) ≡

F≤1 b ∧ F=1 F≤1 c

F≤1 (b ∧ F≤1 c)∨

F≤1 (F≤1 b ∧ F=1 c)

Several remarks:

of course, it does not mean that TPTL ≡ MTL.

the formulas are equivalent only for the continuous semantics.

Page 75: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

The formula can be expressed...

x . F (b ∧ F (c ∧ x ≤ 2)) ≡

F≤1 b ∧ F=1 F≤1 c

F≤1 (b ∧ F≤1 c)∨

F≤1 (F≤1 b ∧ F=1 c)

Several remarks:

of course, it does not mean that TPTL ≡ MTL.

the formulas are equivalent only for the continuous semantics.

Page 76: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

... but the result still holds!

We prove the following results:

Theorem

TPTL is strictly more expressive than MTL for both

semantics,

the TPTL formula

G (a ⇒ x . F (b ∧ F (c ∧ x ≤ 2))

cannot be expressed in MTL under the pointwise semantics,

the TPTL formula

x . F (a ∧ x ≤ 1 ∧ (¬ b) U (a ∧ x ≥ 1))

cannot be expressed in MTL under both semantics.

Page 77: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

How to prove expressiveness results?

How to prove that a TPTL formula φ can’t be expressed in MTL?

Find two models A and B such that

A |= φ and B 6|= φ,

any MTL formula is either true on both or false on both

Problem: if A and B differ at some point t, the modality F=t

permits to distinguish them... (distinguishing power)

Find two families of models (Ai )i and (Bi )i s.t.

Ai |= φ and Bi 6|= φ, for any i ,

for any MTL formula ψ, there exists an index i s.t. ψ is eithertrue on both Ai and Bi , or false on both Ai and Bi .

Page 78: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

How to prove expressiveness results?

How to prove that a TPTL formula φ can’t be expressed in MTL?

Find two models A and B such that

A |= φ and B 6|= φ,

any MTL formula is either true on both or false on both

Problem: if A and B differ at some point t, the modality F=t

permits to distinguish them... (distinguishing power)

Find two families of models (Ai )i and (Bi )i s.t.

Ai |= φ and Bi 6|= φ, for any i ,

for any MTL formula ψ, there exists an index i s.t. ψ is eithertrue on both Ai and Bi , or false on both Ai and Bi .

Page 79: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Alur and Henzinger’s formula in the pointwise semantics

Let φ = x . F (b ∧ F (c ∧ x ≤ 2)

Let ψ be an MTL formula.

n = temporal height of ψ = maximum number of nestedmodalities in ψ,p = granularity of ψ = inverse of the least commondenominator of the constants appearing in ψ.

→ we assume that the constants of ψ are multiples of p.

We build the following two families of models:

c c c c c c c cb b b b b

22−p

c c c c c c c cb b b b

22−p

p/n p/4n

An,p

Bn,p

Page 80: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Alur and Henzinger’s formula in the pointwise semantics

Let φ = x . F (b ∧ F (c ∧ x ≤ 2)

Let ψ be an MTL formula.

c c c c c c c cb b b b b

22−p

c c c c c c c cb b b b

22−p

p/n p/4n

An,p

Bn,p

Lemma

An,p, 0 |= φ and Bn,p, 0 6|= φ

For any formula ψ of MTL with temporal height n andgranularity p,

An+3,p, 0 |= ψ ⇔ Bn+3,p, 0 |= ψ

Page 81: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Alur and Henzinger’s formula in the pointwise semantics

Let φ =(

((

((

((

((

((

(

x . F (b ∧ F (c ∧ x ≤ 2) F≤2 (c ∧ F−1 b)

Let ψ be an MTL formula.

c c c c c c c cb b b b b

22−p

c c c c c c c cb b b b

22−p

p/n p/4n

An,p

Bn,p

Lemma

An,p, 0 |= φ and Bn,p, 0 6|= φ

For any formula ψ of MTL with temporal height n andgranularity p,

An+3,p, 0 |= ψ ⇔ Bn+3,p, 0 |= ψ

Page 82: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Results for the pointwise semantics

Theorem

Under the pointwise semantics:

TPTL is strictly more expressive than MTL,

MTL+Past is strictly more expressive than MTL,

MITL+Past is strictly more expressive than MITL.

Nota: MITL is the fragment of MTL where punctuality is notallowed, i.e., where timing constraints cannot be singular.

Page 83: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

A new formula for the continuous semantics

Let φ = x . F (a ∧ x ≤ 1 ∧ G (x ≤ 1 ⇒ ¬ b))

We build the following two families of models:

b b b

p/2 1−p/2 1

b b b

p/2n p/12n

A′n,p

B ′n,p

︸ ︷︷ ︸

n times a

Page 84: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

A new formula for the continuous semantics

Let φ = x . F (a ∧ x ≤ 1 ∧ G (x ≤ 1 ⇒ ¬ b))

We build the following two families of models:

b b b

p/2 1−p/2 1

b b b

p/2n p/12n

A′n,p

B ′n,p

︸ ︷︷ ︸

n times a

Page 85: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

A new formula for the continuous semantics

Let φ = x . F (a ∧ x ≤ 1 ∧ G (x ≤ 1 ⇒ ¬ b))

We build the following two families of models:

b b b

p/2 1−p/2 1

b b b

p/2n p/12n

A′n,p

B ′n,p

︸ ︷︷ ︸

n times a

1

b

b

Page 86: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

A new formula for the continuous semantics

Let φ = x . F (a ∧ x ≤ 1 ∧ G (x ≤ 1 ⇒ ¬ b))

We build the following two families of models:

b b b

p/2 1−p/2 1

b b b

p/2n p/12n

A′n,p

B ′n,p

︸ ︷︷ ︸

n times a

1

b

b

Lemma

A′n,p, 0 |= φ and B ′

n,p, 0 6|= φ

For any formula ψ of MTL with temporal height n andgranularity p,

A′n+3,p, 0 |= ψ ⇔ B ′

n+3,p, 0 |= ψ

Page 87: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Our results

Theorem

Under both semantics:

TPTL is strictly more expressive than MTL,

MTL+Past is strictly more expressive than MTL,

MITL+Past is strictly more expressive than MITL.

Page 88: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Outline of the talk

1 Introduction

2 DefinitionsTwo frameworks: pointwise and continuousSemantics of TPTL and MTL

3 Expressiveness of TPTL and MTL

Alur and Henzinger’s conjectureThe formula can be expressed......but the conjecture holds!

4 What if we only allow the F modality?TPTLF and MTLF are equally expressiveAn interesting corollary

Page 89: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

TPTLF ∋ φ ::= p | ¬ p | x ∼ c | φ ∨ φ | φ ∧ φ | F φ | x . φ

For instance:

x .F ( a ∧ x ≥ 1 ∧ F ( b ∧ x ≤ 3 ) ∧ y .F ( ¬a ∧ x ≤ 3 ∧ y > 1 ) )

Page 90: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

TPTLF ∋ φ ::= p | ¬ p | x ∼ c | φ ∨ φ | φ ∧ φ | F φ | x . φ

For instance:

x .F ( a ∧ x ≥ 1 ∧ F ( b ∧ x ≤ 3 ) ∧ y .F ( ¬a ∧ x ≤ 3 ∧ y > 1 ) )

z0

z0 = 0

Page 91: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

TPTLF ∋ φ ::= p | ¬ p | x ∼ c | φ ∨ φ | φ ∧ φ | F φ | x . φ

For instance:

x .F ( a ∧ x ≥ 1 ∧ F ( b ∧ x ≤ 3 ) ∧ y .F ( ¬a ∧ x ≤ 3 ∧ y > 1 ) )

z1

z0 = 0

z1 − z0 > 0z1 − z0 ≥ 1π, z1 |= a

Page 92: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

TPTLF ∋ φ ::= p | ¬ p | x ∼ c | φ ∨ φ | φ ∧ φ | F φ | x . φ

For instance:

x .F ( a ∧ x ≥ 1 ∧ F ( b ∧ x ≤ 3 ) ∧ y .F ( ¬a ∧ x ≤ 3 ∧ y > 1 ) )

z1

z0 = 0

z1 − z0 > 0z1 − z0 ≥ 1π, z1 |= a

Page 93: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

TPTLF ∋ φ ::= p | ¬ p | x ∼ c | φ ∨ φ | φ ∧ φ | F φ | x . φ

For instance:

x .F ( a ∧ x ≥ 1 ∧ F ( b ∧ x ≤ 3 ) ∧ y .F ( ¬a ∧ x ≤ 3 ∧ y > 1 ) )

z2

z0 = 0

z1 − z0 > 0z1 − z0 ≥ 1π, z1 |= a

z2 − z1 > 0z2 − z0 ≤ 3π, z2 |= b

Page 94: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

TPTLF ∋ φ ::= p | ¬ p | x ∼ c | φ ∨ φ | φ ∧ φ | F φ | x . φ

For instance:

x .F ( a ∧ x ≥ 1 ∧ F ( b ∧ x ≤ 3 ) ∧ y .F ( ¬a ∧ x ≤ 3 ∧ y > 1 ) )

z3

z0 = 0

z1 − z0 > 0z1 − z0 ≥ 1π, z1 |= a

z2 − z1 > 0z2 − z0 ≤ 3π, z2 |= b

z3 − z1 > 0z3 − z0 ≤ 3z3 − z1 > 1π, z3 |= ¬a

Page 95: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

TPTLF ∋ φ ::= p | ¬ p | x ∼ c | φ ∨ φ | φ ∧ φ | F φ | x . φ

For instance:

x .F ( a ∧ x ≥ 1 ∧ F ( b ∧ x ≤ 3 ) ∧ y .F ( ¬a ∧ x ≤ 3 ∧ y > 1 ) )

z3

z0 = 0

z1 − z0 > 0z1 − z0 ≥ 1π, z1 |= a

z2 − z1 > 0z2 − z0 ≤ 3π, z2 |= b

z3 − z1 > 0z3 − z0 ≤ 3z3 − z1 > 1π, z3 |= ¬a

Page 96: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

TPTLF ∋ φ ::= p | ¬ p | x ∼ c | φ ∨ φ | φ ∧ φ | F φ | x . φ

For instance:

x .F ( a ∧ x ≥ 1 ∧ F ( b ∧ x ≤ 3 ) ∧ y .F ( ¬a ∧ x ≤ 3 ∧ y > 1 ) )

π, z1 |= a

π, z2 |= b

π, z3 |= ¬aDBM:

z0 z1 z2 z3

z0 = 0 ≤ 3 ≤ 3z1 ≤ −1 = 0z2 < 0 = 0

z3 < −1 = 0

Page 97: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

TPTLF ∋ φ ::= p | ¬ p | x ∼ c | φ ∨ φ | φ ∧ φ | F φ | x . φ

For instance:

x .F ( a ∧ x ≥ 1 ∧ F ( b ∧ x ≤ 3 ) ∧ y .F ( ¬a ∧ x ≤ 3 ∧ y > 1 ) )

π, z1 |= a

π, z2 |= b

π, z3 |= ¬aDBM:

z0 z1 z2 z3

z0 = 0 < 3 ≤ 3 ≤ 3z1 ≤ −1 = 0 ≤ 2 ≤ 2z2 < −1 < 0 = 0 < 2

z3 < −2 < −1 < 1 = 0

Page 98: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

TPTLF ∋ φ ::= p | ¬ p | x ∼ c | φ ∨ φ | φ ∧ φ | F φ | x . φ

For instance:

x .F ( a ∧ x ≥ 1 ∧ F ( b ∧ x ≤ 3 ) ∧ y .F ( ¬a ∧ x ≤ 3 ∧ y > 1 ) )

π, z1 |= a

π, z2 |= b

π, z3 |= ¬aDBM:

z0 z1 z2 z3

z0 = 0 < 3 ≤ 3 ≤ 3z1 ≤ −1 = 0 ≤ 2 ≤ 2z2 < −1 < 0 = 0 < 2

z3 < −2 < −1 < 1 = 0

z3 ≤ z2 or z2 ≤ z3?

Page 99: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

TPTLF ∋ φ ::= p | ¬ p | x ∼ c | φ ∨ φ | φ ∧ φ | F φ | x . φ

For instance:

x .F ( a ∧ x ≥ 1 ∧ F ( b ∧ x ≤ 3 ) ∧ y .F ( ¬a ∧ x ≤ 3 ∧ y > 1 ) )

π, z1 |= a

π, z2 |= b

π, z3 |= ¬aDBM:

z0 z1 z2 z3

z0 = 0 < 3 ≤ 3 ≤ 3z1 ≤ −1 = 0 ≤ 2 ≤ 2z2 < −1 < 0 = 0 ≤ 0

z3 < −2 < −1 < 1 = 0

z3 ≤ z2 or z2 ≤ z3?

Page 100: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

TPTLF ∋ φ ::= p | ¬ p | x ∼ c | φ ∨ φ | φ ∧ φ | F φ | x . φ

For instance:

x .F ( a ∧ x ≥ 1 ∧ F ( b ∧ x ≤ 3 ) ∧ y .F ( ¬a ∧ x ≤ 3 ∧ y > 1 ) )

π, z1 |= a

π, z2 |= b

π, z3 |= ¬aDBM:

z0 z1 z2 z3

z0 = 0 < 3 ≤ 3 ≤ 3z1 ≤ −1 = 0 ≤ 2 ≤ 2z2 < −1 < 0 = 0 < 2

z3 < −2 < −1 ≤ 0 = 0

z3 ≤ z2 or z2 ≤ z3?

Page 101: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= a

π, z2 |= b

π, z3 |= ¬a

z0 z1 z2 z3

z0 = 0 < 3 ≤ 3 ≤ 3z1 ≤ −1 = 0 ≤ 2 ≤ 2z2 < −1 < 0 = 0 < 2z3 < −2 < −1 ≤ 0 = 0

Page 102: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= a

π, z2 |= b

π, z3 |= ¬a

z0 z1 z2 z3

z0 = 0 < 3 ≤ 3 ≤ 3z1 ≤ −1 = 0 ≤ 2 ≤ 2z2 < −1 < 0 = 0 < 2z3 < −2 < −1 ≤ 0 = 0

Region decomposition

Page 103: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= a

π, z2 |= b

π, z3 |= ¬a

z0 z1 z2 z3

z0 = 0 < 3 ≤ 3 ≤ 3z1 ≤ −1 = 0 ≤ 2 ≤ 2z2 < −1 < 0 = 0 < 2z3 < −2 < −1 ≤ 0 = 0

Region decomposition

π, z1 |= a

π, z2 |= b

π, z3 |= ¬a

z0 z1 z2 z3

z0 = 0 < 2 < 3 < 3z1 < −1 = 0 = 1 < 2z2 < −2 = −1 = 0 < 1z3 < −2 < −1 < 0 = 0

Page 104: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= a

π, z2 |= b

π, z3 |= ¬a

z0 z1 z2 z3

z0 = 0 < 2 < 3 < 3z1 < −1 = 0 = 1 < 2z2 < −2 = −1 = 0 < 1z3 < −2 < −1 < 0 = 0

Page 105: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= a

π, z2 |= b

π, z3 |= ¬a

z0 z1 z2 z3

z0 = 0 < 2 < 3 < 3z1 < −1 = 0 = 1 < 2z2 < −2 = −1 = 0 < 1z3 < −2 < −1 < 0 = 0

Time shift

Page 106: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= a

π, z2 |= b

π, z3 |= ¬a

z0 z1 z2 z3

z0 = 0 < 2 < 3 < 3z1 < −1 = 0 = 1 < 2z2 < −2 = −1 = 0 < 1z3 < −2 < −1 < 0 = 0

Time shift

π, z ′1 |= F=1 a

π, z ′2 |= F=2 b

π, z ′3 |= F=2 ¬a

z′0 z′1 z′2 z′3

z′0 = 0 < 1 < 1 < 1z′1 < 0 = 0 = 0 < 1z′2 < 0 = 0 = 0 < 1z′3 < 0 < 0 < 0 = 0

Page 107: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= a

π, z2 |= b

π, z3 |= ¬a

z0 z1 z2 z3

z0 = 0 < 2 < 3 < 3z1 < −1 = 0 = 1 < 2z2 < −2 = −1 = 0 < 1z3 < −2 < −1 < 0 = 0

Time shift

π, z ′1 |= F=1 a

π, z ′2 |= F=2 b

π, z ′3 |= F=2 ¬a

z′0 z′1 z′2 z′3

z′0 = 0 < 1 < 1 < 1z′1 < 0 = 0 = 0 < 1z′2 < 0 = 0 = 0 < 1z′3 < 0 < 0 < 0 = 0

eq. to 0 = z ′0 < z ′1 = z ′2 < z ′3 < 1

Page 108: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, zi |= φi 0 < zh < zh+1 < · · · < zh+k < r (1)

We inductively (on k) build an MTL formula Ψ[h..h+k,r ] s.t.

(1) ⇔ π |= Ψ[h..h+k,r ].

Page 109: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= F=1 a ∧ F=2 b 0 < z1 < z2 < r

π, z2 |= F=2 ¬ a

Page 110: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= F=1 a ∧ F=2 b 0 < z1 < z2 < r

π, z2 |= F=2 ¬ a

– Ψ[1..1,r ] = F<r (F=1 a ∧ F=2 b).

– Ψ[2..2,r ] = F<r (F=2 ¬ a).

Page 111: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= F=1 a ∧ F=2 b 0 < z1 < z2 < r

π, z2 |= F=2 ¬ a

– Ψ[1..2,r ] is the conjunction of the following possibilities:

Page 112: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= F=1 a ∧ F=2 b 0 < z1 < z2 < r

π, z2 |= F=2 ¬ a

– Ψ[1..2,r ] is the conjunction of the following possibilities:

0 r/p r

z1 z2

Page 113: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= F=1 a ∧ F=2 b 0 < z1 < z2 < r

π, z2 |= F=2 ¬ a

– Ψ[1..2,r ] is the conjunction of the following possibilities:

0 r/p r

z1 z2

• Ψ1[1..2,r ] = F[0, r

p)

(

F= rpφ2 ∧ Ψ[1..1, r

p]

)

.

• Ψ2[1..2,r ] = F[0, r

p)

(

F= r2(F=2 ¬ a) ∧ F< r

2(F=1 a ∧ F=2 b)

)

Page 114: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= F=1 a ∧ F=2 b 0 < z1 < z2 < r

π, z2 |= F=2 ¬ a

– Ψ[1..2,r ] is the conjunction of the following possibilities:

0 r/p r

z1 z2

Page 115: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= F=1 a ∧ F=2 b 0 < z1 < z2 < r

π, z2 |= F=2 ¬ a

– Ψ[1..2,r ] is the conjunction of the following possibilities:

0 r/p r

z1 z2

• Ψ2[1..2,r ] = Ψ[1..1], r

p∧ F= r

pΨ[2..2,r− r

p]

• Ψ2[1..2,r ] = F< r

2(F=1 a ∧ F=2 b) ∧ F= r

2F< r

2(F=2 ¬ a)

Page 116: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= F=1 a ∧ F=2 b 0 < z1 < z2 < r

π, z2 |= F=2 ¬ a

– Ψ[1..2,r ] is the conjunction of the following possibilities:

0 r/p r

z1z2

• Ψ3[1..2,r ] = F< r

2(F=1 a ∧ F=2 b) ∧ F= r

2(F< r

2(F=2 ¬ a))

Page 117: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= F=1 a ∧ F=2 b 0 < z1 < z2 < r

π, z2 |= F=2 ¬ a

– Ψ[1..2,r ] is the conjunction of the following possibilities:

0 r/p r

z1 z2

Page 118: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= F=1 a ∧ F=2 b 0 < z1 < z2 < r

π, z2 |= F=2 ¬ a

– Ψ[1..2,r ] is the conjunction of the following possibilities:

0 r/p r

z1 z2

• Ψ4[1..2,r ] = F< r

p

(

φ1 ∧ F< rpφ2

)

• Ψ4[1..2,r ] = F< r

2

(

F=1 a ∧ F=2 b ∧ F< r2

(F=2 ¬ a))

Page 119: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Existential fragment of TPTL

π, z1 |= F=1 a ∧ F=2 b 0 < z1 < z2 < r

π, z2 |= F=2 ¬ a

– Ψ[1..2,r ] is the conjunction of the following possibilities:

0 r/p r

z1 z2

• Ψ4[1..2,r ] = F< r

p

(

φ1 ∧ F< rpφ2

)

• Ψ4[1..2,r ] = F< r

2

(

F=1 a ∧ F=2 b ∧ F< r2

(F=2 ¬ a))

Theorem

The resulting MTL formula is equivalent to the original TPTLF

one, and has size exponential.

Page 120: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

An interesting corollary

This transformation also yields the following result:

Theorem

Under both the interval-based and the pointwise semantics,satisfiability of a TPTLF formula is decidable, and is NP-complete.

Page 121: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Conclusion

Many new expressiveness results:

TPTL is more expressive than MTL,(this result extends to the branching-time case)Past-time modalities do add expressive power to timed logics,The expressive power depends on the underlying semantics,

Decidability of TPTLF , and translation into MTL.

Recent result: the formula

G (a ⇒ x . F (b ∧ F (c ∧ x ≤ 2))

cannot be expressed in MITL, while it does not express a“punctual” property.

Page 122: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

Conclusion

Many new expressiveness results:

TPTL is more expressive than MTL,(this result extends to the branching-time case)Past-time modalities do add expressive power to timed logics,The expressive power depends on the underlying semantics,

Decidability of TPTLF , and translation into MTL.

Recent result: the formula

G (a ⇒ x . F (b ∧ F (c ∧ x ≤ 2))

cannot be expressed in MITL, while it does not express a“punctual” property.

Page 123: On the Expressiveness of TPTL and MTL - LSV · On the Expressiveness of TPTL and MTL Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey Lab. Specification et Verification, ENS

References

Rajeev Alur and Thomas A. Henzinger.

A really temporal logic.In Proceedings of the 30th Annual Symposium on Foundations of Computer Science (FOCS’89), pages164–169. IEEE Comp. Soc. Press, October 1989.

Rajeev Alur and Thomas A. Henzinger.

Real-time logics: Complexity and expressiveness.In Proceedings of the 5th Annual Symposium on Logic in Computer Science (LICS’90), pages 390–401.IEEE Comp. Soc. Press, 1990.

Dov M. Gabbay, Amir Pnueli, Saharon Shelah, and Jonathan Stavi.

On the temporal analysis of fairness.In Conference Record of the 7th ACM Symposium on Principles of Programming Languages (POPL’80),pages 163–173. ACM Press, January 1980.

Hans W. Kamp.

Tense Logic and the Theory of Linear Order.PhD thesis, UCLA, Los Angeles, California, USA, 1968.

Ron Koymans.

Specifying real-time properties with metric temporal logic.Real-Time Systems, 2(4):255–299, 1990.

Amir Pnueli.

The temporal logic of programs.In Proceedings of the 18th Annual Symposium on Foundations of Computer Science (FOCS’77), pages46–57. IEEE Comp. Soc. Press, October-November 1977.