Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations...

71
Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB a b c τ c a c a b c τ c a b c a τ c τ b c a c a τ b τ c For fun: add probabilities DGHMZ (Nicta) Probabilistic testing gdp festschrift 1 / 32

Transcript of Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations...

Page 1: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Good old days: Observing trees in JCMB

b

b

a

b

bb

cb

τ

b

c

b

a

b

c

b

b

a

b

bb

cb

τ

b

c

b

a

b

bb

c

b

b

a

b

τ

b

cb

τ

b

bb

c

b

b

a

b

cb

a

b

τ

b

bb

τ

b

c

For fun: add probabilitiesDGHMZ (Nicta) Probabilistic testing gdp festschrift 1 / 32

Page 2: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Good old days: Observing trees in JCMB

b

b

a

b

bb

cb

τ

b

c

b

a

b

c

b

b

a

b

bb

cb

τ

b

c

b

a

b

bb

c

b

b

a

b

τ

b

cb

τ

b

bb

c

b

b

a

b

cb

a

b

τ

b

bb

τ

b

c

For fun: add probabilitiesDGHMZ (Nicta) Probabilistic testing gdp festschrift 1 / 32

Page 3: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Some remarks on testing probabilistic processes

Matthew Hennessy

and Yuxin Deng, Rob van Glabbeek, Carroll Morgan, Chenyi ZhangNicta

gdp festschrift

DGHMZ (Nicta) Probabilistic testing gdp festschrift 2 / 32

Page 4: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Outline

Testing theory

Probabilistic CSP

The power of testing

Simulations

Equational theories

DGHMZ (Nicta) Probabilistic testing gdp festschrift 3 / 32

Page 5: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Outline

Testing theory

Probabilistic CSP

The power of testing

Simulations

Equational theories

DGHMZ (Nicta) Probabilistic testing gdp festschrift 3 / 32

Page 6: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Outline

Testing theory

Probabilistic CSP

The power of testing

Simulations

Equational theories

DGHMZ (Nicta) Probabilistic testing gdp festschrift 3 / 32

Page 7: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Outline

Testing theory

Probabilistic CSP

The power of testing

Simulations

Equational theories

DGHMZ (Nicta) Probabilistic testing gdp festschrift 3 / 32

Page 8: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Outline

Testing theory

Probabilistic CSP

The power of testing

Simulations

Equational theories

DGHMZ (Nicta) Probabilistic testing gdp festschrift 3 / 32

Page 9: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Outline

Testing theory

Probabilistic CSP

The power of testing

Simulations

Equational theories

DGHMZ (Nicta) Probabilistic testing gdp festschrift 4 / 32

Page 10: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Testing scenario

◮ a set of processes Proc◮ a set of tests T

◮ a set of outcomes O

◮ Apply : T × Proc → P+

fin(O) – the non-empty finite set of possibleresults of applying a test to a process

Comparing sets of outcomes:

◮ O1 ⊑Ho O2 if for every o1 ∈ O1 there exists some o2 ∈ O2 suchthat o1 ≤ o2

◮ O1 ⊑Sm O2 if for every o2 ∈ O2 there exists some o1 ∈ O1 suchthat o1 ≤ o2

o1 ≤ o2 : means o2 is as least as good as o1

DGHMZ (Nicta) Probabilistic testing gdp festschrift 5 / 32

Page 11: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Testing scenario

◮ a set of processes Proc◮ a set of tests T

◮ a set of outcomes O

◮ Apply : T × Proc → P+

fin(O) – the non-empty finite set of possibleresults of applying a test to a process

Comparing sets of outcomes:

◮ O1 ⊑Ho O2 if for every o1 ∈ O1 there exists some o2 ∈ O2 suchthat o1 ≤ o2

◮ O1 ⊑Sm O2 if for every o2 ∈ O2 there exists some o1 ∈ O1 suchthat o1 ≤ o2

o1 ≤ o2 : means o2 is as least as good as o1

DGHMZ (Nicta) Probabilistic testing gdp festschrift 5 / 32

Page 12: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Testing preorders◮ P ⊑may Q if Apply(T , P)⊑Ho Apply(T , Q) for every test T◮ P ⊑must Q if Apply(T , P) ⊑Sm Apply(T , Q) for every test T

Standard testing:Use as outcomes O = {⊤, ⊥} with ⊥ ≤ ⊤

Probabilistic testing:Use as O the unit interval [0, 1]Intuition: with 0 ≤ p ≤ q ≤ 1, passing a test with probability q betterthn passing with probability p

TheoremFor O1, O2 ∈ P

+

fin(Oprob) we have◮ O1 ⊑Ho O2 if and only if max(O1) ≤ max(O2)

◮ O1 ⊑Sm O2 if and only if min(O1) ≤ min(O2)

DGHMZ (Nicta) Probabilistic testing gdp festschrift 6 / 32

Page 13: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Testing preorders◮ P ⊑may Q if Apply(T , P)⊑Ho Apply(T , Q) for every test T◮ P ⊑must Q if Apply(T , P) ⊑Sm Apply(T , Q) for every test T

Standard testing:Use as outcomes O = {⊤, ⊥} with ⊥ ≤ ⊤

Probabilistic testing:Use as O the unit interval [0, 1]Intuition: with 0 ≤ p ≤ q ≤ 1, passing a test with probability q betterthn passing with probability p

