Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile...

43
Activeness and Responsiveness in Mobile Processes Maxime Gamboni 1 Instituto de Telecomunica¸c˜ oes, Instituto Superior T´ ecnico May 27, 2009 1 Joint work with Ant´onio Ravara

Transcript of Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile...

Page 1: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Activeness and Responsiveness in Mobile Processes

Maxime Gamboni1

Instituto de Telecomunicacoes, Instituto Superior Tecnico

May 27, 2009

1Joint work with Antonio Ravara

Page 2: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

This Work

Characterising two liveness properties in a mobile process throughthe use of a type system.

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 3: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

This Work

Characterising two liveness properties in a mobile process throughthe use of a type system .

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 4: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Type System

Types: descriptions

Type Semantics: formal meaning

Type System: computable algorithm

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 5: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Type System

Types: descriptions

Type Semantics: formal meaning

Type System: computable algorithm

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 6: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Type System

Types: descriptions

Type Semantics: formal meaning

Type System: computable algorithm

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 7: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Soundness and Completeness

Soundness

Completeness

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 8: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Soundness and Completeness

Soundness

Completeness

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 9: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Soundness and Completeness

Soundness

Completeness

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 10: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

This Work

Characterising two liveness properties in a mobile process throughthe use of a type system.

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 11: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

The Synchronous Polyadic π-calculus

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 12: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

The Synchronous Polyadic π-calculus

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 13: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

The Synchronous Polyadic π-calculus

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 14: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

The Synchronous Polyadic π-calculus

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 15: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

The Synchronous Polyadic π-calculus

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 16: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

The Synchronous Polyadic π-calculus

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 17: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Transitions

((νx) a〈x〉.x(y).y〈42〉) | a(r).r〈s〉−→ (νx) (x(y).y〈42〉 | x〈s〉)−→ (νx) (s〈42〉 | 0)

s〈42〉−−−−−→ (νx) (0 | 0)≡ 0

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 18: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Transitions

((νx) a〈x〉.x(y).y〈42〉) | a(r).r〈s〉−→ (νx) (x(y).y〈42〉 | x〈s〉)−→ (νx) (s〈42〉 | 0)

s〈42〉−−−−−→ (νx) (0 | 0)≡ 0

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 19: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Transitions

((νx) a〈x〉.x(y).y〈42〉) | a(r).r〈s〉−→ (νx) (x(y).y〈42〉 | x〈s〉)−→ (νx) (s〈42〉 | 0)

s〈42〉−−−−−→ (νx) (0 | 0)≡ 0

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 20: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Transitions

((νx) a〈x〉.x(y).y〈42〉) | a(r).r〈s〉−→ (νx) (x(y).y〈42〉 | x〈s〉)−→ (νx) (s〈42〉 | 0)

s〈42〉−−−−−→ (νx) (0 | 0)≡ 0

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 21: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Transitions

((νx) a〈x〉.x(y).y〈42〉) | a(r).r〈s〉−→ (νx) (x(y).y〈42〉 | x〈s〉)−→ (νx) (s〈42〉 | 0)

s〈42〉−−−−−→ (νx) (0 | 0)≡ 0

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 22: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

This Work

Characterising two liveness properties in a mobile process throughthe use of a type system.

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 23: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Activeness

Definition (Activeness)

Activeness pA of a port p ∈ {a, a} in a process P: Ability of P toreliably receive (p = a) or send (p = a) a message on it.

s active in ((νx) a〈x〉.x(y).y〈42〉) | a(r).r〈s〉,s not active in ((νx) a〈x〉.x(y).y〈42〉) | a(r).r〈s〉 | a〈w〉.

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 24: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Activeness

Definition (Activeness)

Activeness pA of a port p ∈ {a, a} in a process P: Ability of P toreliably receive (p = a) or send (p = a) a message on it.

s active in ((νx) a〈x〉.x(y).y〈42〉) | a(r).r〈s〉,s not active in ((νx) a〈x〉.x(y).y〈42〉) | a(r).r〈s〉 | a〈w〉.

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 25: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Activeness

Definition (Activeness)

Activeness pA of a port p ∈ {a, a} in a process P: Ability of P toreliably receive (p = a) or send (p = a) a message on it.

s active in ((νx) a〈x〉.x(y).y〈42〉) | a(r).r〈s〉,s not active in ((νx) a〈x〉.x(y).y〈42〉) | a(r).r〈s〉 | a〈w〉.

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 26: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Responsiveness

Definition (Responsiveness)

Responsiveness pR of a port p in a process P is the ability, everytime a communication occurs on that port, to continue theconversation as far as requested by the other party.

Port a is responsive but not active in ?.a〈x〉.x(y).y〈42〉Port a is active but not responsive in a〈x〉.x(y).?.y〈42〉

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 27: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Responsiveness

Definition (Responsiveness)

Responsiveness pR of a port p in a process P is the ability, everytime a communication occurs on that port, to continue theconversation as far as requested by the other party.

