the 4c spectrum.ppt - pa.win.tue.nl

17
35th International Conference on Application and Theory of Petri Nets and Concurrency June 26, 2014 | Tunis, Tunisia The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems 1 Queensland University of Technology, Brisbane, Australia 2 Imperial College London, London, United Kingdom 3 NICTA Queensland Lab, Brisbane, Australia 4 Eindhoven University of Technology, Eindhoven, The Netherlands Artem Polyvyanyy 1 , Matthias Weidlich 2 , Raffaele Conforti 1 , Marcello La Rosa 1,3 , and Arthur H.M. ter Hofstede 1,4

Upload: others

Post on 16-May-2022

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: THE 4C SPECTRUM.ppt - pa.win.tue.nl

35th International Conference on Application and Theory of Petri Nets and ConcurrencyJune 26, 2014 | Tunis, Tunisia

The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems

1 Queensland University of Technology, Brisbane, Australia2 Imperial College London, London, United Kingdom

3 NICTA Queensland Lab, Brisbane, Australia4 Eindhoven University of Technology, Eindhoven, The Netherlands

Artem Polyvyanyy1, Matthias Weidlich2, Raffaele Conforti1, Marcello La Rosa1,3, and Arthur H.M. ter Hofstede1,4

Page 2: THE 4C SPECTRUM.ppt - pa.win.tue.nl

Motivation (Behavior Comparison)

Artem Polyvyanyy | June 26, 2014 | The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems

■ The problem of comparing behaviors encoded in Petri nets usually takes the form

of a decision problem with a yes-or-no answer, e.g., trace equivalence

■ It is often desirable to work with detailed characterizations of similarities and/or

differences, e.g., those that follow the declarative style

■ In both Petri nets, action a is executed at most once and always before action b,

which may be repeated

■ The Petri net on the left specifies that actions a and b may be enabled

simultaneously with action c, which is not allowed by the Petri net on the right

a

c

b

d

e

2

Page 3: THE 4C SPECTRUM.ppt - pa.win.tue.nl

Process Query Language (PQL)

Artem Polyvyanyy | June 26, 2014 | The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems

SELECT *

FROM “bank\loans”

WHERE CanConflict(“Check credit”,“Check character”);

Arthur H. M. ter Hofstede, Chun Ouyang, Marcello La Rosa, Liang Song, Jianmin Wang, and Artem Polyvyanyy: APQL: A Process-Model Query Language. AP-BPM 2013:23-38

Find all process models where tasks

“Check credit” and “Check character” can conflict.

■ SQL was introduced as a declarative programming language based upon

relational algebra and tuple relational calculus

■ PQL is envisioned as a declarative programming language based upon temporal logic

a

c

b

d

e

3

Page 4: THE 4C SPECTRUM.ppt - pa.win.tue.nl

Properties of Petri Nets

Artem Polyvyanyy | June 26, 2014 | The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems

■ Two groups of properties: well-celebrated and specification language properties.

■ Well-celebrated properties include: reachability, boundedness, liveness, deadlock-freedom, etc.

■ Specification language properties usually take form of model checking (decision) problems,

which deal with deciding if a given Petri net satisfies a temporal logic formula.

Well-celebrated properties Model checking problems

4

Page 5: THE 4C SPECTRUM.ppt - pa.win.tue.nl

Properties of Petri Nets

Artem Polyvyanyy | June 26, 2014 | The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems

■ Two groups of properties: well-celebrated and specification language properties.

■ Well-celebrated properties include: reachability, boundedness, liveness, deadlock-freedom, etc.

■ Specification language properties usually take form of model checking (decision) problems,

which deal with deciding if a given Petri net satisfies a temporal logic formula.

4C

The 4C spectrum is a systematized collection of Conflict, Co-occurrence, Causality and

Concurrency relations that characterize behavior encoded in concurrent systems

Well-celebrated properties Model checking problems

5

Page 6: THE 4C SPECTRUM.ppt - pa.win.tue.nl

System vs. Behavior Models (Sassone et al.)

Artem Polyvyanyy | June 26, 2014 | The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems

Syste

m M

od

el

Be

ha

vio

r M

od

el

■ Explicit representation of states

■ Define how actions lead to

state changes

■ Abstract from states

■ Define occurrences of actions

over time

We propose behavioral

properties over pairs of

actions (system model level)

that capture characteristics

of the occurrences of actions

(behavior model level).1

2

S

Only completed runs are

considered!

6