TheoremFor O1, O2 ∈ P

+

fin(Oprob) we have◮ O1 ⊑Ho O2 if and only if max(O1) ≤ max(O2)

◮ O1 ⊑Sm O2 if and only if min(O1) ≤ min(O2)

DGHMZ (Nicta) Probabilistic testing gdp festschrift 6 / 32

Page 14: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Testing preorders◮ P ⊑may Q if Apply(T , P)⊑Ho Apply(T , Q) for every test T◮ P ⊑must Q if Apply(T , P) ⊑Sm Apply(T , Q) for every test T

Standard testing:Use as outcomes O = {⊤, ⊥} with ⊥ ≤ ⊤

Probabilistic testing:Use as O the unit interval [0, 1]Intuition: with 0 ≤ p ≤ q ≤ 1, passing a test with probability q betterthn passing with probability p

TheoremFor O1, O2 ∈ P

+

fin(Oprob) we have◮ O1 ⊑Ho O2 if and only if max(O1) ≤ max(O2)

◮ O1 ⊑Sm O2 if and only if min(O1) ≤ min(O2)

DGHMZ (Nicta) Probabilistic testing gdp festschrift 6 / 32

Page 15: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Testing preorders◮ P ⊑may Q if Apply(T , P)⊑Ho Apply(T , Q) for every test T◮ P ⊑must Q if Apply(T , P) ⊑Sm Apply(T , Q) for every test T

Standard testing:Use as outcomes O = {⊤, ⊥} with ⊥ ≤ ⊤

Probabilistic testing:Use as O the unit interval [0, 1]Intuition: with 0 ≤ p ≤ q ≤ 1, passing a test with probability q betterthn passing with probability p

TheoremFor O1, O2 ∈ P

+

fin(Oprob) we have◮ O1 ⊑Ho O2 if and only if max(O1) ≤ max(O2)

◮ O1 ⊑Sm O2 if and only if min(O1) ≤ min(O2)

DGHMZ (Nicta) Probabilistic testing gdp festschrift 6 / 32

Page 16: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Outline

Testing theory

Probabilistic CSP

The power of testing

Simulations

Equational theories

DGHMZ (Nicta) Probabilistic testing gdp festschrift 7 / 32

Page 17: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Finite probabilistic CSP: pCSP

◮ 0 Do nothing◮ a.P Perform a then act as P◮ P |A Q Run P and Q in parallel . . .◮ P � Q External nondeterministic choice between P and Q -

environment chooses◮ P ⊓ Q Internal nondeterministic choice between P and Q◮ P p⊕ Q Probabilistic choice: act like P with probability p, as Q

with probability (1 − p)

CSP: the sublanguage without probabilistic choice

DGHMZ (Nicta) Probabilistic testing gdp festschrift 8 / 32

Page 18: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Finite probabilistic CSP: pCSP

◮ 0 Do nothing◮ a.P Perform a then act as P◮ P |A Q Run P and Q in parallel . . .◮ P � Q External nondeterministic choice between P and Q -

environment chooses◮ P ⊓ Q Internal nondeterministic choice between P and Q◮ P p⊕ Q Probabilistic choice: act like P with probability p, as Q

with probability (1 − p)

CSP: the sublanguage without probabilistic choice

DGHMZ (Nicta) Probabilistic testing gdp festschrift 8 / 32

Page 19: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Finite probabilistic CSP: pCSP

◮ 0 Do nothing◮ a.P Perform a then act as P◮ P |A Q Run P and Q in parallel . . .◮ P � Q External nondeterministic choice between P and Q -

environment chooses◮ P ⊓ Q Internal nondeterministic choice between P and Q◮ P p⊕ Q Probabilistic choice: act like P with probability p, as Q

with probability (1 − p)

CSP: the sublanguage without probabilistic choice

DGHMZ (Nicta) Probabilistic testing gdp festschrift 8 / 32

Page 20: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Finite probabilistic CSP: pCSP

◮ 0 Do nothing◮ a.P Perform a then act as P◮ P |A Q Run P and Q in parallel . . .◮ P � Q External nondeterministic choice between P and Q -

environment chooses◮ P ⊓ Q Internal nondeterministic choice between P and Q◮ P p⊕ Q Probabilistic choice: act like P with probability p, as Q

with probability (1 − p)

CSP: the sublanguage without probabilistic choice

DGHMZ (Nicta) Probabilistic testing gdp festschrift 8 / 32

Page 21: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Operational semanticsLTS:a triple 〈S, Actτ ,→〉, with

◮ S a set of states◮ Actτ a set of actions Act, with extra τ

◮ → ⊆ S × Actτ × S - the effect of performing actions.

pLTS, probabilistic LTS:a triple 〈S, Actτ ,→〉, with

◮ S a set of states◮ Actτ a set of actions Act, with extra τ

◮ → ⊆ S × Actτ× D(S) - the effect of performing actions

(finite) Distributions D(S):Mappings ∆ : S → [0, 1] with

∑s∈S ∆(s) = 1DGHMZ (Nicta) Probabilistic testing gdp festschrift 9 / 32

Page 22: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Operational semantics

pLTS, probabilistic LTS:a triple 〈S, Actτ ,→〉, with

◮ S a set of states◮ Actτ a set of actions Act, with extra τ

◮ → ⊆ S × Actτ× D(S) - the effect of performing actions

