B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 ·...

131
Abstractions for timed automata B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I. Walukiewicz (LaBRI, Bordeaux) 1/35

Transcript of B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 ·...

Page 1: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Abstractions for timed automata

B. Srivathsan

Chennai Mathematical Institute

Joint work with

F. Herbreteau, I. Walukiewicz (LaBRI, Bordeaux)

1/35

Page 2: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Reachability for timed automata

Observation 1 Observation 2

2/35

Page 3: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Timed Automata

(y≤ 3)

(x< 1)

(y< 1)

(x< 4)

(x> 6){y}

{y}

q0 q1 q3

q2

Run: finite sequence of transitions

q0

00

q1

0.40

q3

0.90.5

0.4 0.5xy

É accepting if ends in green state

3/35

Page 4: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Reachability problem

Given a TA, does it have an accepting run

(y≤ 3)

(x< 1)

(y< 1)

(x< 4)

(x> 6){y}

{y}

q0 q1 q3

q2

Theorem [Alur, Dill’90]

This problem is PSPACE-complete

4/35

Page 5: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Is accepting state reachable?

No

x≥ y

No acc. state

Inconsistent!

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

Exhibit a proof for unreachability

5/35

Page 6: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Is accepting state reachable? No

x≥ y

No acc. state

Inconsistent!

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

Exhibit a proof for unreachability

5/35

Page 7: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Is accepting state reachable? No

x≥ y

No acc. state

Inconsistent!

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

Exhibit a proof for unreachability

5/35

Page 8: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Is accepting state reachable? No

x≥ y

No acc. state

Inconsistent!

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

Exhibit a proof for unreachability

5/35

Page 9: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Is accepting state reachable? No

x≥ y

No acc. state

Inconsistent!

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

Exhibit a proof for unreachability

5/35

Page 10: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Is accepting state reachable? No

x≥ y

No acc. state

Inconsistent!

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

Exhibit a proof for unreachability

5/35

Page 11: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Is accepting state reachable? No

x≥ y

No acc. state

Inconsistent!

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

Exhibit a proof for unreachability

5/35

Page 12: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Goal of this talk

Computing short proofs for (un)-reachability

6/35

Page 13: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

· · ·

x

y

· · ·

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0

q3 , x− y = 1

q4 , x− y = 0 ∧ y≥ 5

q4 , x− y = 1 ∧ y≥ 5

q5 , x− y = 0 ∧ x≥ 106

q5 , x− y = 1 ∧ x≥ 106

×

××

...

......

...

Zone Graph

7/35

Page 14: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

· · ·

x

y

· · ·

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0

q3 , x− y = 1

q4 , x− y = 0 ∧ y≥ 5

q4 , x− y = 1 ∧ y≥ 5

q5 , x− y = 0 ∧ x≥ 106

q5 , x− y = 1 ∧ x≥ 106

×

××

...

......

...

Zone Graph

7/35

Page 15: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

· · ·

x

y

· · ·

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0

q3 , x− y = 1

q4 , x− y = 0 ∧ y≥ 5

q4 , x− y = 1 ∧ y≥ 5

q5 , x− y = 0 ∧ x≥ 106

q5 , x− y = 1 ∧ x≥ 106

×

××

...

......

...

Zone Graph

7/35

Page 16: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

· · ·

x

y

· · ·

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0

q3 , x− y = 1

q4 , x− y = 0 ∧ y≥ 5

q4 , x− y = 1 ∧ y≥ 5

q5 , x− y = 0 ∧ x≥ 106

q5 , x− y = 1 ∧ x≥ 106

×

××

...

......

...

Zone Graph

7/35

Page 17: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

· · ·

x

y

· · ·

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0

q3 , x− y = 1

q4 , x− y = 0 ∧ y≥ 5

q4 , x− y = 1 ∧ y≥ 5

q5 , x− y = 0 ∧ x≥ 106

q5 , x− y = 1 ∧ x≥ 106

×

××

...

......

...

Zone Graph

7/35

Page 18: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

· · ·

x

y

· · ·

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0

q3 , x− y = 1

q4 , x− y = 0 ∧ y≥ 5

q4 , x− y = 1 ∧ y≥ 5

q5 , x− y = 0 ∧ x≥ 106

q5 , x− y = 1 ∧ x≥ 106

×

××

...

......

...

Zone Graph

7/35

Page 19: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

· · ·

x

y

· · ·

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0

q3 , x− y = 1

q4 , x− y = 0 ∧ y≥ 5

q4 , x− y = 1 ∧ y≥ 5

q5 , x− y = 0 ∧ x≥ 106

q5 , x− y = 1 ∧ x≥ 106

×

××

...

......

...

Zone Graph

7/35

Page 20: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

· · ·

x

y

· · ·

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0

q3 , x− y = 1

q4 , x− y = 0 ∧ y≥ 5

q4 , x− y = 1 ∧ y≥ 5

q5 , x− y = 0 ∧ x≥ 106

q5 , x− y = 1 ∧ x≥ 106

×

××

...

......

...

Zone Graph

7/35

Page 21: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

· · ·

x

y

· · ·

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0

q3 , x− y = 1

q4 , x− y = 0 ∧ y≥ 5

q4 , x− y = 1 ∧ y≥ 5

q5 , x− y = 0 ∧ x≥ 106

q5 , x− y = 1 ∧ x≥ 106

×

××

...

......

...

Zone Graph

7/35

Page 22: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

· · ·

x

y

· · ·

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0

q3 , x− y = 1

q4 , x− y = 0 ∧ y≥ 5

q4 , x− y = 1 ∧ y≥ 5

q5 , x− y = 0 ∧ x≥ 106

q5 , x− y = 1 ∧ x≥ 106

×

××

...

......

...

Zone Graph

7/35

Page 23: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

· · ·

x

y

· · ·

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0

q3 , x− y = 1

q4 , x− y = 0 ∧ y≥ 5

q4 , x− y = 1 ∧ y≥ 5

q5 , x− y = 0 ∧ x≥ 106

