Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

20
1 Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense Goran Frehse Radboud Universiteit, Nijmegen, Oct. 10, 2005

description

Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense. Goran Frehse Radboud Universiteit, Nijmegen, Oct. 10, 2005. Example 1: Ü berlingen, July 1, 2002. Boeing & Tupolew crossing 21:33:03 Alarm from Collision Avoidance System (TCAS). B757-200. TU154M. - PowerPoint PPT Presentation

Transcript of Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

Page 1: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

1

Compositional Verification of Hybrid SystemsUsing Simulation Relations

Doctorate Defense

Goran Frehse

Radboud Universiteit, Nijmegen, Oct. 10, 2005

Page 2: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

2

Example 1: Überlingen, July 1, 2002

• Boeing & Tupolew crossing• 21:33:03

– Alarm from Collision Avoidance System (TCAS)

B757-200 TU154M

!

Page 3: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

3

Example 1: Überlingen, July 1, 2002

• Boeing & Tupolew crossing• 21:33:03

– Alarm from Collision Avoidance System (TCAS)

• 21:34:49– Human controller command

B757-200 TU154M

!

Page 4: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

4

Example 1: Überlingen, July 1, 2002

• Boeing & Tupolew crossing• 21:33:03

– Alarm from Collision Avoidance System (TCAS)

• 21:34:49– Human controller command

• 21:34:56– TCAS recommendation

B757-200 TU154M

!

Page 5: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

5

Example 1: Überlingen, July 1, 2002

• Boeing & Tupolew crossing• 21:33:03

– Alarm from Collision Avoidance System (TCAS)

• 21:34:49– Human controller command

• 21:34:56– TCAS recommendation

• 21:35:32– Collision

B757-200 TU154M

!

Page 6: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

6

!

Example 1: Überlingen, July 1, 2002

• Boeing & Tupolew crossing• 21:33:03

– Alarm from Collision Avoidance System (TCAS)

• 21:34:49– Human controller command

• 21:34:56– TCAS recommendation

• 21:35:32– Collision

Official Recommendation:

“pilots are to obey and follow TCAS advisories, regardless of whether

contrary instruction is given”

Trust a computer!?

Official Recommendation:

“pilots are to obey and follow TCAS advisories, regardless of whether

contrary instruction is given”

Trust a computer!?

B757-200 TU154M

Page 7: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

7

Formal Verification

• Characteristics– mathematical rigour– sound proofs & algorithms

• Hybrid System– continuous environment– discrete software

• Problems– only computable for certain

types of models– must check all possibilities

computational complexity

• Solution– abstraction– compositionality

Model of Environment

Model ofSoftware

Precise Specification

Hybrid System

Page 8: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

8

Formal Verification

• Characteristics– mathematical rigour– sound proofs & algorithms

• Hybrid System– continuous environment– discrete software

• Problems– only computable for certain

types of models– must check all possibilities

computational complexity

• Solution– abstraction– compositionality

Model of Environment

Model ofSoftware

Proof(algorithmic)

Precise Specification

Hybrid System

Page 9: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

9

Formal Verification

• Characteristics– mathematical rigour– sound proofs & algorithms

• Hybrid System– continuous environment– discrete software

• Problems– only computable for certain

types of models– must check all possibilities

computational complexity

• Solution– abstraction– compositionality

Model of Environment

Model ofSoftware

Proof(algorithmic)

GuaranteedCorrectness

Precise Specification

Hybrid System

TCAS verifiedin part

Livadas, Lygeros, Lynch, ‘00

Page 10: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

10

Example 2: Join Manoeuvre [Tomlin et al.]

• Traffic Coordination Problem– join paths at different speed

• Goals – avoid collision

– join with sufficient separation

Page 11: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

11

Example 2: Join Manoeuvre [Tomlin et al.]

• Traffic Coordination Problem– join paths at different speed

• Goals – avoid collision

– join with sufficient separation

• Models– Environment: Planes

– Software: Controller

• switches fast/slow

• Specification– keep min. distance

Page 12: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

12

Abstraction and Simulation Relations

• Goal– check all possibilities

• Abstraction simplified model

– here: linear bounds on direction

disturbances

Page 13: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

13

Abstraction and Simulation Relations

• Goal– check all possibilities

• Abstraction simplified model

– here: linear bounds on direction

– bounds on trajectoriesbounds on direction

original trajectory

bounds on trajectories of abstraction

disturbances

Page 14: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

14

Abstraction and Simulation Relations

• Goal– check all possibilities

• Abstraction simplified model

– here: linear bounds on direction

– bounds on trajectories

• Simulation Relation formal relationship between

original and abstraction

– everything possible in implementation is also possible in abstraction

– specification = abstraction

original trajectory

bounds on direction

bounds on trajectories of abstraction

disturbances

Page 15: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

15

Compositionality

• From Components to Systems– Simulation relations must

hold after compositionOriginalPlane

AbstractPlane

satisfies

OriginalController

AbstractController

satisfieswhile active do if altitude > 13000 check distance else if speed >= 10 check heading check distance else warningend while

while active do check distanceend while

Page 16: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

16

Compositionality

• From Components to Systems– Simulation relations must

hold after composition

OriginalController

OriginalPlane

AbstractPlane

AbstractController

OriginalPlane

AbstractPlane

satisfies

sat.

OriginalController

AbstractController

satisfieswhile active do if altitude > 13000 check distance else if speed >= 10 check heading check distance else warningend while

while active do check distanceend while

composedsystem

composedabstraction

Page 17: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

17

Compositionality

• From Components to Systems– Simulation relations must

hold after composition

• Benefits – modular verification

– advanced deduction techniques possible

• Difficulty– formalisms must fit together

• hybrid system• simulation relation• composition

OriginalController

OriginalPlane

AbstractPlane

AbstractController

OriginalPlane

AbstractPlane

satisfies

sat.

OriginalController

AbstractController

satisfieswhile active do if altitude > 13000 check distance else if speed >= 10 check heading check distance else warningend while

while active do check distanceend while

composedsystem

composedabstraction

Page 18: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

18

Contribution of this Thesis

• Formal Framework for Compositional Verification– simulation relations for hybrid

systems

– semi-computable for linear bounds

time

collision possible!

safetymargin

Page 19: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

19

Contribution of this Thesis

• Formal Framework for Compositional Verification– simulation relations for hybrid

systems

– semi-computable for linear bounds

• Verification Tool: PHAVer (Polyhedral Hybrid Automaton Verifier)

– compute simulation relations and reachable states

– most powerful verification tool for hybrid systems

time

collision possible!

safetymargin

Page 20: Compositional Verification of Hybrid Systems Using Simulation Relations Doctorate Defense

20

Contribution of this Thesis

• Formal Framework for Compositional Verification– simulation relations for hybrid

systems– semi-computable for linear

bounds• Verification Tool: PHAVer

(Polyhedral Hybrid Automaton Verifier)

– compute simulation relations and reachable states

– most powerful verification tool for hybrid systems

• Future Work– compositional over-

approximations (submitted)– efficiency & applications

time

collision possible!

safetymargin