Port a is responsive but not active in ?.a〈x〉.x(y).y〈42〉Port a is active but not responsive in a〈x〉.x(y).?.y〈42〉

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 28: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

This Work

Characterising two liveness properties in a mobile process throughthe use of a type system.

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 29: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Environment and Composition

(L; E )� (L′; E ′)def= (L� L′; (E \ L′) � (E ′ \ L))

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 30: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Conditional Activeness

(t.a | u.a

)|(v .a.w .s

)|(u |w

)s depends on v , a and wa depends on any one of t or uand u, w are provided on the rightTherefore s only depends on v

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 31: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Conditional Activeness

(t.a | u.a

)|(v .a.w .s

)|(u |w

)s depends on v , a and wa depends on any one of t or uand u, w are provided on the rightTherefore s only depends on v

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 32: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Conditional Activeness

(t.a | u.a

)|(v .a.w .s

)|(u |w

)s depends on v , a and wa depends on any one of t or uand u, w are provided on the rightTherefore s only depends on v

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 33: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Conditional Activeness

(t.a | u.a

)|(v .a.w .s

)|(u |w

)s depends on v , a and wa depends on any one of t or uand u, w are provided on the rightTherefore s only depends on v

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 34: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Conditional Activeness

(t.a | u.a

)|(v .a.w .s

)|(u |w

)s depends on v , a and wa depends on any one of t or uand u, w are provided on the rightTherefore s only depends on v

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 35: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Labelled Dependencies

P = (νt)(t∣∣ t.(z |a(x).z .x)

∣∣ t.a(y).y)

tA/⊥ ; zA/ tA ; aR/ zA ⇒ aR/⊥

Labelled Dependencies

Labels l , l ′, . . .

l ∨ ε: Only need ε if “l” occurred.

l ∨ ε: Need ε unless “l” occurred.

Set “l” to “The left t.-prefix got consumed”.

tA/⊥ ; zA/ l ∨ tA ; aR/ l ∨ zA ⇒ aR/>

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 36: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Multiplicities

P = ((νx) a〈x〉.x(y).y〈42〉) | ! a(r).r〈s〉

a1: One output on a

aω: Arbitrarily many inputs on a

sF: Unspecified number of outputs on s

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 37: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Multiplicities

P = ((νx) a〈x〉.x(y).y〈42〉) | ! a(r).r〈s〉

a1: One output on a

aω: Arbitrarily many inputs on a

sF: Unspecified number of outputs on s

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 38: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Multiplicities

P = ((νx) a〈x〉.x(y).y〈42〉) | ! a(r).r〈s〉

a1: One output on a

aω: Arbitrarily many inputs on a

sF: Unspecified number of outputs on s

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 39: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Composing Multiplicity Types

(cω; cF) ` ! c(tu).t〈u〉(ac x ; cω cFaωx) ` c〈ax〉

}(ac xcω; cFaωx) ` c〈ax〉|!c(tu).t〈u〉

(ac xcωaω sF; cFsωx) ` c〈ax〉 | ! c(tu).t〈u〉 | ! a(r).r〈s〉

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 40: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Composing Multiplicity Types

(cω; cF) ` ! c(tu).t〈u〉(ac x ; cω cFaωx) ` c〈ax〉

}(ac xcω; cFaωx) ` c〈ax〉|!c(tu).t〈u〉

(ac xcωaω sF; cFsωx) ` c〈ax〉 | ! c(tu).t〈u〉 | ! a(r).r〈s〉

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 41: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Composing Multiplicity Types

(cω; cF) ` ! c(tu).t〈u〉(ac x ; cω cFaωx) ` c〈ax〉

}(ac xcω; cFaωx) ` c〈ax〉|!c(tu).t〈u〉

(ac xcωaω sF; cFsωx) ` c〈ax〉 | ! c(tu).t〈u〉 | ! a(r).r〈s〉

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 42: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Composing Multiplicity Types

(cω; cF) ` ! c(tu).t〈u〉(ac x ; cω cFaωx) ` c〈ax〉

}(ac xcω; cFaωx) ` c〈ax〉|!c(tu).t〈u〉

(ac xcωaω sF; cFsωx) ` c〈ax〉 | ! c(tu).t〈u〉 | ! a(r).r〈s〉

Maxime Gamboni Activeness and Responsiveness in Mobile Processes

Page 43: Activeness and Responsiveness in Mobile Processes · Activeness and Responsiveness in Mobile Processes Maxime Gamboni1 Instituto de Telecomunica˘c~oes, Instituto Superior T ecnico

Type System Mobile Processes Liveness Properties Characterisation Multiplicities .

Conclusion

Characterising two liveness properties in a mobile process throughthe use of a type system.

Our contribution:

A formalism describing liveness properties in the π-calculus

Environment in the type ⇒ Compositionality

Labels ⇒ non-transitive dependencies

More info:

http://maxime.gamboni.org/

Maxime Gamboni Activeness and Responsiveness in Mobile Processes