q5 , x− y = 1 ∧ x≥ 106

×

××

...

......

...

Zone Graph

7/35

Page 24: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

· · ·

x

y

· · ·

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0

q3 , x− y = 1

q4 , x− y = 0 ∧ y≥ 5

q4 , x− y = 1 ∧ y≥ 5

q5 , x− y = 0 ∧ x≥ 106

q5 , x− y = 1 ∧ x≥ 106

×

××

...

......

...

Zone Graph

7/35

Page 25: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

· · ·

x

y

· · ·

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0

q3 , x− y = 1

q4 , x− y = 0 ∧ y≥ 5

q4 , x− y = 1 ∧ y≥ 5

q5 , x− y = 0 ∧ x≥ 106

q5 , x− y = 1 ∧ x≥ 106

×

××

...

......

...

Zone Graph

7/35

Page 26: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

· · ·

x

y

· · ·

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0

q3 , x− y = 1

q4 , x− y = 0 ∧ y≥ 5

q4 , x− y = 1 ∧ y≥ 5

q5 , x− y = 0 ∧ x≥ 106

q5 , x− y = 1 ∧ x≥ 106

×

××

...

......

...

Zone Graph

7/35

Page 27: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

· · ·

x

y

· · ·

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0

q3 , x− y = 1

q4 , x− y = 0 ∧ y≥ 5

q4 , x− y = 1 ∧ y≥ 5

q5 , x− y = 0 ∧ x≥ 106

q5 , x− y = 1 ∧ x≥ 106

×

××

...

......

...

Zone Graph

7/35

Page 28: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Zones and zone graph

É Zone: set of valuations defined by conjunctions of constraints:

x ∼ cx− y ∼ c

e.g. (x− y≥ 1) ∧ (y< 2)

É Representation: by DBM [Dill’89]

Sound and complete [Daws, Tripakis’98]

Zone graph preserves state reachability

But zone graph could be infinite!

8/35

Page 29: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Zones and zone graph

É Zone: set of valuations defined by conjunctions of constraints:

x ∼ cx− y ∼ c

e.g. (x− y≥ 1) ∧ (y< 2)

É Representation: by DBM [Dill’89]

Sound and complete [Daws, Tripakis’98]

Zone graph preserves state reachability

But zone graph could be infinite!

8/35

Page 30: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Coming next: Finite abstractions of the zone graph

9/35

Page 31: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Abstractions

Zone graph

potentially infinite...

Z0

Z1

Z2 Z3

q0 ,

q1 ,

q2 , q3 ,

×××

......

Z0

W1Z1

W2

Z2

W3Z3

q0 ,

q1 ,

q2 , q3 ,

××

×

a(Z0)

a(W1)

a(W2)

a(W3)

Question: How do we choose these abstraction functions?

10/35

Page 32: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Abstractions

Zone graph

potentially infinite...

Z0

Z1

Z2 Z3

q0 ,

q1 ,

q2 , q3 ,

×××

......

Z0

W1Z1

W2

Z2

W3Z3

q0 ,

q1 ,

q2 , q3 ,

××

×

a(Z0)

a(W1)

a(W2)

a(W3)

Question: How do we choose these abstraction functions?

10/35

Page 33: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Abstractions

Zone graph

potentially infinite...

Z0

Z1

Z2 Z3

q0 ,

q1 ,

q2 , q3 ,

×××

......

Z0

W1Z1

W2

Z2

W3Z3

q0 ,

q1 ,

q2 , q3 ,

××

×

a(Z0)

a(W1)

a(W2)

a(W3)

Question: How do we choose these abstraction functions?

10/35

Page 34: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Abstractions

Zone graph

potentially infinite...

Z0

Z1

Z2 Z3

q0 ,

q1 ,

q2 , q3 ,

×××

......

Z0

W1Z1

W2

Z2

W3Z3

q0 ,

q1 ,

q2 , q3 ,

××

×

a(Z0)

a(W1)

a(W2)

a(W3)

Question: How do we choose these abstraction functions?

10/35

Page 35: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Abstractions

Zone graph

potentially infinite...

Z0

Z1

Z2 Z3

q0 ,

q1 ,

q2 , q3 ,

×××

......

Z0

W1Z1

W2

Z2

W3Z3

q0 ,

q1 ,

q2 , q3 ,

××

×

a(Z0)

a(W1)

a(W2)

a(W3)

Question: How do we choose these abstraction functions?

10/35

Page 36: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Abstractions

Zone graph

potentially infinite...

Z0

Z1

Z2 Z3

q0 ,

q1 ,

q2 , q3 ,

×××

......

Z0

W1Z1

W2

Z2

W3Z3

q0 ,

q1 ,

q2 , q3 ,

××

×

a(Z0)

a(W1)

a(W2)

a(W3)

Question: How do we choose these abstraction functions?

10/35

Page 37: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Abstractions

Zone graph

potentially infinite...

Z0

Z1

Z2 Z3

q0 ,

q1 ,

q2 , q3 ,

×××

......

Z0

W1Z1

W2

Z2

W3Z3

q0 ,

q1 ,

q2 , q3 ,

××

×

a(Z0)

a(W1)

a(W2)

a(W3)

Question: How do we choose these abstraction functions?

10/35

Page 38: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Abstractions

Zone graph

potentially infinite...

Z0

Z1

Z2 Z3

q0 ,

q1 ,

q2 , q3 ,

×××

......

Z0

W1Z1

W2

Z2

W3Z3

q0 ,

q1 ,

q2 , q3 ,

××

×

a(Z0)

a(W1)

a(W2)

a(W3)

Question: How do we choose these abstraction functions?

10/35

Page 39: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Abstractions

Zone graph

potentially infinite...

Z0

Z1

Z2 Z3

q0 ,

q1 ,

q2 , q3 ,

×××

......

Z0

W1Z1

W2

Z2

W3Z3

q0 ,

q1 ,

q2 , q3 ,

××

×

a(Z0)

a(W1)

