54
Chess Review November 18, 2004 Berkeley, CA Hybrid Systems Theory Edited and Presented by Thomas A. Henzinger, Co-PI UC Berkeley

Hybrid Systems Theory

  • Upload
    bina

  • View
    26

  • Download
    3

Embed Size (px)

DESCRIPTION

Hybrid Systems Theory. Edited and Presented by Thomas A. Henzinger, Co-PI UC Berkeley. Theories of -composition & hierarchy -computability & complexity. R. - PowerPoint PPT Presentation

Citation preview

Page 1: Hybrid Systems Theory

Chess ReviewNovember 18, 2004Berkeley, CA

Hybrid Systems Theory

Edited and Presented byThomas A. Henzinger, Co-PIUC Berkeley

Page 2: Hybrid Systems Theory

Chess Review, November 18, 2004 2

Formal Foundation for Embedded Systems

needs to combine

Computation

Physicality+

Theories of -composition & hierarchy -computability & complexity

BTheories of -robustness & approximation -probabilities & discounting

R

Page 3: Hybrid Systems Theory

Chess Review, November 18, 2004 3

Continuous Dynamical Systems

State space: Rn Dynamics: initial condition + differential equations

Room temperature: x(0) = x0 x’(t) = -K·x(t)x

t

x0

Analytic complexity.

Page 4: Hybrid Systems Theory

Chess Review, November 18, 2004 4

Discrete Transition Systems

State space: Bm Dynamics: initial condition + transition relation

Heater:

heat

t

off

on

off on

Combinatorial complexity.

Page 5: Hybrid Systems Theory

Chess Review, November 18, 2004 5

Hybrid Automata

State space: Bm Rn Dynamics: initial condition + transition relation

+ differential equations

Thermostat:

t

off

on

x0

offx’ = -K·x

onx’ = K·(H-

x)

x l x u

x U

x L

Page 6: Hybrid Systems Theory

Chess Review, November 18, 2004 6

Four Problems with Hybrid Automata

1 Robustness

2 Uncertainty

3 Compositionality

4 Computationality

Page 7: Hybrid Systems Theory

Chess Review, November 18, 2004 7

Safe

Hybrid Automaton

x = 3

The Robustness Issue

Page 8: Hybrid Systems Theory

Chess Review, November 18, 2004 8

Unsafe

Slightly Perturbed

Hybrid Automaton

x = 3+

The Robustness Issue

Page 9: Hybrid Systems Theory

Chess Review, November 18, 2004 9

value(Model,Property): States B

value(Model,Property): States R

Robust Hybrid Automata

Semantics: de Alfaro, H, Majumdar [ICALP 03] Computation: de Alfaro, Faella, H, Majumdar, Stoelinga [TACAS 04] Metrics on models: Chatterjee et al. [submitted]

Page 10: Hybrid Systems Theory

Chess Review, November 18, 2004 10

a cb

Boolean-valued Reachability

c … True or False

T

(F Ç pre(T)) = T

T

Page 11: Hybrid Systems Theory

Chess Review, November 18, 2004 11

a cb

Real-valued Reachability

c … True or False

T

(F Ç pre(T)) = T

T

2

c … between 0 and 1

1 max(0, ¢ pre(1)) =

discount factor 0 < < 1

Page 12: Hybrid Systems Theory

Chess Review, November 18, 2004 12

Continuity Theorem:

If discountedBisimilarity(m1,m2) > 1 - , then |discountedValue(m1,p) - discountedValue(m2,p)| < f().

Further Advantages of Discounting:

-approximability because of geometric convergence (avoids non-termination of verification algorithms)

-applies also to probabilistic systems and to games(enables reasoning under uncertainty, and control)

Robust Hybrid Automata

Page 13: Hybrid Systems Theory

Chess Review, November 18, 2004 13

Four Problems with Hybrid Automata

1 Robustness

2 Uncertainty

3 Compositionality

4 Computationality

Page 14: Hybrid Systems Theory

Chess Review, November 18, 2004 14

The Uncertainty Issue

Hybrid Automaton

A

0 < x < 2

Hybrid Automaton

B

1 < y < 3

a b

Page 15: Hybrid Systems Theory

Chess Review, November 18, 2004 15

The Uncertainty Issue

Composite Automaton A||

B

b

a

a,b

more likely

less likely

impossible

Page 16: Hybrid Systems Theory

Chess Review, November 18, 2004 16

