dtl : differential temporal dynamic logic with nested

33
1 dTL 2 : Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems Jeannin & Platzer dTL 2 : Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems Jean-Baptiste Jeannin and André Platzer Carnegie Mellon University IJCAR, July 21 st , 2014

Upload: others

Post on 13-Nov-2021

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: dTL : Differential Temporal Dynamic Logic with Nested

1!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!

Jean-Baptiste Jeannin and André PlatzerCarnegie Mellon University!

!

IJCAR, July 21st, 2014!

Page 2: dTL : Differential Temporal Dynamic Logic with Nested

2!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Hybrid Systems!

¢  Continuous Evolutions(differential equations,e.g. flight dynamics)!

¢  Discrete Jumps(control decisions,e.g. pilot actions)!

Page 3: dTL : Differential Temporal Dynamic Logic with Nested

3!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Differential Dynamic Logic!

x

t

¢  used to reason about (nondeterministic) hybrid systems!¢  comes with a (relatively) complete axiomatization!¢  proves properties about the end state of the execution!

[↵]�

No guarantee on intermediate states!

…!

No guarantee on infinite executions!

hybrid system! all behaviors of !satisfy at the end !

↵�

Page 4: dTL : Differential Temporal Dynamic Logic with Nested

4!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Differential Temporal Dynamic Logic!

x

t

¢  What about property“these airplanes never collide”?!

¢  We need some temporal reasoning!

Guarantees on intermediate states!

…!

Guarantees on infinite executions!

[↵]⇤�

� ��

� ��

�� �

��� � �

� � � � �

� � � � � � � � �

Page 5: dTL : Differential Temporal Dynamic Logic with Nested

5!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Nested Alternating Modalities!

x

t

¢  What about property “this satellite can reach its orbit and then stay there”?!

¢  We need nested alternating modalities!¢  A step towards dTL*, handling

temporal formulas of CTL* !

…!

�� �

h↵i⌃⇤�

Page 6: dTL : Differential Temporal Dynamic Logic with Nested

6!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Temporal Properties of Hybrid Systems!State Property!¢  !¢  for all traces of !¢  there is a trace of !

Trace property !¢  !¢  for all suffix of !¢  there is a suffix of !

�, ,¬,^,_, 8, 9[↵]⇡h↵i⇡

↵↵

⇡�⇤⇡ �

�⌃⇡x

tx

t

x

tx

t

[↵]⇤�� � �

��

��� � � �

��

…! …!

…! …!

����

h↵i⌃⇤�

[↵]⇤⌃��

��

[↵]⌃� �

Page 7: dTL : Differential Temporal Dynamic Logic with Nested

7!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Hybrid Programs!

They model systems and are non deterministic. They are:!¢  Discrete variable assignment!¢  Test!¢  Differential Equation!¢  Nondeterministic choice!¢  Sequential composition!¢  Nondeterministic repetition!

x := ✓?�x