a(W2)

a(W3)

Question: How do we choose these abstraction functions?

10/35

Page 40: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Condition 1: Abstractions should have finite range

Condition 2: Abstractions should be sound⇒ a(W ) can containonly valuations simulated by W

a(W )

W

vg1

R1

g2

R2

g3

R3

g4

R4

g5

R5

v′ g1

R1

g2

R2

g3

R3

g4

R4

g5

R5

q ,

Coming next: Simulation relations

11/35

Page 41: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Condition 1: Abstractions should have finite range

Condition 2: Abstractions should be sound⇒ a(W ) can containonly valuations simulated by W

a(W )

W

vg1

R1

g2

R2

g3

R3

g4

R4

g5

R5

v′ g1

R1

g2

R2

g3

R3

g4

R4

g5

R5

q ,

Coming next: Simulation relations

11/35

Page 42: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

(q,v) (q,v′)

´is simulated by

g R

(q1,v1)

g R

(q1,v′1)´

q1

q2

q3

q4

x≥ 1 y≤ 3

y≥ 2 x≤ 3(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 2.9⟩)6´(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 1⟩)´

12/35

Page 43: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

(q,v) (q,v′)´is simulated by

g R

(q1,v1)

g R

(q1,v′1)´

q1

q2

q3

q4

x≥ 1 y≤ 3

y≥ 2 x≤ 3(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 2.9⟩)6´(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 1⟩)´

12/35

Page 44: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

(q,v) (q,v′)´is simulated by

g R

(q1,v1)

g R

(q1,v′1)´

q1

q2

q3

q4

x≥ 1 y≤ 3

y≥ 2 x≤ 3(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 2.9⟩)6´(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 1⟩)´

12/35

Page 45: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

(q,v) (q,v′)´is simulated by

g R

(q1,v1)

g R

(q1,v′1)

´

q1

q2

q3

q4

x≥ 1 y≤ 3

y≥ 2 x≤ 3(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 2.9⟩)6´(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 1⟩)´

12/35

Page 46: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

(q,v) (q,v′)´is simulated by

g R

(q1,v1)

g R

(q1,v′1)´

q1

q2

q3

q4

x≥ 1 y≤ 3

y≥ 2 x≤ 3(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 2.9⟩)6´(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 1⟩)´

12/35

Page 47: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

(q,v) (q,v′)´is simulated by

g R

(q1,v1)

g R

(q1,v′1)´

q1

q2

q3

q4

x≥ 1 y≤ 3

y≥ 2 x≤ 3

(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 2.9⟩)6´(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 1⟩)´

12/35

Page 48: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

(q,v) (q,v′)´is simulated by

g R

(q1,v1)

g R

(q1,v′1)´

q1

q2

q3

q4

x≥ 1 y≤ 3

y≥ 2 x≤ 3(q1, ⟨x = 0.5,y = 2.1⟩)

(q1, ⟨x = 0.5,y = 2.9⟩)6´(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 1⟩)´

12/35

Page 49: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

(q,v) (q,v′)´is simulated by

g R

(q1,v1)

g R

(q1,v′1)´

q1

q2

q3

q4

x≥ 1 y≤ 3

y≥ 2 x≤ 3(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 2.9⟩)

6´(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 1⟩)´

12/35

Page 50: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

(q,v) (q,v′)´is simulated by

g R

(q1,v1)

g R

(q1,v′1)´

q1

q2

q3

q4

x≥ 1 y≤ 3

y≥ 2 x≤ 3(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 2.9⟩)6´

(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 1⟩)´

12/35

Page 51: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

(q,v) (q,v′)´is simulated by

g R

(q1,v1)

g R

(q1,v′1)´

q1

q2

q3

q4

x≥ 1 y≤ 3

y≥ 2 x≤ 3(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 2.9⟩)6´(q1, ⟨x = 0.5,y = 2.1⟩) (q1, ⟨x = 0.5,y = 1⟩)´

12/35

Page 52: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Abstractions from simulations

a(W )

W

vg1

R1

g2

R2

g3

R3

g4

R4

g5

R5

v′ g1

R1

g2

R2

g3

R3

g4

R4

g5

R5

q ,

É a(W ) = aq(W ) : { v | exists v′ ∈W s.t. (q,v)� (q,v′) }

13/35

Page 53: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Abstractions from simulations

a(W )

W

vg1

R1

g2

R2

g3

R3

g4

R4

g5

R5

v′ g1

R1

g2

R2

g3

R3

g4

R4

g5

R5

q ,

É a(W ) = aq(W ) : { v | exists v′ ∈W s.t. (q,v)� (q,v′) }

13/35

Page 54: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Using non-convex abstractions

Standard algorithm: covering tree

Pick simulation based aNeed to store only concrete semanticsUse Z✓ a(Z0) for termination

q0

q1

q2

q3

q4

q5

,

,

,

,

,

,

Z0

W1Z1

W2

Z2

W3Z3

W4

Z4

W5Z5

a(Z0)

a(W1)

a(W2)

a(W3)

a(W4)

a(W5)q3 = q1 ^a(W3)✓ a(W1)?

º

º

16/43

Coarser the abstraction, smaller the abstracted graph

14/35

Page 55: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Using non-convex abstractions

Standard algorithm: covering tree

Pick simulation based aNeed to store only concrete semanticsUse Z✓ a(Z0) for termination

q0

q1

q2

q3

q4

q5

,

,

,

,

,

,

Z0

W1Z1

W2

Z2

W3Z3

W4

Z4

W5Z5

a(Z0)

a(W1)

a(W2)

a(W3)

a(W4)

a(W5)q3 = q1 ^a(W3)✓ a(W1)?

º

º

16/43

Coarser the abstraction, smaller the abstracted graph

14/35

Page 56: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Condition 1: Abstractions should have finite range

Condition 2: Abstractions should be sound⇒ a(W ) can containonly valuations simulated by W

a(W )

W

vg1

R1

g2

R2

g3

R3

g4

R4

g5