a cb

1,1 2,2

2,1 1,2

1,1 1,2 2,2

2,1

Concurrent Games

player "left" player "right"

-for modeling component-based systems (“interfaces”) -for strategy synthesis (“control”)

Page 17: Hybrid Systems Theory

Chess Review, November 18, 2004 17

a cb

1,1 2,2

2,1 1,2

1,1 1,2 2,2

2,1

left right c … player "left" has a deterministic strategy to reach c

Concurrent Games

(X) (c left right pre(X))

Page 18: Hybrid Systems Theory

Chess Review, November 18, 2004 18

a cb

1,1 2,2

2,1 1,2

1,1 1,2 2,2

2,1

left right c … player "left" has a deterministic strategy to reach c

left right c … player "left" has a randomized strategy to reach c

Concurrent Games

Pr(1): 0.5 Pr(2): 0.5

(X) (c left right pre(X))

Page 19: Hybrid Systems Theory

Chess Review, November 18, 2004 19

a cb

1

1

2

2leftright

a: 0.6 b: 0.4

a: 0.1 b: 0.9

a: 0.5 b: 0.5

a: 0.2 b: 0.8

1

1

2

2leftright

a: 0.0 c: 1.0

a: 0.7 b: 0.3

a: 0.0 c: 1.0

a: 0.0 b: 1.0

Probability with which player "left" can reach c ?

Stochastic Games

Page 20: Hybrid Systems Theory

Chess Review, November 18, 2004 20

a cb

1

1

2

2leftright

a: 0.6 b: 0.4

a: 0.1 b: 0.9

a: 0.5 b: 0.5

a: 0.2 b: 0.8

1

1

2

2leftright

a: 0.0 c: 1.0

a: 0.7 b: 0.3

a: 0.0 c: 1.0

a: 0.0 b: 1.0

Probability with which player "left" can reach c ?

Stochastic Games

(X) max(c, left right

pre(X))

11

0.8

Page 21: Hybrid Systems Theory

Chess Review, November 18, 2004 21

a cb

1

1

2

2leftright

a: 0.6 b: 0.4

a: 0.1 b: 0.9

a: 0.5 b: 0.5

a: 0.2 b: 0.8

1

1

2

2leftright

a: 0.0 c: 1.0

a: 0.7 b: 0.3

a: 0.0 c: 1.0

a: 0.0 b: 1.0

Probability with which player "left" can reach c ?

Stochastic Games

(X) max(c, left right

pre(X))

11

0.96

Page 22: Hybrid Systems Theory

Chess Review, November 18, 2004 22

a cb

1

1

2

2leftright

a: 0.6 b: 0.4

a: 0.1 b: 0.9

a: 0.5 b: 0.5

a: 0.2 b: 0.8

1

1

2

2leftright

a: 0.0 c: 1.0

a: 0.7 b: 0.3

a: 0.0 c: 1.0

a: 0.0 b: 1.0

Probability with which player "left" can reach c ?

Stochastic Games

11

1

Limit gives correct answer: de Alfaro, Majumdar [JCSS 04] coNP Å NP computation: Chatterjee, de Alfaro, H [submitted]

Page 23: Hybrid Systems Theory

Chess Review, November 18, 2004 23

Four Problems with Hybrid Automata

1 Robustness

2 Uncertainty

3 Compositionality

4 Computationality

Page 24: Hybrid Systems Theory

Chess Review, November 18, 2004 24

Model

Requirements

Resources

Verification

Implementation

Environment

automatic (model checking)

automatic (compilation)

The Compositionality Issue

Page 25: Hybrid Systems Theory

Chess Review, November 18, 2004 25

Component

Requirements

Resources

Verification

Implementation

Component

The Compositionality Issue

Composition

no change necessary

no change necessary

Page 26: Hybrid Systems Theory

Chess Review, November 18, 2004 26

Component

Requirements

Resources

Verification

Implementation

Component

The Compositionality Issue

Composition

no change necessary

no change necessary

(time, fault tolerance, etc.)

Page 27: Hybrid Systems Theory

Chess Review, November 18, 2004 27

Component

Requirements

Resources

Verification

Implementation

Component

The Compositionality Issue

Composition

no change necessary

no change necessary

(time, fault tolerance, etc.)

Agent algebras. Interface theories.

Virtual machines.

Page 28: Hybrid Systems Theory

Chess Review, November 18, 2004 28