0 = ✓ & �↵ [ �↵;�↵⇤

Page 8: dTL : Differential Temporal Dynamic Logic with Nested

8!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Trace Semantics of Hybrid Programs!A trace represents the evolution of the variable over time, consisting of continuous evolutions and discrete jumps!

The trace semantics of a hybrid program is a set of traces!

x

t

Page 9: dTL : Differential Temporal Dynamic Logic with Nested

9!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Trace Semantics of Hybrid Programs!

Variable assignment !

x

t

x := ✓

x1

x2

val(x1 , ✓)

val(x2 , ✓)

Page 10: dTL : Differential Temporal Dynamic Logic with Nested

10!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Trace Semantics of Hybrid Programs!

Test!

x

t

?�

x1�

x2

no state change!

error!

Page 11: dTL : Differential Temporal Dynamic Logic with Nested

11!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Trace Semantics of Hybrid Programs!

Differential equation!

x

t

x1

x

0 = ✓ & �

x2

x3

can continue forever!

Page 12: dTL : Differential Temporal Dynamic Logic with Nested

12!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Trace Semantics of Hybrid Programs!

x

t

Nondeterministic choice!↵ [ �

in ↵

in �

Page 13: dTL : Differential Temporal Dynamic Logic with Nested

13!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Trace Semantics of Hybrid Programs!

x

t

Sequential composition! ↵;�

in ↵

in �

The intermediate state has to match!

in ↵

Page 14: dTL : Differential Temporal Dynamic Logic with Nested

14!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Trace Semantics of Hybrid Programs!

x

t

Nondeterministic repetition!

in ↵

↵⇤

in ↵in ↵

Page 15: dTL : Differential Temporal Dynamic Logic with Nested

15!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Simplification of Trace Formulas!

x

t

��

⇤⇤⇡ ⌘ ⇤⇡⌃⌃⇡ ⌘ ⌃⇡

⌃⇤⌃� ⌘ ⇤⌃�⇤⌃⇤� ⌘ ⌃⇤�

⌃⌃⌃⇤⌃⇤⇤�⌘ ⌃⇤⌃⇤�⌘ ⌃⌃⇤�⌘ ⌃⇤�

x

t

⇤⇤⇡ ⌘ ⇤⇡ ⇤⌃⇤� ⌘ ⌃⇤�⇡ ⇡ ⇡

⇡ ⇡ ⇡⇡

⇡⇡⇡⇡

Page 16: dTL : Differential Temporal Dynamic Logic with Nested

16!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Simplification of Trace Formulas!

The only interesting temporal properties thus are!

and this corresponds to modal system S4.2 !

We focus on the study of and particularly on!h↵i⇤�⇤�

⇤� ⌃� ⌃⇤� ⇤⌃�

⇤⇤⇡ ⌘ ⇤⇡⌃⌃⇡ ⌘ ⌃⇡

⌃⇤⌃� ⌘ ⇤⌃�⇤⌃⇤� ⌘ ⌃⇤�

⌃⌃⌃⇤⌃⇤⇤�⌘ ⌃⇤⌃⇤�⌘ ⌃⌃⇤�⌘ ⌃⇤�

Page 17: dTL : Differential Temporal Dynamic Logic with Nested

17!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

A Technical Issue: the Composition!

x

t

counterexample!

⇤�

⇤�

in ↵

in �

in �

h↵i⇤� ^ h↵ih�i⇤�

h↵;�i⇤�h↵i(⇤� ^ h�i⇤�)

(unsound)

(OK if the trace of terminates) ↵

x

t

in ↵

infinite trace in ,!thus in!

↵↵;�

h↵;�i⇤�

h↵i⇤� (if the trace of does not terminate) ↵

⇤�

Page 18: dTL : Differential Temporal Dynamic Logic with Nested

18!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Solution: Introducing!

x

t

⇤�⇤�in ↵

in ↵

in �

in �

� u⇤

h↵i(h�i⇤� u⇤�)

h↵;�i⇤�h;i⇤

if and only if!¢  and ! ! !if terminates!¢  ! ! ! ! !otherwise (infinite or error)!and !

� ✏ � u⇤

� ✏ ⇤ �

⇤� ⌘ true u⇤�

last � ✏ � � ✏ ⇤

in ↵⇤� …

Page 19: dTL : Differential Temporal Dynamic Logic with Nested

19!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Solution: Introducing!

t

in ↵ in �

in �

� u⇤

h↵i(h�i⇤� u⇤�)

h↵;�i⇤�h;i⇤

h↵i(h�i(� u⇤ ) u⇤ )h↵;�i(� u⇤ ) h;iu

⇤ ⇤

if and only if!¢  and ! ! !if terminates!¢  ! ! ! ! !otherwise (infinite or error)!and !

� ✏ � u⇤

� ✏ ⇤ �

⇤� ⌘ true u⇤�

last � ✏ � � ✏ ⇤

x

in ↵in ↵

⇤ …

Page 20: dTL : Differential Temporal Dynamic Logic with Nested

20!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

New Rules for !

^ hx := ✓i(� ^ )hx := ✓i(� u⇤ ) h:=iu

x

t

� ^

� u⇤

Page 21: dTL : Differential Temporal Dynamic Logic with Nested

21!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

New Rules for !

x

t

� u⇤

(¬� ^ ) _ hx0 = ✓ & (� ^ )i� _ [x0 = ✓](� ^ )hx0 = ✓ & �i(� u⇤ )

Page 22: dTL : Differential Temporal Dynamic Logic with Nested

22!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

New Rules for !� u⇤ 8↵8r > 0 ('(r) ! h↵i('(r � 1) u⇤ ))

(9r '(r)) ^ ! h↵⇤i((9r 0 '(r)) u⇤ )

x

t

in ↵ in ↵in ↵

in ↵⇤

⇤ ⇤

'(2)

'(1) '(0)

'(�1)'(�2)

Page 23: dTL : Differential Temporal Dynamic Logic with Nested

23!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Remember: if and only if!¢  and ! ! !if terminates!¢  ! ! ! ! !otherwise (infinite or error)!

! ! if and only if!¢  or ! ! !if terminates!¢  ! ! ! ! !otherwise (infinite or error)!

if and only if!¢  ! ! ! ! !if terminates!¢  ! ! ! ! !otherwise (infinite or error)! is defined similarly!

!

Similarly , , !� ✏ � u⇤

� ✏ ⇤ �

� t ⌃ �⇣ ⇤⌃ �⇣ ⌃⇤

last � ✏ � � ✏ ⇤

last � ✏ � � ✏ ⌃ �� ✏ ⌃

� ✏ � t ⌃

last � ✏ � �� ✏ ⇤⌃