R5

v′ g1

R1

g2

R2

g3

R3

g4

R4

g5

R5

q ,

Why not add all valuations simulated by W ?

15/35

Page 57: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Condition 1: Abstractions should have finite range

Condition 2: Abstractions should be sound⇒ a(W ) can containonly valuations simulated by W

a(W )

W

vg1

R1

g2

R2

g3

R3

g4

R4

g5

R5

v′ g1

R1

g2

R2

g3

R3

g4

R4

g5

R5

q ,

Why not add all valuations simulated by W ?

15/35

Page 58: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Theorem [Laroussinie, Schnoebelen’00]

Deciding coarsest simulation relation for a given automaton isEXPTIME-hard

M-bounds [Alur, Dill’90]

M(x) = 6, M(y) = 3

v´M v′

LU-bounds Behrmann et al’06

L(x) = 6, L(y) =−∞U(x) = 4, U(y) = 3

v´LU v′

(y≤ 3)

(x< 1)

(y< 1)

(x< 4)

(x> 6){y}

{y}

s0 s1 s3

s2

16/35

Page 59: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Theorem [Laroussinie, Schnoebelen’00]

Deciding coarsest simulation relation for a given automaton isEXPTIME-hard

M-bounds [Alur, Dill’90]

M(x) = 6, M(y) = 3

v´M v′

LU-bounds Behrmann et al’06

L(x) = 6, L(y) =−∞U(x) = 4, U(y) = 3

v´LU v′

(y≤ 3)

(x< 1)

(y< 1)

(x< 4)

(x> 6)

{y}

{y}

s0 s1 s3

s2

16/35

Page 60: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Theorem [Laroussinie, Schnoebelen’00]

Deciding coarsest simulation relation for a given automaton isEXPTIME-hard

M-bounds [Alur, Dill’90]

M(x) = 6, M(y) = 3

v´M v′

LU-bounds Behrmann et al’06

L(x) = 6, L(y) =−∞U(x) = 4, U(y) = 3

v´LU v′

(y≤ 3)

(x< 1)

(y< 1)

(x< 4)

(x> 6)

{y}

{y}

s0 s1 s3

s2

16/35

Page 61: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Theorem [Laroussinie, Schnoebelen’00]

Deciding coarsest simulation relation for a given automaton isEXPTIME-hard

M-bounds [Alur, Dill’90]

M(x) = 6, M(y) = 3

v´M v′

LU-bounds Behrmann et al’06

L(x) = 6, L(y) =−∞U(x) = 4, U(y) = 3

v´LU v′

(y≤ 3)

(x< 1)

(y< 1)

(x< 4)

(x> 6)

{y}

{y}

s0 s1 s3

s2

16/35

Page 62: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Abstractions in literature [Behrmann, Bouyer, Larsen, Pelanek’06]

Non-convex

Convex

a´LU

ClosureM

Extra+M

Extra+LU

ExtraLU

ExtraM

(´M)

(´LU)

Only convex abstractions used in implementations!

17/35

Page 63: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Abstractions in literature [Behrmann, Bouyer, Larsen, Pelanek’06]

Non-convex

Convex

a´LU

ClosureM

Extra+M

Extra+LU

ExtraLU

ExtraM

(´M)

(´LU)

Only convex abstractions used in implementations!

17/35

Page 64: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Abstractions in literature [Behrmann, Bouyer, Larsen, Pelanek’06]

Non-convex

Convex

a´LU

ClosureM Extra+M

Extra+LU

ExtraLU

ExtraM

(´M)

(´LU)

Only convex abstractions used in implementations!17/35

Page 65: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Getting LU-bounds

Smaller the LU bounds, bigger is the abstraction

18/35

Page 66: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

106

bounds by Static analysis

[Behrmann, Bouyer, Fleury, Larsen’03]

Zone graph + ExtraLU+ +

−∞106

U(x) = 1L(x) = 106 ,U(x) = 1

L(x) = 106 ,U(x) = 1

L(y) = 5,U(y) = 1

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q1 , x> 106

q2 , true

q3 , x− y = 0

q3 , x− y = 1

q3 , x> 106

q4 , true q5 , x> 1

×

×

×

...

...

19/35

Page 67: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

106

bounds by Static analysis

[Behrmann, Bouyer, Fleury, Larsen’03]

Zone graph + ExtraLU+ +

−∞106

U(x) = 1L(x) = 106 ,U(x) = 1

L(x) = 106 ,U(x) = 1

L(y) = 5,U(y) = 1

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q1 , x> 106

q2 , true

q3 , x− y = 0

q3 , x− y = 1

q3 , x> 106

q4 , true q5 , x> 1

×

×

×

...

...

19/35

Page 68: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

106

bounds by Static analysis

[Behrmann, Bouyer, Fleury, Larsen’03]

Zone graph + ExtraLU+ +

−∞

106

U(x) = 1L(x) = 106 ,U(x) = 1

L(x) = 106 ,U(x) = 1

L(y) = 5,U(y) = 1

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q1 , x> 106

q2 , true

q3 , x− y = 0

q3 , x− y = 1

q3 , x> 106

q4 , true q5 , x> 1

×

×

×

...

...

19/35

Page 69: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

106

bounds by Static analysis

[Behrmann, Bouyer, Fleury, Larsen’03]

Zone graph + ExtraLU+ +

−∞106

U(x) = 1L(x) = 106 ,U(x) = 1

L(x) = 106 ,U(x) = 1

L(y) = 5,U(y) = 1

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q1 , x> 106

q2 , true

q3 , x− y = 0

q3 , x− y = 1

q3 , x> 106

q4 , true q5 , x> 1

×

×

×

...

...

19/35

Page 70: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

106

bounds by Static analysis

[Behrmann, Bouyer, Fleury, Larsen’03]

Zone graph + ExtraLU+ +

−∞106

U(x) = 1

L(x) = 106 ,U(x) = 1

L(x) = 106 ,U(x) = 1

L(y) = 5,U(y) = 1

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q1 , x> 106