Consider hybrid system made up of interacting distributed subsystems:

EmbeddedController

PhysicalProcess

… EmbeddedController

PhysicalProcess

Subsystem 1 Subsystem N

Logical Interaction

Physical Interaction

Physical subsystems coupled through a backbone Each unit includes ECDs that implement the control, monitoring, and fault diagnosis tasks Subsystem interactions at two levels:

physical – energy-based logical – information based, facilitated by LANsLevels are not independent.

Question: How does one systematically model the interactions between the subsystems efficiently while avoiding the computational complexity of generating global hybrid models?

Implications: reachability analysis, design, control, and fault diagnosis

Heterogeneous Compositional Modeling

Page 29: Hybrid Systems Theory

Chess Review, November 18, 2004 29

Four Problems with Hybrid Automata

1 Robustness

2 Uncertainty

3 Compositionality

4 Computationality

Page 30: Hybrid Systems Theory

Chess Review, November 18, 2004 30

The Computationality Issue

system control , initial state Find reach set of all states that

can be reached at time t starting in at t0

using open loop control u(t).

Reach Set Computation:

Page 31: Hybrid Systems Theory

Chess Review, November 18, 2004 31

Ellipsoidal Toolbox

• Calculation of reach sets using ellipsoidal approximation algorithms

• Visualization of their 3D projections

www.eecs.berkeley.edu/~akurzhan/ellipsoids

Page 32: Hybrid Systems Theory

Chess Review, November 18, 2004 32

Putting It All Together

1 Robustness

2 Uncertainty

3 Compositionality

4 Computationality

Page 33: Hybrid Systems Theory

Chess Review, November 18, 2004 33

Classification of 2-Player Games

• Zero-sum games: complementary payoffs.

• Non-zero-sum games: arbitrary payoffs.

1,-1 0,0

2,-2-1,1

3,1 1,0

4,23,2

Page 34: Hybrid Systems Theory

Chess Review, November 18, 2004 34

Classical Notion of Rationality

Nash equilibrium: none of the players gains by deviation.

3,1 1,0

4,23,2

(row, column)

Page 35: Hybrid Systems Theory

Chess Review, November 18, 2004 35

Classical Notion of Rationality

Nash equilibrium: none of the players gains by deviation.

3,1 1,0

4,23,2

(row, column)

Page 36: Hybrid Systems Theory

Chess Review, November 18, 2004 36

New Notion of Rationality

Nash equilibrium: none of the players gains by deviation.

Secure equilibrium: none hurts the opponent by deviation.

3,1 1,0

4,23,2

(row, column)

Page 37: Hybrid Systems Theory

Chess Review, November 18, 2004 37

Secure Equilibria

• Natural notion of rationality for component systems:– First, a component tries to meet its spec.– Second, a component may obstruct the other

components.

• For Borel specs, there is always unique maximal secure equilibrium.

Page 38: Hybrid Systems Theory

Chess Review, November 18, 2004 38

Synthesis: - Zero-sum game controller versus plant.

- Control against all plant behaviors.

Verification:- Non-zero-sum specs for components.

- Components may behave adversarially, but without threatening their own specs.

Borel Games on State Spaces

Page 39: Hybrid Systems Theory

Chess Review, November 18, 2004 39

Borel Games on State Spaces

• Zero-sum games:– Complementary objectives: 2 = : 1.– Possible payoff profiles (1,0) and (0,1).

• Non-zero-sum games:– Arbitrary objectives 1, 2.– Possible payoff profiles (1,1), (1,0), (0,1), and

(0,0).

Page 40: Hybrid Systems Theory

Chess Review, November 18, 2004 40

Zero-Sum Borel Games

• Winning: - Winning-1 states s: (9 ) (8 ) ,(s) 2 1.

- Winning-2 states s: (9 ) (8 ) ,(s) 2 2.

• Determinacy:– Every state is winning-1 or winning-2.– Borel determinacy [Martin 75].– Memoryless determinacy for parity games

[Emerson/Jutla 91].

(1,0) (0,1)

Page 41: Hybrid Systems Theory

Chess Review, November 18, 2004 41

Secure Equilibria

• Secure strategy profile (,) at state s:

(8 ’) ( v1,’ (s) < v1

, (s) ) v2,’ (s) < v2

, (s) ) (8 ’) ( v2

’, (s) < v2, (s) ) v1

’, (s) < v1, (s) )