(finite) Distributions D(S):Mappings ∆ : S → [0, 1] with

∑s∈S ∆(s) = 1

◮ ⌈∆⌉ := { s ∈ S | ∆(s) > 0 } is finite the support of ∆

DGHMZ (Nicta) Probabilistic testing gdp festschrift 9 / 32

Page 23: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Operational semantics

pLTS, probabilistic LTS:a triple 〈S, Actτ ,→〉, with

◮ S a set of states◮ Actτ a set of actions Act, with extra τ

◮ → ⊆ S × Actτ× D(S) - the effect of performing actions

(finite) Distributions D(S):Mappings ∆ : S → [0, 1] with

∑s∈S ∆(s) = 1

◮ ⌈∆⌉ := { s ∈ S | ∆(s) > 0 } is finite the support of ∆

DGHMZ (Nicta) Probabilistic testing gdp festschrift 9 / 32

Page 24: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Operational semantics

CSP as an LTS:

◮ States S are all terms from CSP◮ Actions s α−→ s′ defined inductively

pCSP as a pLTS:

◮ States S are subset Sp of terms from pCSP◮ Actions s α−→ s′ defined inductively◮ Terms P in pCSP interpreted as distributions [P℄ over S

DGHMZ (Nicta) Probabilistic testing gdp festschrift 10 / 32

Page 25: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

pCSP as a pLTSStates Sp:

◮ 0 ∈ Sp

◮ a.P ∈ Sp

◮ P ⊓ Q ∈ Sp

◮ s1, s2 ∈ Sp implies s1 � s2 ∈ Sp

◮ s1, s2 ∈ Sp implies s1 |A s2 ∈ Sp.

Distributions [P℄:◮ [s℄ = s one point distribution s → 1

◮ [P p⊕ Q℄ = p · [P℄ + (1−p) · [Q℄◮ [P � Q℄ = [P℄ � [Q℄◮ [P |A Q℄ = [P℄ |A [Q℄

DGHMZ (Nicta) Probabilistic testing gdp festschrift 11 / 32

Page 26: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

pCSP as a probabilistic LTS

Defining arrows:Spα−→ D(Sp)

(action)

a.P a−→ [P℄ (int.l)

P ⊓ Q τ−→ [P℄(ext.i.l)

s1τ−→ ∆

s1 � s2τ−→ ∆ � s2

(ext.l)

s1a−→ ∆

s1 � s2a−→ ∆

(par.l)

s1α−→ ∆

s1 |A s2α−→ ∆ |A s2

α 6∈ A

(par.i)

s1a−→ ∆1, s2

a−→ ∆2

s1 |A s2τ−→ ∆1 |A ∆2

a ∈ A

and symmetric rules

Very similar to standard rules

DGHMZ (Nicta) Probabilistic testing gdp festschrift 12 / 32

Page 27: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

pCSP as a probabilistic LTS

Defining arrows:Spα−→ D(Sp)

(action)

a.P a−→ [P℄ (int.l)

P ⊓ Q τ−→ [P℄(ext.i.l)

s1τ−→ ∆

s1 � s2τ−→ ∆ � s2

(ext.l)

s1a−→ ∆

s1 � s2a−→ ∆

(par.l)

s1α−→ ∆

s1 |A s2α−→ ∆ |A s2

α 6∈ A

(par.i)

s1a−→ ∆1, s2

a−→ ∆2

s1 |A s2τ−→ ∆1 |A ∆2

a ∈ A

and symmetric rules

Very similar to standard rules

DGHMZ (Nicta) Probabilistic testing gdp festschrift 12 / 32

Page 28: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Example pLTSs

bc

b

1

bc

τ

b

1

bc

b

b

1

bc

τ

b

1

bc

c

b

1

abbrev. to b

b

τ

b

bb

τ

b

c

b. 0 ⊓ c. 0

◮ b states◮ bc distributions

DGHMZ (Nicta) Probabilistic testing gdp festschrift 13 / 32

Page 29: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Example pLTSs

(b ⊓ c) � (d 12⊕ a) bc

b

12

b

τ

b

bb

db

db

τ

b

cb

d

b

12

b

τ

b

bb

ab

ab

τ

b

cb

a

a 13⊕ ((b ⊓ c) � (d 1

2⊕ a)) bc

b

13

b

ab

13

b

τ

b

bb

db

db

τ

b

cb

d

b

13

b

τ

b

bb

ab

ab

τ

b

cb

a

DGHMZ (Nicta) Probabilistic testing gdp festschrift 14 / 32

Page 30: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Example pLTSs

(b ⊓ c) � (d 12⊕ a) bc

b

12

b

τ

b

bb

db

db

τ

b

cb

d

b

12

b

τ

b

bb

ab

ab

τ

b

cb

a

a 13⊕ ((b ⊓ c) � (d 1

2⊕ a)) bc

b

13

b

ab

13

b

τ

b

bb

db

db

τ

b

cb

d

b

13

b

τ

b

bb

ab

ab

τ

b

cb

a

DGHMZ (Nicta) Probabilistic testing gdp festschrift 14 / 32

Page 31: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Testing pCSP processes

Tests:Any process which may contain new report success action ω

a.ω 14⊕ (b � c.ω):

◮ 25% of time requests an a action◮ 75% requests a c action◮ 75% requires that b is not possible in a must test

Applying test T to process P:

◮ Run the combined process T |Act P◮ Calculate chances of success

Note: T |Act P can only perform τ or report success

DGHMZ (Nicta) Probabilistic testing gdp festschrift 15 / 32

Page 32: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Running a test

Test: T = a.ω 14⊕ (b � c.ω) Process P = b � c � d

(a.ω 14⊕ (b � c.ω)) |Act (b � c � d)

a.ω |Act (b � c � d)

14

(b � c.ω) |Act (b � c � d)

34

0 |Act 0

τ

ω |Act 0

τ

0 |Act 0

ω

DGHMZ (Nicta) Probabilistic testing gdp festschrift 16 / 32

Page 33: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Calculating chances of success

Test: T = a.ω 14⊕ (b � c.ω) Process P = b � c � d

bc

b

14

b

34

b

τ

b

τ

b

ω

Calculate success probabilities:

Apply(T , P) = 14 · {0} + 3

4 · {0, 1} = {0,34}

DGHMZ (Nicta) Probabilistic testing gdp festschrift 17 / 32

Page 34: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Outline

Testing theory

Probabilistic CSP

The power of testing

Simulations

Equational theories

DGHMZ (Nicta) Probabilistic testing gdp festschrift 18 / 32

Page 35: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Example: probabilistic choice and prefixingR1 = a.(b 1

2⊕ c) R2 = a.b 1

2⊕ a.c T = a.b.ω ⊓ a.c.ω

b

b

τ

bc

τ

b

12

b

τ

b

ω

b

12

b

τ

bc

τ

b

12

b

12

b

τ

b

ω

bc

b

12

b

τ

b

τ

b

τ

b

ω

b

τ

b

τ

b

12

b

τ

b

τ

b

τ

b

τ

b

τ

b

ω

Apply(T ,R1)={ 12} Apply(T ,R2)={0,

12 ,1}= 1

2 ·{0,1}+ 12 ·{0,1}

So R2 6⊑pmay R1 and R1 6⊑pmust R2

DGHMZ (Nicta) Probabilistic testing gdp festschrift 19 / 32

Page 36: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Example: probabilistic choice and prefixingR1 = a.(b 1

2⊕ c) R2 = a.b 1

2⊕ a.c T = a.b.ω ⊓ a.c.ω

b

b

τ

bc

τ

b

12

b

τ

b

ω

b

12

b

τ

bc

τ

b

12

b

12

b

τ

b

ω

bc

b

12

b

τ

b

τ

b

τ

b

ω

b

τ

b

τ

b

12

b

τ

b

τ

b

τ

b

τ

b

τ

b

ω

Apply(T ,R1)={ 12} Apply(T ,R2)={0,

12 ,1}= 1

2 ·{0,1}+ 12 ·{0,1}

So R2 6⊑pmay R1 and R1 6⊑pmust R2

DGHMZ (Nicta) Probabilistic testing gdp festschrift 19 / 32

Page 37: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Example: probabilistic choice and prefixingR1 = a.(b 1

2⊕ c) R2 = a.b 1

2⊕ a.c T = a.b.ω ⊓ a.c.ω

b

b

τ

bc

τ

b

12

b

τ

b

ω

b

12

b

τ

bc

τ

b

12

b

12

b

τ

b

ω

bc

b

12

b

τ

b

τ

b

τ

b

ω

b

τ

b

τ

b

12

b

τ

b

τ

b

τ

b

τ

b

τ

b

ω

Apply(T ,R1)={ 12} Apply(T ,R2)={0,

12 ,1}= 1

2 ·{0,1}+ 12 ·{0,1}

So R2 6⊑pmay R1 and R1 6⊑pmust R2

DGHMZ (Nicta) Probabilistic testing gdp festschrift 19 / 32

Page 38: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

A beloved testing axiom

R1 = a.(b ⊓ c) R2 = a.b ⊓ a.c T = a.(b.ω 12⊕ c.ω)

b

bc

τ

b

12

b

τ

b

τ

b

ω

b

τ

b

12

b

τb

τ

b

τ

b

ω

b

b

τ

bc

τ

b

12

b

τ

b

ω

b

12

b

τ

bc

τ

b

12

b

12

b

τ

b

ω

Apply(T ,R1)={0,

12 ,1} Apply(T ,R2)={ 1

2}

So action prefix does not distribute over internal choice

DGHMZ (Nicta) Probabilistic testing gdp festschrift 20 / 32

Page 39: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

A beloved testing axiom

R1 = a.(b ⊓ c) R2 = a.b ⊓ a.c T = a.(b.ω 12⊕ c.ω)

b

bc

τ

b

12

b

τ

b

τ

b

ω

b

τ

b

12

b

τb

τ

b

τ

b

ω

b

b

τ

bc

τ

b

12

b

τ

b

ω

b

12

b

τ

bc

τ

b

12

b

12

b

τ

b

ω

Apply(T ,R1)={0,

12 ,1} Apply(T ,R2)={ 1

2}

So action prefix does not distribute over internal choice

DGHMZ (Nicta) Probabilistic testing gdp festschrift 20 / 32

Page 40: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Power of internal choice in tests

◮ R1 = a 12⊕ (b � c) R2 = (a � b) 1

2⊕ (a � c)

◮ T = a.(ω 12⊕ 0) ⊓ (b.ω 1

2⊕ c.ω)

◮ Apply(T , R1) = {0,14 ,

12 ,

34}

◮ Apply(T , R2) = {12}

Therefore R1 6⊑pmay R2

Without internal choice in tests, R1 ⊑may R2

DGHMZ (Nicta) Probabilistic testing gdp festschrift 21 / 32

Page 41: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Power of internal choice in tests

◮ R1 = a 12⊕ (b � c) R2 = (a � b) 1

2⊕ (a � c)

◮ T = a.(ω 12⊕ 0) ⊓ (b.ω 1

2⊕ c.ω)

◮ Apply(T , R1) = {0,14 ,

12 ,

34} = 1

2 · {0,12} + 1

2 · {0, 1}

◮ Apply(T , R2) = {12} = 1

2 · {12} + 1

2 · {12}

Therefore R1 6⊑pmay R2

Without internal choice in tests, R1 ⊑may R2

DGHMZ (Nicta) Probabilistic testing gdp festschrift 21 / 32

Page 42: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Power of internal choice in tests

◮ R1 = a 12⊕ (b � c) R2 = (a � b) 1

2⊕ (a � c)

◮ T = a.(ω 12⊕ 0) ⊓ (b.ω 1

2⊕ c.ω)

◮ Apply(T , R1) = {0,14 ,

12 ,

34}

◮ Apply(T , R2) = {12}

Therefore R1 6⊑pmay R2

Without internal choice in tests, R1 ⊑may R2

DGHMZ (Nicta) Probabilistic testing gdp festschrift 21 / 32

Page 43: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Power of internal choice in tests

◮ R1 = a 12⊕ (b � c) R2 = (a � b) 1

2⊕ (a � c)

◮ T = a.(ω 12⊕ 0) ⊓ (b.ω 1

2⊕ c.ω)

◮ Apply(T , R1) = {0,14 ,

12 ,

34}

◮ Apply(T , R2) = {12}

Therefore R1 6⊑pmay R2

Without internal choice in tests, R1 ⊑may R2

DGHMZ (Nicta) Probabilistic testing gdp festschrift 21 / 32

Page 44: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Massacre of the axioms

a.(P ⊓ Q) 6= a.P ⊓ a.Q

P 6= P � P

P � (Q ⊓ R) 6= (P � Q) ⊓ (P � R)

P ⊓ (Q � R) 6= (P ⊓ Q) ⊓ (P ⊓ R)

Hopes dashed:

P p⊕ (Q � R) 6= (P p⊕ Q) � (P p⊕ R)

P ⊓ (Q p⊕ R) 6= (P ⊓ Q) p⊕ (P ⊓ R)

P p⊕ (Q � R) 6= (P p⊕ Q) � (P p⊕ R)

All is not lost:

a.P � a.Q = a.P ⊓ a.Q

P � (Q p⊕ R) = (P � Q) p⊕ (P p⊕ R)

. . . = . . .

DGHMZ (Nicta) Probabilistic testing gdp festschrift 22 / 32

Page 45: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Massacre of the axioms

a.(P ⊓ Q) 6= a.P ⊓ a.Q

P 6= P � P

P � (Q ⊓ R) 6= (P � Q) ⊓ (P � R)

P ⊓ (Q � R) 6= (P ⊓ Q) ⊓ (P ⊓ R)

Hopes dashed:

P p⊕ (Q � R) 6= (P p⊕ Q) � (P p⊕ R)

P ⊓ (Q p⊕ R) 6= (P ⊓ Q) p⊕ (P ⊓ R)

P p⊕ (Q � R) 6= (P p⊕ Q) � (P p⊕ R)

All is not lost:

a.P � a.Q = a.P ⊓ a.Q

P � (Q p⊕ R) = (P � Q) p⊕ (P p⊕ R)

. . . = . . .

DGHMZ (Nicta) Probabilistic testing gdp festschrift 22 / 32

Page 46: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Massacre of the axioms

a.(P ⊓ Q) 6= a.P ⊓ a.Q

P 6= P � P

P � (Q ⊓ R) 6= (P � Q) ⊓ (P � R)

P ⊓ (Q � R) 6= (P ⊓ Q) ⊓ (P ⊓ R)

Hopes dashed:

P p⊕ (Q � R) 6= (P p⊕ Q) � (P p⊕ R)

P ⊓ (Q p⊕ R) 6= (P ⊓ Q) p⊕ (P ⊓ R)

P p⊕ (Q � R) 6= (P p⊕ Q) � (P p⊕ R)

All is not lost:

a.P � a.Q = a.P ⊓ a.Q

P � (Q p⊕ R) = (P � Q) p⊕ (P p⊕ R)

. . . = . . .

DGHMZ (Nicta) Probabilistic testing gdp festschrift 22 / 32

Page 47: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Outline

Testing theory

Probabilistic CSP

The power of testing

Simulations

Equational theories

DGHMZ (Nicta) Probabilistic testing gdp festschrift 23 / 32

Page 48: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Simulations: for may testing

Simulations relate states with distributions

Definition (Segala)

◮ R ⊆ Sp ×D(Sp) is a simulation ifs R ∆ and s α−→ Θ implies there exists some ∆′

Θ R ∆′ and ∆α

=⇒ ∆′

Requirements:

◮ Lift Sp R D(Sp) to D(Sp) R D(Sp)

◮ Generalise s α−→ ∆′ to ∆α

=⇒ ∆′

◮a

=⇒ means τ−→∗ a−→ τ−→∗

◮τ

=⇒ means τ−→∗

DGHMZ (Nicta) Probabilistic testing gdp festschrift 24 / 32

Page 49: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Simulations: for may testing

Simulations relate states with distributions

Definition (Segala)

◮ R ⊆ Sp ×D(Sp) is a simulation ifs R ∆ and s α−→ Θ implies there exists some ∆′

Θ R ∆′ and ∆α

=⇒ ∆′

Requirements:

◮ Lift Sp R D(Sp) to D(Sp) R D(Sp)

◮ Generalise s α−→ ∆′ to ∆α

=⇒ ∆′

◮a

=⇒ means τ−→∗ a−→ τ−→∗

◮τ

=⇒ means τ−→∗

DGHMZ (Nicta) Probabilistic testing gdp festschrift 24 / 32

Page 50: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Simulations: for may testing

Simulations relate states with distributions

Definition (Segala)

◮ R ⊆ Sp ×D(Sp) is a simulation ifs R ∆ and s α−→ Θ implies there exists some ∆′

Θ R ∆′ and ∆α

=⇒ ∆′

Requirements:

◮ Lift Sp R D(Sp) to D(Sp) R D(Sp)

◮ Generalise s α−→ ∆′ to ∆α

=⇒ ∆′

◮a

=⇒ means τ−→∗ a−→ τ−→∗

◮τ

=⇒ means τ−→∗

DGHMZ (Nicta) Probabilistic testing gdp festschrift 24 / 32

Page 51: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Simulations: for may testing

Simulations relate states with distributions

Definition (Segala)

◮ R ⊆ Sp ×D(Sp) is a simulation ifs R ∆ and s α−→ Θ implies there exists some ∆′

Θ R ∆′ and ∆α

=⇒ ∆′

Requirements:

◮ Lift Sp R D(Sp) to D(Sp) R D(Sp)

◮ Generalise s α−→ ∆′ to ∆α

=⇒ ∆′

◮a

=⇒ means τ−→∗ a−→ τ−→∗

◮τ

=⇒ means τ−→∗

DGHMZ (Nicta) Probabilistic testing gdp festschrift 24 / 32

Page 52: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Lifting relation: S R D(S)

∆1 R ∆2 if◮ source ∆1 can be decomposed:

∆1 =∑

i∈I

pi · si

◮ each decomposed state si can be related:

si R Φi , for some Φi

◮ related Φi yield the target:

∆2 =∑

i∈I

pi · Φi

DGHMZ (Nicta) Probabilistic testing gdp festschrift 25 / 32

Page 53: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Example liftings: actions(a.b � a.c) 1

2⊕ a.d a−→ b 1

2⊕ d

because (a.b � a.c) a−→ b a.d a−→ d(a.b � a.c) 1

2⊕ a.d a−→ (b 1

2⊕ c) 1

2⊕ d

because◮ source is 1

4 · (a.b � a.c) + 14 · (a.b � a.c) + 1

2 · a.d

◮ a.b � a.c a−→ b a.b � a.c a−→ c a.d a−→ d

◮ target is 14 · b + 1

4 · c + 12 · d

DGHMZ (Nicta) Probabilistic testing gdp festschrift 26 / 32

Page 54: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Example liftings: actions(a.b � a.c) 1

2⊕ a.d a−→ b 1

2⊕ d

because (a.b � a.c) a−→ b a.d a−→ d(a.b � a.c) 1

2⊕ a.d a−→ (b 1

2⊕ c) 1

2⊕ d

because◮ source is 1

4 · (a.b � a.c) + 14 · (a.b � a.c) + 1

2 · a.d

◮ a.b � a.c a−→ b a.b � a.c a−→ c a.d a−→ d

◮ target is 14 · b + 1

4 · c + 12 · d

DGHMZ (Nicta) Probabilistic testing gdp festschrift 26 / 32

Page 55: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Example liftings: actions(a.b � a.c) 1

2⊕ a.d a−→ b 1

2⊕ d

because (a.b � a.c) a−→ b a.d a−→ d(a.b � a.c) 1

2⊕ a.d a−→ (b 1

2⊕ c) 1

2⊕ d

because◮ source is 1

4 · (a.b � a.c) + 14 · (a.b � a.c) + 1

2 · a.d

◮ a.b � a.c a−→ b a.b � a.c a−→ c a.d a−→ d

◮ target is 14 · b + 1

4 · c + 12 · d

DGHMZ (Nicta) Probabilistic testing gdp festschrift 26 / 32

Page 56: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Example liftings: actions(a.b � a.c) 1

2⊕ a.d a−→ b 1

2⊕ d

because (a.b � a.c) a−→ b a.d a−→ d(a.b � a.c) 1

2⊕ a.d a−→ (b 1

2⊕ c) 1

2⊕ d

because◮ source is 1

4 · (a.b � a.c) + 14 · (a.b � a.c) + 1

2 · a.d

◮ a.b � a.c a−→ b a.b � a.c a−→ c a.d a−→ d

◮ target is 14 · b + 1

4 · c + 12 · d

DGHMZ (Nicta) Probabilistic testing gdp festschrift 26 / 32

Page 57: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Lifting actions: 0 or 1 internal moves: τ−→

(a ⊓ b) 12⊕ (a ⊓ c) τ−→ a 1

2⊕ (a ⊓ b 1

2⊕ c)

because◮ source is 1

4 · (a ⊓ b) + 14 · (a ⊓ b) + 1

4 · (a ⊓ c) + 14 · (a ⊓ c)

(a ⊓ b) τ−→ a (a ⊓ b) τ−→ (a ⊓ b)

(a ⊓ c) τ−→ a (a ⊓ c) τ−→ c

◮ target is 14 · a + 1

4 · (a ⊓ b) + 14 · a + 1

4 · c

DGHMZ (Nicta) Probabilistic testing gdp festschrift 27 / 32

Page 58: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Lifting actions: 0 or 1 internal moves: τ−→

(a ⊓ b) 12⊕ (a ⊓ c) τ−→ a 1

2⊕ (a ⊓ b 1

2⊕ c)

because◮ source is 1

4 · (a ⊓ b) + 14 · (a ⊓ b) + 1

4 · (a ⊓ c) + 14 · (a ⊓ c)

(a ⊓ b) τ−→ a (a ⊓ b) τ−→ (a ⊓ b)

(a ⊓ c) τ−→ a (a ⊓ c) τ−→ c

◮ target is 14 · a + 1

4 · (a ⊓ b) + 14 · a + 1

4 · c

DGHMZ (Nicta) Probabilistic testing gdp festschrift 27 / 32

Page 59: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Lifting actions: 0 or 1 internal moves: τ−→

(a ⊓ b) 12⊕ (a ⊓ c) τ−→ a 1

2⊕ (a ⊓ b 1

2⊕ c)

because◮ source is 1

4 · (a ⊓ b) + 14 · (a ⊓ b) + 1

4 · (a ⊓ c) + 14 · (a ⊓ c)

(a ⊓ b) τ−→ a (a ⊓ b) τ−→ (a ⊓ b)

(a ⊓ c) τ−→ a (a ⊓ c) τ−→ c

◮ target is 14 · a + 1

4 · (a ⊓ b) + 14 · a + 1

4 · c

DGHMZ (Nicta) Probabilistic testing gdp festschrift 27 / 32

Page 60: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Lifting actions: 0 or 1 internal moves: τ−→

(a ⊓ b) 12⊕ (a ⊓ c) τ−→ a 1

2⊕ (a ⊓ b 1

2⊕ c)

because◮ source is 1

4 · (a ⊓ b) + 14 · (a ⊓ b) + 1

4 · (a ⊓ c) + 14 · (a ⊓ c)

(a ⊓ b) τ−→ a (a ⊓ b) τ−→ (a ⊓ b)

(a ⊓ c) τ−→ a (a ⊓ c) τ−→ c

◮ target is 14 · a + 1

4 · (a ⊓ b) + 14 · a + 1

4 · c

DGHMZ (Nicta) Probabilistic testing gdp festschrift 27 / 32

Page 61: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Results on simulations

P ⊑S Q - lifting of simulations to pCSP processes

◮ ⊑S is a precongruence for pCSP◮ For pCSP, P ⊑S Q implies P ⊑pmay Q◮ For CSP, P ⊑S Q iff P ⊑pmay Q

◮ P ⊑S Q can be equationally characterised, over pCSP◮ P ⊑S Q can be equationally characterised, over CSP

Conjecture:◮ For pCSP, P ⊑S Q iff P ⊑pmay Q

DGHMZ (Nicta) Probabilistic testing gdp festschrift 28 / 32

Page 62: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Results on simulations

P ⊑S Q - lifting of simulations to pCSP processes

◮ ⊑S is a precongruence for pCSP◮ For pCSP, P ⊑S Q implies P ⊑pmay Q◮ For CSP, P ⊑S Q iff P ⊑pmay Q

◮ P ⊑S Q can be equationally characterised, over pCSP◮ P ⊑S Q can be equationally characterised, over CSP

Conjecture:◮ For pCSP, P ⊑S Q iff P ⊑pmay Q

DGHMZ (Nicta) Probabilistic testing gdp festschrift 28 / 32

Page 63: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Outline

Testing theory

Probabilistic CSP

The power of testing

Simulations

Equational theories

DGHMZ (Nicta) Probabilistic testing gdp festschrift 29 / 32

Page 64: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Equations for CSPtests contain probability choice, processes not

A selection:a.P � a.Q = a.P ⊓ a.Q

a.P � (Q ⊓ R) = (a.P � Q) ⊓ (a.P � R)P � Q = (P1 � Q) ⊓ (P2 � Q) ⊓ (P � Q1) ⊓ (P � Q2),

provided P = P1 ⊓ P2, Q = Q1 ⊓ Q2

For completeness add: P ⊑ P ⊓ Q P ⊓ Q = P � Q standard

Interesting derived equations:a.P ⊓ a.Q ⊑ a.(P ⊓ Q)

(P � Q) ⊓ (P � R) ⊑ P � (Q ⊓ R)P ⊓ (Q � R) ⊑ (P ⊓ Q) � (P ⊓ R)

DGHMZ (Nicta) Probabilistic testing gdp festschrift 30 / 32

Page 65: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Equations for CSPtests contain probability choice, processes not

A selection:a.P � a.Q = a.P ⊓ a.Q

a.P � (Q ⊓ R) = (a.P � Q) ⊓ (a.P � R)P � Q = (P1 � Q) ⊓ (P2 � Q) ⊓ (P � Q1) ⊓ (P � Q2),

provided P = P1 ⊓ P2, Q = Q1 ⊓ Q2

For completeness add: P ⊑ P ⊓ Q P ⊓ Q = P � Q standard

Interesting derived equations:a.P ⊓ a.Q ⊑ a.(P ⊓ Q)

(P � Q) ⊓ (P � R) ⊑ P � (Q ⊓ R)P ⊓ (Q � R) ⊑ (P ⊓ Q) � (P ⊓ R)

DGHMZ (Nicta) Probabilistic testing gdp festschrift 30 / 32

Page 66: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Equations for CSPtests contain probability choice, processes not

A selection:a.P � a.Q = a.P ⊓ a.Q

a.P � (Q ⊓ R) = (a.P � Q) ⊓ (a.P � R)P � Q = (P1 � Q) ⊓ (P2 � Q) ⊓ (P � Q1) ⊓ (P � Q2),

provided P = P1 ⊓ P2, Q = Q1 ⊓ Q2

For completeness add: P ⊑ P ⊓ Q P ⊓ Q = P � Q standard

Interesting derived equations:a.P ⊓ a.Q ⊑ a.(P ⊓ Q)

(P � Q) ⊓ (P � R) ⊑ P � (Q ⊓ R)P ⊓ (Q � R) ⊑ (P ⊓ Q) � (P ⊓ R)

DGHMZ (Nicta) Probabilistic testing gdp festschrift 30 / 32

Page 67: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Equations for pCSPprocesses and tests contain probability choice

Standard: P p⊕ P = PP p⊕ Q = Q 1−p⊕ P

(P p⊕ Q) q⊕ R = P p·q⊕ (Q (1−p)·q1−p·q

⊕ R)

Add: a.(P p⊕ Q) ⊑ a.P p⊕ a.QP � (Q p⊕ R) = (P � Q) p⊕ (P � R)

Interesting derived equations:(P p⊕ Q) ⊓ (P p⊕ R) ⊑ P p⊕ (Q ⊓ R)

P ⊓ (Q p⊕ R) ⊑ (P ⊓ Q) p⊕ (P ⊓ R)a.(P p⊕ Q) ⊑ a.P � a.Q

DGHMZ (Nicta) Probabilistic testing gdp festschrift 31 / 32

Page 68: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Equations for pCSPprocesses and tests contain probability choice

Standard: P p⊕ P = PP p⊕ Q = Q 1−p⊕ P

(P p⊕ Q) q⊕ R = P p·q⊕ (Q (1−p)·q1−p·q

⊕ R)

Add: a.(P p⊕ Q) ⊑ a.P p⊕ a.QP � (Q p⊕ R) = (P � Q) p⊕ (P � R)

Interesting derived equations:(P p⊕ Q) ⊓ (P p⊕ R) ⊑ P p⊕ (Q ⊓ R)

P ⊓ (Q p⊕ R) ⊑ (P ⊓ Q) p⊕ (P ⊓ R)a.(P p⊕ Q) ⊑ a.P � a.Q

DGHMZ (Nicta) Probabilistic testing gdp festschrift 31 / 32

Page 69: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

Equations for pCSPprocesses and tests contain probability choice

Standard: P p⊕ P = PP p⊕ Q = Q 1−p⊕ P

(P p⊕ Q) q⊕ R = P p·q⊕ (Q (1−p)·q1−p·q

⊕ R)

Add: a.(P p⊕ Q) ⊑ a.P p⊕ a.QP � (Q p⊕ R) = (P � Q) p⊕ (P � R)

Interesting derived equations:(P p⊕ Q) ⊓ (P p⊕ R) ⊑ P p⊕ (Q ⊓ R)

P ⊓ (Q p⊕ R) ⊑ (P ⊓ Q) p⊕ (P ⊓ R)a.(P p⊕ Q) ⊑ a.P � a.Q

DGHMZ (Nicta) Probabilistic testing gdp festschrift 31 / 32

Page 70: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

The endLots of work to do:

◮ Prove relationship between simulations and may testing◮ Must testing:

◮ relate to failure simulations◮ equations ?

◮ Modal logics ?

Related work

◮ Segala, Wang Yi, Jonsson, Larsen, Skou, Lowe, Cleaveland,Smolka, . . .

◮ Google:◮ probabilistic process calculi: 631,000◮ testing probabilistic process calculi: 394,000◮ testing probabilistic processes: 4,800,000◮ probabilistic processes: 7,200,000

DGHMZ (Nicta) Probabilistic testing gdp festschrift 32 / 32

Page 71: Good old days: Observing trees in JCMB · Testing theory pCSP Testing power Simulations Equations Good old days: Observing trees in JCMB b b a b b b c b τ b c b a b c b b a b b b

Testing theory pCSP Testing power Simulations Equations

The endLots of work to do:

◮ Prove relationship between simulations and may testing◮ Must testing:

◮ relate to failure simulations◮ equations ?

◮ Modal logics ?

Related work

◮ Segala, Wang Yi, Jonsson, Larsen, Skou, Lowe, Cleaveland,Smolka, . . .

◮ Google:◮ probabilistic process calculi: 631,000◮ testing probabilistic process calculi: 394,000◮ testing probabilistic processes: 4,800,000◮ probabilistic processes: 7,200,000

DGHMZ (Nicta) Probabilistic testing gdp festschrift 32 / 32