q2 , true

q3 , x− y = 0

q3 , x− y = 1

q3 , x> 106

q4 , true q5 , x> 1

×

×

×

...

...

19/35

Page 71: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

106

bounds by Static analysis

[Behrmann, Bouyer, Fleury, Larsen’03]

Zone graph + ExtraLU+ +

−∞106

U(x) = 1L(x) = 106 ,U(x) = 1

L(x) = 106 ,U(x) = 1

L(y) = 5,U(y) = 1

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q1 , x> 106

q2 , true

q3 , x− y = 0

q3 , x− y = 1

q3 , x> 106

q4 , true q5 , x> 1

×

×

×

...

...

19/35

Page 72: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

106

bounds by Static analysis

[Behrmann, Bouyer, Fleury, Larsen’03]

Zone graph + ExtraLU+ +

−∞106

U(x) = 1L(x) = 106 ,U(x) = 1

L(x) = 106 ,U(x) = 1

L(y) = 5,U(y) = 1

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q1 , x> 106

q2 , true

q3 , x− y = 0

q3 , x− y = 1

q3 , x> 106

q4 , true q5 , x> 1

×

×

×

...

...

19/35

Page 73: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

106

bounds by Static analysis

[Behrmann, Bouyer, Fleury, Larsen’03]

Zone graph + ExtraLU+ +

−∞106

U(x) = 1L(x) = 106 ,U(x) = 1

L(x) = 106 ,U(x) = 1

L(y) = 5,U(y) = 1

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q1 , x> 106

q2 , true

q3 , x− y = 0

q3 , x− y = 1

q3 , x> 106

q4 , true q5 , x> 1

×

×

×

...

...

19/35

Page 74: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

x

y

106

bounds by Static analysis

[Behrmann, Bouyer, Fleury, Larsen’03]

Zone graph + ExtraLU+ +

−∞106

U(x) = 1L(x) = 106 ,U(x) = 1

L(x) = 106 ,U(x) = 1

L(y) = 5,U(y) = 1

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q1 , x> 106

q2 , true

q3 , x− y = 0

q3 , x− y = 1

q3 , x> 106

q4 , true q5 , x> 1

×

×

×

...

...

19/35

Page 75: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Reachability for timed automata

Standard algorithm: covering tree

Convex abstractions

Bounds by static analysis

Observation 1

Non-convex abstractions

Observation 2

20/35

Page 76: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Reachability for timed automata

Standard algorithm: covering tree

Convex abstractions

Bounds by static analysis

Observation 1

Non-convex abstractions

Observation 2

20/35

Page 77: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Step 1: We can use abstractions without storing them

21/35

Page 78: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Using non-convex abstractions

Standard algorithm: covering tree

Pick simulation based aNeed to store only concrete semanticsUse Z⊆ a(Z′) for termination

q0

q1

q2

q3

q4

q5

,

,

,

,

,

,

Z0

W1Z1

W2

Z2

W3Z3

W4

Z4

W5Z5

a(Z0)

a(W1)

a(W2)

a(W3)

a(W4)

a(W5)q3 = q1 ∧a(W3)⊆ a(W1)?

¼

¼

22/35

Page 79: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Using non-convex abstractions

Standard algorithm: covering tree

Pick simulation based a

Need to store only concrete semanticsUse Z⊆ a(Z′) for termination

q0

q1

q2

q3

q4

q5

,

,

,

,

,

,

Z0

W1Z1

W2

Z2

W3Z3

W4

Z4

W5Z5

a(Z0)

a(W1)

a(W2)

a(W3)

a(W4)

a(W5)q3 = q1 ∧a(W3)⊆ a(W1)?

¼

¼

22/35

Page 80: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Using non-convex abstractions

Standard algorithm: covering tree

Pick simulation based a

Need to store only concrete semanticsUse Z⊆ a(Z′) for termination

q0

q1

q2

q3

q4

q5

,

,

,

,

,

,

Z0

W1Z1

W2

Z2

W3Z3

W4

Z4

W5Z5

a(Z0)

a(W1)

a(W2)

a(W3)

a(W4)

a(W5)q3 = q1 ∧a(W3)⊆ a(W1)?

¼

¼

22/35

Page 81: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Using non-convex abstractions

Standard algorithm: covering tree

Pick simulation based a

Need to store only concrete semanticsUse Z⊆ a(Z′) for termination

q0

q1

q2

q3

q4

q5

,

,

,

,

,

,

Z0

W1Z1

W2

Z2

W3Z3

W4

Z4

W5Z5

a(Z0)

a(W1)

a(W2)

a(W3)

a(W4)

a(W5)q3 = q1 ∧a(W3)⊆ a(W1)?

¼

¼

22/35

Page 82: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Using non-convex abstractions

Standard algorithm: covering tree

Pick simulation based a

Need to store only concrete semanticsUse Z⊆ a(Z′) for termination

q0

q1

q2

q3

q4

q5

,

,

,

,

,

,

Z0

W1Z1

W2

Z2

W3Z3

W4

Z4

W5Z5

a(Z0)

a(W1)

a(W2)

a(W3)

a(W4)

a(W5)q3 = q1 ∧a(W3)⊆ a(W1)?

¼

¼

22/35

Page 83: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Using non-convex abstractions

Standard algorithm: covering tree

Pick simulation based a

Need to store only concrete semanticsUse Z⊆ a(Z′) for termination

q0

q1

q2

q3

q4

q5

,

,

,

,

,

,

Z0

W1Z1

W2

Z2

W3Z3

W4

Z4

W5Z5

a(Z0)

a(W1)

a(W2)

a(W3)

a(W4)

a(W5)q3 = q1 ∧a(W3)⊆ a(W1)?

¼

¼

22/35

Page 84: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Using non-convex abstractions

Standard algorithm: covering tree

Pick simulation based a

Need to store only concrete semanticsUse Z⊆ a(Z′) for termination

q0

q1

q2

q3

q4

q5

,

,

,

,

,