Page 7: THE 4C SPECTRUM.ppt - pa.win.tue.nl

Conflict and Co-occurrence

Artem Polyvyanyy | June 26, 2014 | The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems

For example:

■ x can conflict with y, denoted by x y, if and only if there exists an execution

such that x and y

■ x and y can co-occur, denoted by x y, if and only if there exists an execution

such that x and y

■ An execution is an occurrence sequence that leads to a terminal marking

■ x and y are in conflict, if and only if

■ x and y co-occur, if and only if

7

Page 8: THE 4C SPECTRUM.ppt - pa.win.tue.nl

Causality and Concurrency

Artem Polyvyanyy | June 26, 2014 | The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems

2 9e2 (a) and e9 (e) are causal

3 4e3 (b) and e4 (c) are concurrent

8

Page 9: THE 4C SPECTRUM.ppt - pa.win.tue.nl

Causality and Concurrency

Artem Polyvyanyy | June 26, 2014 | The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems

b is existential functional

concurrent for c

( )b and c must co-occur!

9

Page 10: THE 4C SPECTRUM.ppt - pa.win.tue.nl

Causality and Concurrency

Artem Polyvyanyy | June 26, 2014 | The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems

total (mutual)

causal/concurrent

total functional

causal/concurrent

existential total

causal/concurrent

existential functional

causal/concurrent

existential dominant

causal/concurrent

existential (mutual)

causal/concurrent

total existential

causal/concurrenttotal dominant

causal/concurrent

10

Page 11: THE 4C SPECTRUM.ppt - pa.win.tue.nl

Example (Behavior Comparison)

Artem Polyvyanyy | June 26, 2014 | The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems

a

c

b

d

e

11

Page 12: THE 4C SPECTRUM.ppt - pa.win.tue.nl

Example (Comparison for b and c)

Artem Polyvyanyy | June 26, 2014 | The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems

a

c

b

d

e

causal concurrent causal concurrent

■ Existential causal

■ Existential total and total functional

concurrent

■ Existential causal

12

Page 13: THE 4C SPECTRUM.ppt - pa.win.tue.nl

Computation (Conflict and Co-occurrence)

x

x'p

y

y'q

S

p' q'

Injections of guards for x and y:

■ x and y can conflict if and only if is a reachable marking

■ x and y can co-occur if and only if is a reachable marking

Artem Polyvyanyy | June 26, 2014 | The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems

is a unique reachable terminal marking

13

Page 14: THE 4C SPECTRUM.ppt - pa.win.tue.nl

Computation (Causality and Concurrency)

Artem Polyvyanyy | June 26, 2014 | The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems

Existential

concurrent

Total

causal

x and y are existential concurrent in

if and only if

there exists a reachable marking

in such that is covered by

A Petri net must have a unique reachable terminal marking, which is a home marking

y and x are total causal in

if and only if there is no reachable

marking such that is covered by

14

Page 15: THE 4C SPECTRUM.ppt - pa.win.tue.nl

Labeled Petri Nets

Artem Polyvyanyy | June 26, 2014 | The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems

Motivation for labeled net systems is twofold:

■ separating actions that carry semantics in the application domain from those that

have no domain interpretation, and

■ assigning a certain semantics in the application domain to different transitions.

15

Page 16: THE 4C SPECTRUM.ppt - pa.win.tue.nl

The 4C Spectrum for Labeled Petri Nets

Artem Polyvyanyy | June 26, 2014 | The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems

Motivation for labeled net systems is twofold:

■ separating actions that carry semantics in the application domain from those that

have no domain interpretation, and

■ assigning certain semantics in the application domain to different transitions

Unification of label b:

Computation of the 4C relations over labels can be transformed to the computation

over transitions due to a structural transformation on Petri nets, called label unification

16

Page 17: THE 4C SPECTRUM.ppt - pa.win.tue.nl

Conclusion

■ Addressed the lack of a systematic exploration of behavioral relations for the

analysis of concurrent systems

■ Defined a set of relations that capture co-occurrence, conflict, causality, and

concurrency

■ Demonstrated that the proposed relations give rise to the implication “cubes”

■ Lifted relations from transitions to labels

■ Evaluated computations on a collection of Petri nets

Some ideas for future work include:

■ Lift relations to fair runs

■ Decidability of the 4C relations

■ Computations of the 4C relations

■ Practical applications

Artem Polyvyanyy | June 26, 2014 | The 4C Spectrum of Fundamental Behavioral Relations for Concurrent Systems 17