� ✏ �⇣ ⇤⌃

� ✏ �⇣ ⌃⇤

Page 24: dTL : Differential Temporal Dynamic Logic with Nested

24!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Meta-Results!

The dTL2 calculus is sound, i.e., derivable state formulas are valid!

The dTL2 calculus restricted to star-free programs is complete relative to FOD, i.e., every valid dTL2 formula with only star-free programs can be derived from FOD tautology!

FOD = first order real arithmetic augmented with formulas expressing properties of differential equations!

Theorem!

Theorem!

Page 25: dTL : Differential Temporal Dynamic Logic with Nested

25!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Related work!¢  [Beckert and Schlager 2001, Platzer 2007] !

§  the basis for this work!§  only formulas of the form and !

¢  Process logic [Parikh 1978, Pratt 1979, Harel et al. 1982]!§  well-studied but limited to the discrete case!§  different approach: is a trace formula rather

than a state formula !

¢  [Davoren and Nerode 2000, Davoren et al. 2004]!§  calculi for temporal reasoning of hybrid systems!§  propositional only!§  but no specific rule for differential equations !

[↵]⇤� h↵i⌃�

[↵]⌃�

Page 26: dTL : Differential Temporal Dynamic Logic with Nested

26!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Conclusion and Future Work!¢  We have extended Differential Temporal Dynamic

Logic to handle formulas of the formsolving open problems posed in [Beckert and Schleger 2001] and [Platzer 2007]!

¢  We prove soundness and relative completeness for star-free expressions!

Future work:!¢  Extensions: Until operator, nested and!¢  This is a step towards dTL*, handling formulas of CTL* !

[↵]⌃� h↵i⇤� [↵]⇤⌃� h↵i⇤⌃�

^ ⌃

Page 27: dTL : Differential Temporal Dynamic Logic with Nested

27!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

New Rules for !

x

t

� u⇤

(¬� _ �) ^ h?�i(� u⇤ ) h?iu

� ^

Page 28: dTL : Differential Temporal Dynamic Logic with Nested

28!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

New Rules for !

x

t

� u⇤

h↵i(� u⇤ ) _ h�i(� u⇤ )h↵ [ �i(� u⇤ ) h[iu

in ↵

in �� u⇤

Page 29: dTL : Differential Temporal Dynamic Logic with Nested

29!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Differential (Temporal) Dynamic Logic!¢  is based on dynamic logic augmented with continuous

evolutions, and has been used to verify trains, highways and airplanes. It can express properties!

¢  has been extended with differential temporal dynamic logic, expressing properties!

¢  but we would like to be able to express more powerful properties, for example!

[↵]� h↵i�

[↵]⇤� h↵i⌃�

[↵]⌃� h↵i⇤� [↵]⇤⌃� h↵i⇤⌃�

Page 30: dTL : Differential Temporal Dynamic Logic with Nested

30!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Temporal Properties of Hybrid Programs!

x

t

State Property!¢  !¢  for all traces of !¢  there is a trace of !

Trace property !¢  !¢  for all suffix of !¢  there is a suffix of !

�, ,¬,^,_, 8, 9[↵]⇡h↵i⇡

↵↵

⇡�⇤⇡ �

�⌃⇡

[↵]⇤��� �

��

��

�� � � �

� �

Page 31: dTL : Differential Temporal Dynamic Logic with Nested

31!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Temporal Properties of Hybrid Programs!

x

t

State Property!¢  !¢  for all traces of !¢  there is a trace of !

Trace property !¢  !¢  for all suffix of !¢  there is a suffix of !

�, ,¬,^,_, 8, 9[↵]⇡h↵i⇡

↵↵

⇡�⇤⇡ �

�⌃⇡

[↵]⌃�

Page 32: dTL : Differential Temporal Dynamic Logic with Nested

32!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Temporal Properties of Hybrid Programs!

x

t

State Property!¢  !¢  for all traces of !¢  there is a trace of !

Trace property !¢  !¢  for all suffix of !¢  there is a suffix of !

�, ,¬,^,_, 8, 9[↵]⇡h↵i⇡

↵↵

⇡�⇤⇡ �

�⌃⇡

h↵i⌃⇤�

��

Page 33: dTL : Differential Temporal Dynamic Logic with Nested

33!dTL2: Differential Temporal Dynamic Logic with Nested Modalities for Hybrid Systems!Jeannin & Platzer!

Temporal Properties of Hybrid Programs!

x

t

State Property!¢  !¢  for all traces of !¢  there is a trace of !

Trace property !¢  !¢  for all suffix of !¢  there is a suffix of !

�, ,¬,^,_, 8, 9[↵]⇡h↵i⇡

↵↵

⇡�⇤⇡ �

�⌃⇡

h↵i(⌃⇤� ^⇤ )Not expressible!