,

Z0

W1

Z1

W2

Z2

W3

Z3

W4

Z4

W5

Z5

a(Z0)

a(Z1)

a(Z2)

a(Z3)

a(Z4)

a(Z5)q3 = q1 ∧a(Z3)⊆ a(Z1)?

¼

¼

22/35

Page 85: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Using non-convex abstractions

Standard algorithm: covering treePick simulation based a

Need to store only concrete semantics

Use Z⊆ a(Z′) for termination

q0

q1

q2

q3

q4

q5

,

,

,

,

,

,

Z0

W1

Z1

W2

Z2

W3

Z3

W4

Z4

W5

Z5

a(Z0)

a(Z1)

a(Z2)

a(Z3)

a(Z4)

a(Z5)

q3 = q1 ∧a(Z3)⊆ a(Z1)?

¼

¼

22/35

Page 86: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Using non-convex abstractions

Standard algorithm: covering treePick simulation based aNeed to store only concrete semantics

Use Z⊆ a(Z′) for termination

q0

q1

q2

q3

q4

q5

,

,

,

,

,

,

Z0

W1

Z1

W2

Z2

W3

Z3

W4

Z4

W5

Z5

a(Z0)

a(Z1)

a(Z2)

a(Z3)

a(Z4)

a(Z5)

q3 = q1 ∧

a(

Z3

)

⊆ a(Z1)?

¼

¼

22/35

Page 87: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Step 1: We can use abstractions without storing them

Step 2: We can do the inclusion test efficiently

23/35

Page 88: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Efficient inclusion testing

Main result

Z 6⊆ a´LU(Z′) if and only if there exist 2 clocks x,y s.t.

Projxy(Z) 6⊆ a´LU(Projxy(Z′))

Complexity: O (|X|2), where X is the set of clocks

Same complexity as Z⊆ Z′!

Slightly modified comparison works!

24/35

Page 89: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Efficient inclusion testing

Main result

Z 6⊆ a´LU(Z′) if and only if there exist 2 clocks x,y s.t.

Projxy(Z) 6⊆ a´LU(Projxy(Z′))

Complexity: O (|X|2), where X is the set of clocks

Same complexity as Z⊆ Z′!

Slightly modified comparison works!

24/35

Page 90: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Efficient inclusion testing

Main result

Z 6⊆ a´LU(Z′) if and only if there exist 2 clocks x,y s.t.

Projxy(Z) 6⊆ a´LU(Projxy(Z′))

Complexity: O (|X|2), where X is the set of clocks

Same complexity as Z⊆ Z′!

Slightly modified comparison works!

24/35

Page 91: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Efficient inclusion testing

Main result

Z 6⊆ a´LU(Z′) if and only if there exist 2 clocks x,y s.t.

Projxy(Z) 6⊆ a´LU(Projxy(Z′))

Complexity: O (|X|2), where X is the set of clocks

Same complexity as Z⊆ Z′!

Slightly modified comparison works!

24/35

Page 92: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Step 1: We can use abstractions without storing them

Step 2: We can do the inclusion test efficiently

⇒ new algorithm for reachability

25/35

Page 93: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Non-convex

Convex

a´LU

ClosureM Extra+M

Extra+LU

ExtraLU

ExtraM

(´M)

(´LU)

Question: Can we do better than a´LU?

26/35

Page 94: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Non-convex

Convex

a´LU

ClosureM Extra+M

Extra+LU

ExtraLU

ExtraM

(´M)

(´LU)

Question: Can we do better than a´LU?

26/35

Page 95: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Optimality

LU-automata: automata with guards determined by L and U

TheoremThe a´LU abstraction is the coarsest abstraction that is soundand complete for all LU-automata.

27/35

Page 96: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Reachability for timed automata

Standard algorithm: covering tree

Convex abstractions

Bounds by static analysis

Observation 1

Non-convex abstractions

Optimality

Observation 2

Better LU-bounds

Smaller the LU-bounds, bigger is the a´LU abstraction

28/35

Page 97: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Reachability for timed automata

Standard algorithm: covering tree

Convex abstractions

Bounds by static analysis

Observation 1

Non-convex abstractions

Optimality

Observation 2

Better LU-bounds

Smaller the LU-bounds, bigger is the a´LU abstraction

28/35

Page 98: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Reachability for timed automata

Standard algorithm: covering tree

Convex abstractions

Bounds by static analysis

Observation 1

Non-convex abstractions

Optimality

Observation 2

Better LU-bounds

Smaller the LU-bounds, bigger is the a´LU abstraction

28/35

Page 99: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞−∞ −∞ −∞

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106 ×

No disabled edge⇒ all states seen⇒ no need for bounds!

What to do when a disabled edge is seen?

29/35

Page 100: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞−∞ −∞ −∞

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106 ×

No disabled edge⇒ all states seen⇒ no need for bounds!

What to do when a disabled edge is seen?

29/35

Page 101: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞

−∞−∞ −∞ −∞

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106 ×

No disabled edge⇒ all states seen⇒ no need for bounds!

What to do when a disabled edge is seen?

29/35

Page 102: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞

−∞ −∞ −∞

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106 ×

No disabled edge⇒ all states seen⇒ no need for bounds!

What to do when a disabled edge is seen?

29/35

Page 103: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞

−∞ −∞ −∞

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106 ×

No disabled edge⇒ all states seen⇒ no need for bounds!

What to do when a disabled edge is seen?

29/35

Page 104: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞

−∞ −∞ −∞

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106 ×

No disabled edge⇒ all states seen⇒ no need for bounds!

What to do when a disabled edge is seen?

29/35

Page 105: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞

−∞ −∞ −∞

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106 ×

No disabled edge⇒ all states seen⇒ no need for bounds!

What to do when a disabled edge is seen?

29/35

Page 106: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞−∞

−∞ −∞

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0

q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106 ×

No disabled edge⇒ all states seen⇒ no need for bounds!

What to do when a disabled edge is seen?

29/35

Page 107: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞−∞ −∞

