Top Banner
26

A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Aug 24, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

A State Class Construction for

Computing the Intersection of Time

Petri Nets Languages

Eric LUBAT, Silvano DAL ZILIO, Didier LE BOTLAN,

Yannick PENCOLE and Audine SUBIAS

LAAS - CNRS

August 2019 / FORMATS

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 1 / 26

Page 2: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Index

1 IntroductionBackground on (net) Languages and ProductComposability of TPN

2 PTPNArnold-Nivat Product of TPNExpressivenessApplication to the Composability Problem

3 Experimental Results

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 2 / 26

Page 3: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Introduction

Objective: computing (e�ciently) the intersection oftimed languages to check properties onsystems.

Which properties? Temporal properties; observability; . . .

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 3 / 26

Page 4: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Introduction

Traces:t0 t1 t0 t1 . . .t0 f t3 t0 t1 . . .

Words and Labels:L(t0) = aL(t1) = L(t3) = bL(f ) = ε

Labelled Traces:a b a b . . .a b a b . . .

p1 p2

p0

t0 at1

b

t3 b

f

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 4 / 26

Page 5: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Introduction

Traces:t0 t1 t0 t1 . . . → a b a b . . .t0 f t3 t0 t1 . . . → a b a b . . .

Language: (ab)∗

Property: is diagnosable ?

p1 p2

p0

t0 at1

b

t3 b

f

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 5 / 26

Page 6: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Checking diagnosability

p1 p2

p0

t0.1 at1.1

b

t3.1 b

f

p1 p2

p0

t0.2 at1.2

b

t3.2 b

We can use "synchronous product" (‖) to check the intersection betweenlanguages.

JSysK ∩ JSys|f K ≈ JSys ‖ Sys|f K

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 6 / 26

Page 7: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Time Petri Nets

TPN are composed of :a Petri net; an initial marking

timing constraints Is(t) (aka static time interval).

p1 p2

p0

t0 a[2, 4]t1

b

[1, 2]

t3 b

[3, 4]

f

Possible executions:

2.1 t0 2 t1 . . . / 2.1 a 2 b . . .2.1 t0 1 f 3 t3 . . . / 2.1 a 4 b . . .

Language: (ab)∗

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 7 / 26

Page 8: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Motivation for our work

Fault diagnosis for Discrete Event System ≡ properties ontrace languages [Lafortune - 95].

Addition of time constraints.

∆-diagnosability ≡ �reachability of (non-Zeno) runsin product of TA� [Tripakis - 02]

τ -diagnosability ≡ �same� for TPN [Silva - 15,Basile - 17] (but ask for a �ring sequence)

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 8 / 26

Page 9: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Composition of TPN

Analysing the �intersection� of TPN is hindered by two problems:

1 State Space is in�nite

2 Composability problem

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 9 / 26

Page 10: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

State Space is in�nite

Solution: use abstractions based on State Classes [Berthomieu - 83].

p1 p2

p0

t0 a[2, 4]t1

b

[1, 2]

t3 b

[3, 4]

f

# states 3; transitions 4

(class 0) marking: p0

domain: 2 <= t0 <= 4

successors: t0/1

(class 1) marking: p1

domain: 1 <= t1 <= 2

0 <= f < w

successors: t1/0 f/2

(class 2) marking: p2

domain: 3 <= t3 <= 4

successors: t3/0

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 10 / 26

Page 11: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Composability: third solution

IPTPN are TPN with "Inhibit" and "Permit" arcs [Perez - 11].

Adds the possibility to isolate �timing constraints� from �transitionenabledness�.

p1 p2

p0

t0.1a tc0.1 [2, 4]t1.1 btc1.1[1, 2]

t3.1

b

tc1.1 [3, 4]

f

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 11 / 26

Page 12: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Composability of TPN

Extend the State Classes

construction to the productof two1 TPN.

1also work with the product of n transitionsEric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 12 / 26

Page 13: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Index

1 IntroductionBackground on (net) Languages and ProductComposability of TPN

2 PTPNArnold-Nivat Product of TPNExpressivenessApplication to the Composability Problem

3 Experimental Results

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 13 / 26

Page 14: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

PTPN

Idea: use a product, N1 × N2, and force transitions with same label (e.g.t3.1 ∈ N1 and t1.2 ∈ N2) to �re �synchronously�.

Example

p1 p2

p0

t0.1 a[2, 4]t1.1

b

[1, 2]

t3.1 b

[3, 4]

f

×p1 p2

p0

t0.2 a[2, 4]t1.2

b

[1, 2]

t3.2 b

[3, 4]

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 14 / 26

Page 15: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

PTPN

Example

p1 p2

p0

t0.1 a[2, 4]t1.1

b

[1, 2]

t3.1 b

[3, 4]

f

×p1 p2

p0

t0.2 a[2, 4]t1.2

b

[1, 2]

t3.2 b

[3, 4]

We �re �Synchronous Sets� of transitions at the same time:

{t0.1, t0.2}, {t1.1, t1.2}, {t3.1, t1.2}, {f }

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 15 / 26

Page 16: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

PTPN: example of behaviour

p0

t0

a

p1t1

b[1,∞[

×

q0

t2

a

t3

b[0, 1]q1

Time elapse as in �classical� TPN ⇒ must �re t0 before 1 initially.

Transitions {t0, t2} and {t1, t3} must �re simultaneously ⇒ this cancreate �timelocks�.

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 16 / 26

Page 17: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

PTPN: expressiveness

On one side, PTPN semantics introduces new timelocks.

On the other side, you cannot �lose a transition� only bywaiting.

Theorem

PTPN are as expressive as TPN (up-to wtb: ≈):

∀P ∈ PTPN ∃N ∈ TPN . N ≈ P

1Says nothing about the size of N ∝ P.Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 17 / 26

Page 18: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

PTPN: application to the composability problem

We prove that �product� is a congruent composition

operator:[[N1 × N2]] ≈ [[N1]] ‖ [[N2]]

It is possible to adapt the SCG construction to PTPN

Hence we can compute the �SCG� for the intersection oftwo TPN

This has been implemented in a tool: TW^NA(https://projects.laas.fr/twina/)

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 18 / 26

Page 19: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

DBM and PTPN

Assume we �re I = {ta, tb, . . . } synchronously from (m,D)

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 19 / 26

Page 20: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Index

1 IntroductionBackground on (net) Languages and ProductComposability of TPN

2 PTPNArnold-Nivat Product of TPNExpressivenessApplication to the Composability Problem

3 Experimental Results

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 20 / 26

Page 21: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Comparing size of PTPN and IPTPN

Twina IPTPN/siftModel Exp. Classes Classes Ratiojdeds plain 26 28 × 1.1jdeds twin 544 706 × 1.3jdeds obs 57 64 × 1.1train3 plain 3.10 · 103 5.05 · 103 × 1.6train3 twin 1.45 · 106 4.02 · 106 × 2.8train3 obs 6.20 · 103 1.01 · 104 × 1.6train4 plain 1.03 · 104 1.68 · 104 × 1.6train4 twin 2.10 · 107 5.76 · 107 × 2.7train4 obs 2.06 · 104 3.37 · 104 × 1.6plant plain 2.70 · 106 4.63 · 106 × 1.7plant twin 1.30 · 103 1.63 · 103 × 1.3plant obs 5.72 · 106 9.79 · 106 × 1.7wodes plain 2.55 · 103 5.36 · 103 × 2.1wodes twin 5.54 · 104 1.51 · 105 × 2.7wodes obs 5.77 · 103 1.47 · 104 × 2.5wodes232 plain 2.04 · 104 3.24 · 104 × 1.6wodes232 twin 3.96 · 107 3.39 · 108 × 8.6wodes232 obs 1.06 · 105 2.26 · 105 × 2.1

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 21 / 26

Page 22: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Focus on WODES-2-3-2

Twina IPTPN/siftModel Exp. Classes Classes Ratiowodes232 plain 2.0 · 104 3.2 · 104 × 1.6wodes232 twin 4.0 · 107 3.4 · 108 × 8.6wodes232 obs 1.1 · 105 2.3 · 105 × 2.1

|N × N|f | 6 O(|N|2)

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 22 / 26

Page 23: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Comparison with encoding into TPN

Results on our running example; for exp. twin

p1 p2

p0

t0.1 a[2, 4]t1.1

b

[1, 2]

t3.1 b

[3, 4]

f

×p1 p2

p0

t0.2 a[2, 4]t1.2

b

[1, 2]

t3.2 b

[3, 4]

Twina IPTPN/sift TPN/siftPlaces 6 6 25Trans. 7 12 (6 + 6) 211Classes 3 3 1389

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 23 / 26

Page 24: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Conclusion

We propose an extension of TPN with �synchronousproduct� of transitions and extend the (Linear) State ClassGraph construction.

We have implemented this construction in a tool.

This is a tribute to Bernard Berthomieu's work.

Future works: experimental comparaison with T.A.; motifdetection in traces; ...

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 24 / 26

Page 25: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Conclusion

Thanks for your attention !

Any questions ?

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 25 / 26

Page 26: A State Class Construction for Computing the Intersection ... · Composability of TPN 2 PTPN Arnold-Nivat Product of TPN Expressiveness Application to the Composability Problem 3

Composability of TPN: related work

Use encoding of TPN into TA [Cassez - 05, Bérard - 08]preserves ≈ / restricted to �closed� timing constraintssize ∝ region graph; size of net with |T | clocks

Structural encoding of TPN into composable TPN [Peres - 11]preserves ≈ / restricted to �left-closed� timing constraintssize ∝ |T |× t.c.

Structural encoding of TPN into TPN with �priorities� (IPTPN)[Peres - 11]; preserves ≈ / requires the use of �strong classes�size ∝ size of net

Eric LUBAT (LAAS - CNRS) TPN Languages August 2019 / FORMATS 26 / 26