• A secure profile (,) is a contract:if the player-1 deviates to lower player-2’s payoff, her own payoff decreases as well, and vice versa.

• Secure equilibrium:secure strategy profile that is also a Nash equilibrium.

Page 42: Hybrid Systems Theory

Chess Review, November 18, 2004 42

State Space Partition

Page 43: Hybrid Systems Theory

Chess Review, November 18, 2004 43

W10 hh1ii ( 1 Æ : 2 )

hh2ii ( : 1 Ç 2 )

Computing the Partition

Page 44: Hybrid Systems Theory

Chess Review, November 18, 2004 44

Computing the Partition

W10 hh1ii ( 1 Æ : 2 )

hh2ii (1 ) 2 )

W01 hh2ii ( 2 Æ : 1 )

hh1ii (2 ) 1 )

Page 45: Hybrid Systems Theory

Chess Review, November 18, 2004 45

Computing the Partition

W10 hh1ii ( 1 Æ : 2 )

hh2ii (1 ) 2 )

W01 hh2ii ( 2 Æ : 1 )

hh1ii (2 ) 1 )

hh1ii 1

U1

Page 46: Hybrid Systems Theory

Chess Review, November 18, 2004 46

Computing the Partition

W10 hh1ii ( 1 Æ : 2 )

hh2ii (1 ) 2 )

W01 hh2ii ( 2 Æ : 1 )

hh1ii (2 ) 1 )

hh1ii 1

hh2ii 2

U1

U2

Page 47: Hybrid Systems Theory

Chess Review, November 18, 2004 47

Computing the Partition

W10 hh1ii ( 1 Æ : 2 )

hh2ii (1 ) 2 )

W01 hh2ii ( 2 Æ : 1 )

hh1ii (2 ) 1 )

hh1ii 1

hh2ii 2

Threat strategies T, T

hh2ii : 1

hh1ii : 2

U1

U2

Page 48: Hybrid Systems Theory

Chess Review, November 18, 2004 48

Computing the Partition

W10 hh1ii ( 1 Æ : 2 )

hh2ii (1 ) 2 )

W01 hh2ii ( 2 Æ : 1 )

hh1ii (2 ) 1 )

hh1ii 1

hh2ii 2

Threat strategies T, T

hh2ii : 1

hh1ii : 2

hh1,2ii (1 Æ 2 )

Cooperation strategies C, C

U1

U2

Page 49: Hybrid Systems Theory

Chess Review, November 18, 2004 49

Computing the Partition

W10 hh1ii ( 1 Æ : 2 )

W01 hh2ii ( 2 Æ : 1 )

hh1ii 1

hh2ii 2

hh1,2ii (1 Æ 2 )

U1

U2

W00

Page 50: Hybrid Systems Theory

Chess Review, November 18, 2004 50

Generalization of Determinacy

W10

W01

W11

W00W1

W2

Zero-sum games: 2 = :1 Non-zero-sum games: 1, 2

Page 51: Hybrid Systems Theory

Chess Review, November 18, 2004 51

P1 2 W1 (1) P2 2 W2 (2)

1 Æ 2 )

P1||P2 ²

Application: Compositional Verification

Page 52: Hybrid Systems Theory

Chess Review, November 18, 2004 52

P1 2 W1 (1) P2 2 W2 (2)

1 Æ 2 )

P1||P2 ²

Application: Compositional Verification

P1 2 (W10 [ W11) (1) P2 2 (W01 [ W11) (2) 1 Æ 2 )

P1||P2 ²

W1 ½ W10 [ W11

W2 ½ W01 [ W11

An assume/guarantee rule.

Page 53: Hybrid Systems Theory

Chess Review, November 18, 2004 53

Related In-Depth Talks

Roberto Passerone (11:50 am):

-semantics of hybrid systems

Aaron Ames (12:10 pm):

-stochastic approximation of hybrid systems

-a categorical theory of hybrid systems

Page 54: Hybrid Systems Theory

Chess Review, November 18, 2004 54

Related Posters

Robust Hybrid Systems:

Blowing up Hybrid Systems (Aaron Ames)Quantitative Verification (Vinayak Prabhu)

Compositional Hybrid Systems:

Rich Interface Theories (Arindam Chakrabarti)

Stochastic Hybrid Systems:

Stochastic Games (Krishnendu Chatterjee)

Computational Hybrid Systems:

Computation of Reach Sets (Alex Kurzhansky)