−∞

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5

q5 , x− y = 0 ∧ x≥ 106 ×

No disabled edge⇒ all states seen⇒ no need for bounds!

What to do when a disabled edge is seen?

29/35

Page 108: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞−∞ −∞ −∞

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106

×

No disabled edge⇒ all states seen⇒ no need for bounds!

What to do when a disabled edge is seen?

29/35

Page 109: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞−∞ −∞ −∞

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106 ×

No disabled edge⇒ all states seen⇒ no need for bounds!

What to do when a disabled edge is seen?

29/35

Page 110: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞−∞ −∞ −∞

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106 ×

No disabled edge⇒ all states seen⇒ no need for bounds!

What to do when a disabled edge is seen?

29/35

Page 111: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0 q1 q2 q3 q4x≥ 5 y≥ 5 y> 100 w≤ 2

(q0 ,x = y = w≥ 0)

(q1 ,x = y = w≥ 5)

(q2 ,x = y = w≥ 5)

(q3 ,x = y = w> 100)

w≤ 2

x≥ 5 is responsible

L(x) = 5, U(w) = 2

30/35

Page 112: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

q0 q1 q2 q3 q4x≥ 5 y≥ 5 y> 100 w≤ 2

(q0 ,x = y = w≥ 0)

(q1 ,x = y = w≥ 5)

(q2 ,x = y = w≥ 5)

(q3 ,x = y = w> 100)

w≤ 2

x≥ 5 is responsible

L(x) = 5, U(w) = 2

30/35

Page 113: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

(q0 ,Z0

(q1 ,Z1)

(qn−2 ,Zn−2)

(qn−1 ,Zn−1)

(qn ,Zn)

g1

gn−1

gn

gn+1

...

LnUn φn := a´LnUn(Zn) gn+1 is disabled from φn

Ln−1Un−1 φn−1 := a´Ln−1Un−1(Zn−1) if Zn−1 ⊆φn, don’t take gn

Ln−2Un−2 φn−1 := a´Ln−2Un−2(Zn−2) if Zn−2 ⊆φn−1, don’t take gn−1

L1U1 φ1 := a´L1U1(Z1) if Z1 ⊆φ2, don’t take g2

L0U0 φ1 := a´L0U0(Z0) if Z0 ⊆φ1, don’t take g1

31/35

Page 114: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

(q0 ,Z0

(q1 ,Z1)

(qn−2 ,Zn−2)

(qn−1 ,Zn−1)

(qn ,Zn)

g1

gn−1

gn

gn+1

...

LnUn φn := a´LnUn(Zn) gn+1 is disabled from φn

Ln−1Un−1 φn−1 := a´Ln−1Un−1(Zn−1) if Zn−1 ⊆φn, don’t take gn

Ln−2Un−2 φn−1 := a´Ln−2Un−2(Zn−2) if Zn−2 ⊆φn−1, don’t take gn−1

L1U1 φ1 := a´L1U1(Z1) if Z1 ⊆φ2, don’t take g2

L0U0 φ1 := a´L0U0(Z0) if Z0 ⊆φ1, don’t take g1

31/35

Page 115: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

(q0 ,Z0

(q1 ,Z1)

(qn−2 ,Zn−2)

(qn−1 ,Zn−1)

(qn ,Zn)

g1

gn−1

gn

gn+1

...

LnUn φn := a´LnUn(Zn) gn+1 is disabled from φn

Ln−1Un−1 φn−1 := a´Ln−1Un−1(Zn−1) if Zn−1 ⊆φn, don’t take gn

Ln−2Un−2 φn−1 := a´Ln−2Un−2(Zn−2) if Zn−2 ⊆φn−1, don’t take gn−1

L1U1 φ1 := a´L1U1(Z1) if Z1 ⊆φ2, don’t take g2

L0U0 φ1 := a´L0U0(Z0) if Z0 ⊆φ1, don’t take g1

31/35

Page 116: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

(q0 ,Z0

(q1 ,Z1)

(qn−2 ,Zn−2)

(qn−1 ,Zn−1)

(qn ,Zn)

g1

gn−1

gn

gn+1

...

LnUn φn := a´LnUn(Zn) gn+1 is disabled from φn

Ln−1Un−1 φn−1 := a´Ln−1Un−1(Zn−1) if Zn−1 ⊆φn, don’t take gn

Ln−2Un−2 φn−1 := a´Ln−2Un−2(Zn−2) if Zn−2 ⊆φn−1, don’t take gn−1

L1U1 φ1 := a´L1U1(Z1) if Z1 ⊆φ2, don’t take g2

L0U0 φ1 := a´L0U0(Z0) if Z0 ⊆φ1, don’t take g1

31/35

Page 117: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Lazy bounds propagation[Herbreteau, S., Walukiewicz’13]

Zone graph + a´LU

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞−∞

U(x) = 1,L(y) = 5

−∞

U(x) = 1

−∞

U(x) = 1

q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106

q3 , x− y = 1

×

32/35

Page 118: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Lazy bounds propagation[Herbreteau, S., Walukiewicz’13]

Zone graph + a´LU

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞−∞

U(x) = 1,L(y) = 5

−∞

U(x) = 1 −∞

U(x) = 1q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106

q3 , x− y = 1

×

32/35

Page 119: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Lazy bounds propagation[Herbreteau, S., Walukiewicz’13]

Zone graph + a´LU

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞−∞

U(x) = 1,L(y) = 5 −∞

U(x) = 1

−∞

U(x) = 1q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106

q3 , x− y = 1

×

32/35

Page 120: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Lazy bounds propagation[Herbreteau, S., Walukiewicz’13]

Zone graph + a´LU

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞

−∞

U(x) = 1,L(y) = 5

−∞

U(x) = 1

−∞

U(x) = 1q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106

q3 , x− y = 1

×

32/35

Page 121: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Lazy bounds propagation[Herbreteau, S., Walukiewicz’13]

Zone graph + a´LU

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞

−∞

U(x) = 1,L(y) = 5

−∞

U(x) = 1

−∞

U(x) = 1q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106

q3 , x− y = 1

×

32/35

Page 122: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Lazy bounds propagation[Herbreteau, S., Walukiewicz’13]

Zone graph + a´LU

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞

−∞

U(x) = 1,L(y) = 5

−∞

U(x) = 1

−∞

U(x) = 1q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106

q3 , x− y = 1

×

32/35

Page 123: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Lazy bounds propagation[Herbreteau, S., Walukiewicz’13]

Zone graph + a´LU

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞

−∞

U(x) = 1,L(y) = 5

−∞

U(x) = 1

−∞

U(x) = 1q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106

q3 , x− y = 1

×

32/35

Page 124: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Lazy bounds propagation[Herbreteau, S., Walukiewicz’13]

Zone graph + a´LU

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞

−∞

U(x) = 1,L(y) = 5

−∞

U(x) = 1

−∞

U(x) = 1q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106

q3 , x− y = 1

×

32/35

Page 125: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Lazy bounds propagation[Herbreteau, S., Walukiewicz’13]

Zone graph + a´LU

q0

q1 q2

q3 q4 q5 q6

y = 1,{y}x = 106 ∧ y = 106

y = 1,{y}

y≥ 5 x≥ 106 x≤ 1

−∞

−∞ −∞

−∞

U(x) = 1,L(y) = 5

−∞

U(x) = 1

−∞

U(x) = 1q0 , x− y = 0

q1 , x− y = 0

q1 , x− y = 1

q2 , x− y = 0 ∧ x≥ 106

q3 , x− y = 0 q4 , x− y = 0 ∧ y≥ 5 q5 , x− y = 0 ∧ x≥ 106

q3 , x− y = 1

×

32/35

Page 126: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Reachability for timed automata

Standard algorithm: covering tree

Convex abstractions

Bounds by static analysis

Observation 1

Non-convex abstractions

Optimality

Observation 2

Dynamic LU-bounds

33/35

Page 127: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Experiments

Model nb. of UPPAAL (-C) static lazyclocks nodes sec. nodes sec. nodes sec.

CSMA/CD 10 11 120845 1.12

78604 1.89 78604 2.10

CSMA/CD 11 12 311310 3.23

198669 5.07 198669 5.64

CSMA/CD 12 13 786447 14.8

493582 13.58 493582 14.71

C-CSMA/CD 6 6 8153 0.19

1876 0.09

C-CSMA/CD 7

18414 0.97

C-CSMA/CD 8

172040 10.36

FDDI 50 151

10299 13.61 401 0.4

FDDI 70 211

561 1.36

FDDI 140 421

1121 18.25

Fischer 9 9 135485 1.17

135485 3.23 135485 4.38

Fischer 10 10 447598 5.04

447598 12.73 447598 17.27

Fischer 11 11 1464971 20.5

1464971 46.97 1464971 67.61

É UPPAAL (-C) shows results from UPPAAL tool which uses static bounds

É static is our implementation of UPPAAL’s algo

É Time out (180s)

34/35

Page 128: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Experiments

Model nb. of UPPAAL (-C) static lazyclocks nodes sec. nodes sec. nodes sec.

CSMA/CD 10 11 120845 1.12 78604 1.89

78604 2.10

CSMA/CD 11 12 311310 3.23 198669 5.07

198669 5.64

CSMA/CD 12 13 786447 14.8 493582 13.58

493582 14.71

C-CSMA/CD 6 6 8153 0.19

1876 0.09

C-CSMA/CD 7

18414 0.97

C-CSMA/CD 8

172040 10.36

FDDI 50 151 10299 13.61

401 0.4

FDDI 70 211

561 1.36

FDDI 140 421

1121 18.25

Fischer 9 9 135485 1.17 135485 3.23

135485 4.38

Fischer 10 10 447598 5.04 447598 12.73

447598 17.27

Fischer 11 11 1464971 20.5 1464971 46.97

1464971 67.61

É UPPAAL (-C) shows results from UPPAAL tool which uses static bounds

É static is our implementation of UPPAAL’s algo

É Time out (180s)

34/35

Page 129: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Experiments

Model nb. of UPPAAL (-C) static lazyclocks nodes sec. nodes sec. nodes sec.

CSMA/CD 10 11 120845 1.12 78604 1.89 78604 2.10CSMA/CD 11 12 311310 3.23 198669 5.07 198669 5.64CSMA/CD 12 13 786447 14.8 493582 13.58 493582 14.71

C-CSMA/CD 6 6 8153 0.19 1876 0.09C-CSMA/CD 7 18414 0.97C-CSMA/CD 8 172040 10.36

FDDI 50 151 10299 13.61 401 0.4FDDI 70 211 561 1.36FDDI 140 421 1121 18.25Fischer 9 9 135485 1.17 135485 3.23 135485 4.38Fischer 10 10 447598 5.04 447598 12.73 447598 17.27Fischer 11 11 1464971 20.5 1464971 46.97 1464971 67.61

É UPPAAL (-C) shows results from UPPAAL tool which uses static bounds

É static is our implementation of UPPAAL’s algo

É Time out (180s)

34/35

Page 130: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Conclusion

É Computing shorter proofs for un-reachability dynamically

É Main technical ingredient: efficient inclusion test

É Extended to Priced Timed Automata [Bouyer, Colange, Markey’16]

É Future work:

É Improve lazy propagation

É partial-order reduction

É timed games

35/35

Page 131: B. Srivathsan - Chennai Mathematical Instituteacts/2017/Slides/srivathsan-ACTS... · 2017-02-03 · B. Srivathsan Chennai Mathematical Institute Joint work with F. Herbreteau, I.

Conclusion

É Computing shorter proofs for un-reachability dynamically

É Main technical ingredient: efficient inclusion test

É Extended to Priced Timed Automata [Bouyer, Colange, Markey’16]

É Future work:

É Improve lazy propagation

É partial-order reduction

É timed games

35/35