SlideShare una empresa de Scribd logo
1 de 58
Descargar para leer sin conexión
Better Late Than Never
A fully-abstract semantics for Classical Processes
Wen Kokke
University of Edinburgh
Fabrizio Montesi
University of Southern Denmark
Marco Peressotti
University of Southern Denmark
POPL’19
Proofs as Processes
Linear Logic (LL) corresponds to a type system for a process calculus
proofs correspond to processes;
propositions correspond to session types.
Kokke, Montesi, Peressotti Better Late Than Never 1
Proofs as Processes
Linear Logic (LL) corresponds to a type system for a process calculus
proofs correspond to processes;
propositions correspond to session types.
Girard 1987 Linear Logic
Kokke, Montesi, Peressotti Better Late Than Never 1
Proofs as Processes
Linear Logic (LL) corresponds to a type system for a process calculus
proofs correspond to processes;
propositions correspond to session types.
Girard 1987 Linear Logic
Abramsky 1994
Bellin and Scott 1994
Propositions as linear types
for processes
Kokke, Montesi, Peressotti Better Late Than Never 1
Proofs as Processes
Linear Logic (LL) corresponds to a type system for a process calculus
proofs correspond to processes;
propositions correspond to session types.
Girard 1987 Linear Logic
Abramsky 1994
Bellin and Scott 1994
Propositions as linear types
for processes
Honda 1993
Session types (based on duality)
Kokke, Montesi, Peressotti Better Late Than Never 1
Proofs as Processes
Linear Logic (LL) corresponds to a type system for a process calculus
proofs correspond to processes;
propositions correspond to session types.
Girard 1987 Linear Logic
Abramsky 1994
Bellin and Scott 1994
Propositions as linear types
for processes
Honda 1993
Session types (based on duality)
Caires and Pfenning 2010
Propositions in Intuitionistic LL
as session types
Kokke, Montesi, Peressotti Better Late Than Never 1
Proofs as Processes
Linear Logic (LL) corresponds to a type system for a process calculus
proofs correspond to processes;
propositions correspond to session types.
Girard 1987 Linear Logic
Abramsky 1994
Bellin and Scott 1994
Propositions as linear types
for processes
Honda 1993
Session types (based on duality)
Caires and Pfenning 2010
Propositions in Intuitionistic LL
as session types
Wadler 2014
Back to duality: Classical Processes
Kokke, Montesi, Peressotti Better Late Than Never 1
Classical Processes (CP) (Wadler 2014)
Γ where Γ = A1, . . . , An is a collection of CLL propositions
(Convention: propositions are in blue)
CLL sequent
Kokke, Montesi, Peressotti Better Late Than Never 2
Classical Processes (CP) (Wadler 2014)
Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types
(Convention: types are in blue and channels are in red)
CP typing environment
Kokke, Montesi, Peressotti Better Late Than Never 2
Classical Processes (CP) (Wadler 2014)
Typing judgments:
P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types
“for each i, process P implements protocol Ai on channel xi”.
(Convention: types are in blue, processes and channels are in red)
Kokke, Montesi, Peressotti Better Late Than Never 2
Classical Processes (CP) (Wadler 2014)
Typing judgments:
P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types
“for each i, process P implements protocol Ai on channel xi”.
(Convention: types are in blue, processes and channels are in red)
Derivation rules in CLL correspond to typing rules in CP:
Kokke, Montesi, Peressotti Better Late Than Never 2
Classical Processes (CP) (Wadler 2014)
Typing judgments:
P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types
“for each i, process P implements protocol Ai on channel xi”.
(Convention: types are in blue, processes and channels are in red)
Derivation rules in CLL correspond to typing rules in CP:
Γ, A, B
Γ, A B
Kokke, Montesi, Peressotti Better Late Than Never 2
Classical Processes (CP) (Wadler 2014)
Typing judgments:
P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types
“for each i, process P implements protocol Ai on channel xi”.
(Convention: types are in blue, processes and channels are in red)
Derivation rules in CLL correspond to typing rules in CP:
P Γ, y:A, x:B
x(y).P Γ, x:A B
Kokke, Montesi, Peressotti Better Late Than Never 2
Classical Processes (CP) (Wadler 2014)
Typing judgments:
P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types
“for each i, process P implements protocol Ai on channel xi”.
(Convention: types are in blue, processes and channels are in red)
Derivation rules in CLL correspond to typing rules in CP:
P Γ, y:A, x:B
x(y).P Γ, x:A B
Γ, A ∆, B
Γ, ∆, A ⊗ B
⊗
Kokke, Montesi, Peressotti Better Late Than Never 2
Classical Processes (CP) (Wadler 2014)
Typing judgments:
P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types
“for each i, process P implements protocol Ai on channel xi”.
(Convention: types are in blue, processes and channels are in red)
Derivation rules in CLL correspond to typing rules in CP:
P Γ, y:A, x:B
x(y).P Γ, x:A B
P Γ, y:A Q ∆, x:B
x[y].(P | Q) Γ, ∆, x:A ⊗ B
⊗
Kokke, Montesi, Peressotti Better Late Than Never 2
Classical Processes (CP) (Wadler 2014)
Typing judgments:
P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types
“for each i, process P implements protocol Ai on channel xi”.
(Convention: types are in blue, processes and channels are in red)
Derivation rules in CLL correspond to typing rules in CP:
P Γ, y:A, x:B
x(y).P Γ, x:A B
P Γ, y:A Q ∆, x:B
x[y].(P | Q) Γ, ∆, x:A ⊗ B
⊗
Duality in CLL corresponds to duality in session types (e.g. recv/send)
(A B)⊥
= A⊥
⊗ B⊥
Kokke, Montesi, Peressotti Better Late Than Never 2
Classical Processes (CP) (Wadler 2014)
Typing judgments:
P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types
“for each i, process P implements protocol Ai on channel xi”.
(Convention: types are in blue, processes and channels are in red)
Derivation rules in CLL correspond to typing rules in CP:
P Γ, y:A, x:B
x(y).P Γ, x:A B
P Γ, y:A Q ∆, x:B
x[y].(P | Q) Γ, ∆, x:A ⊗ B
⊗
Γ, A ∆, A⊥
Γ, ∆
cut
Duality in CLL corresponds to duality in session types (e.g. recv/send)
(A B)⊥
= A⊥
⊗ B⊥
Kokke, Montesi, Peressotti Better Late Than Never 2
Classical Processes (CP) (Wadler 2014)
Typing judgments:
P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types
“for each i, process P implements protocol Ai on channel xi”.
(Convention: types are in blue, processes and channels are in red)
Derivation rules in CLL correspond to typing rules in CP:
P Γ, y:A, x:B
x(y).P Γ, x:A B
P Γ, y:A Q ∆, x:B
x[y].(P | Q) Γ, ∆, x:A ⊗ B
⊗
P Γ, x:A Q ∆, y:A⊥
(νxy)(P | Q) Γ, ∆
cut
Duality in CLL corresponds to duality in session types (e.g. recv/send)
(A B)⊥
= A⊥
⊗ B⊥
Kokke, Montesi, Peressotti Better Late Than Never 2
Classical Processes (CP) (Wadler 2014)
Typing judgments:
P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types
“for each i, process P implements protocol Ai on channel xi”.
(Convention: types are in blue, processes and channels are in red)
Derivation rules in CLL correspond to typing rules in CP:
P Γ, y:A, x:B
x(y).P Γ, x:A B
P Γ, y:A Q ∆, x:B
x[y].(P | Q) Γ, ∆, x:A ⊗ B
⊗
P Γ, x:A Q ∆, y:A⊥
(νxy)(P | Q) Γ, ∆
cut
Duality in CLL corresponds to duality in session types (e.g. recv/send)
(A B)⊥
= A⊥
⊗ B⊥
Proof transformations correspond to process reductions.
Kokke, Montesi, Peressotti Better Late Than Never 2
There are some discrepancies
Parallel composition (P | Q) is not typable, it is not even in the syntax of CP.
Noticeable consequences:
Kokke, Montesi, Peressotti Better Late Than Never 3
There are some discrepancies
Parallel composition (P | Q) is not typable, it is not even in the syntax of CP.
Noticeable consequences:
No Labelled Transition System. e.g. the expected transition for output:
x[y].(P | Q)
x[y]
−−→ P | Q
is unsound!
Kokke, Montesi, Peressotti Better Late Than Never 3
There are some discrepancies
Parallel composition (P | Q) is not typable, it is not even in the syntax of CP.
Noticeable consequences:
No Labelled Transition System. e.g. the expected transition for output:
x[y].(P | Q)
x[y]
−−→ P | Q
is unsound!
The semantics of CP needs reductions that do not preserve parallelism, e.g.
(νxx )(y(y ).P | Q) → y(y ).(νxx )(P | Q)
introduces dependencies among parallel actions.
Kokke, Montesi, Peressotti Better Late Than Never 3
Parallel composition
Parallel composition lacks a rule in CLL for reasoning about it directly.
Kokke, Montesi, Peressotti Better Late Than Never 4
Parallel composition
Parallel composition lacks a rule in CLL for reasoning about it directly.
Idea: characterise parallelism logically
Hypersequents (collections of sequents):
G, H ::= Γ1 | · · · | Γn
Hypersequent Mix
P G Q H
P | Q G | H
h-mix
If G then, its sequents are independently derivable.
Kokke, Montesi, Peressotti Better Late Than Never 4
From CP to HCP
Classical Processes
(Wadler 2014)
No parallel composition
Hypersequent Classical Processes
(this paper)
P G Q H
P | Q G | H
h-mix
Kokke, Montesi, Peressotti Better Late Than Never 5
From CP to HCP
Classical Processes
(Wadler 2014)
No parallel composition
P Γ, x:A Q ∆, y:A⊥
(νxy)(P | Q) Γ, ∆
cut
Hypersequent Classical Processes
(this paper)
P G Q H
P | Q G | H
h-mix
P G | Γ, x:A | ∆, y:A⊥
(νxy)P G | Γ, ∆
h-cut
Kokke, Montesi, Peressotti Better Late Than Never 5
From CP to HCP
Classical Processes
(Wadler 2014)
No parallel composition
P Γ, x:A Q ∆, y:A⊥
(νxy)(P | Q) Γ, ∆
cut
Hypersequent Classical Processes
(this paper)
P G Q H
P | Q G | H
h-mix
P G | Γ, x:A | ∆, y:A⊥
(νxy)P G | Γ, ∆
h-cut
In H-Cut, hypersequents ensure that x:A and
y:A⊥ are independent
Kokke, Montesi, Peressotti Better Late Than Never 5
From CP to HCP
Classical Processes
(Wadler 2014)
No parallel composition
P Γ, x:A Q ∆, y:A⊥
(νxy)(P | Q) Γ, ∆
cut
Hypersequent Classical Processes
(this paper)
P G Q H
P | Q G | H
h-mix
P G | Γ, x:A | ∆, y:A⊥
(νxy)P G | Γ, ∆
h-cut
Restriction is a stand-alone (unary) term constructor
Kokke, Montesi, Peressotti Better Late Than Never 5
From CP to HCP
Classical Processes
(Wadler 2014)
No parallel composition
P Γ, x:A Q ∆, y:A⊥
(νxy)(P | Q) Γ, ∆
cut
P Γ, y:A Q ∆, x:B
x[y].(P | Q) Γ, ∆, x:A ⊗ B
⊗
Hypersequent Classical Processes
(this paper)
P G Q H
P | Q G | H
h-mix
P G | Γ, x:A | ∆, y:A⊥
(νxy)P G | Γ, ∆
h-cut
P G | Γ, y:A | ∆, x:B
x[y].P G | Γ, ∆, x:A ⊗ B
⊗
Kokke, Montesi, Peressotti Better Late Than Never 5
From CP to HCP
Classical Processes
(Wadler 2014)
No parallel composition
P Γ, x:A Q ∆, y:A⊥
(νxy)(P | Q) Γ, ∆
cut
P Γ, y:A Q ∆, x:B
x[y].(P | Q) Γ, ∆, x:A ⊗ B
⊗
Hypersequent Classical Processes
(this paper)
P G Q H
P | Q G | H
h-mix
P G | Γ, x:A | ∆, y:A⊥
(νxy)P G | Γ, ∆
h-cut
P G | Γ, y:A | ∆, x:B
x[y].P G | Γ, ∆, x:A ⊗ B
⊗
Unary operator, hyperseqeunts guarantee independence
Kokke, Montesi, Peressotti Better Late Than Never 5
From CP to HCP
Classical Processes
(Wadler 2014)
No parallel composition
P Γ, x:A Q ∆, y:A⊥
(νxy)(P | Q) Γ, ∆
cut
P Γ, y:A Q ∆, x:B
x[y].(P | Q) Γ, ∆, x:A ⊗ B
⊗
P Γ, y:A, x:B
x(y).P Γ, x:A B
. . .
Hypersequent Classical Processes
(this paper)
P G Q H
P | Q G | H
h-mix
P G | Γ, x:A | ∆, y:A⊥
(νxy)P G | Γ, ∆
h-cut
P G | Γ, y:A | ∆, x:B
x[y].P G | Γ, ∆, x:A ⊗ B
⊗
P G | Γ, y:A, x:B
x(y).P G | Γ, x:A B
. . .
Kokke, Montesi, Peressotti Better Late Than Never 5
From CP to HCP
Classical Processes
(Wadler 2014)
No parallel composition
P Γ, x:A Q ∆, y:A⊥
(νxy)(P | Q) Γ, ∆
cut
P Γ, y:A Q ∆, x:B
x[y].(P | Q) Γ, ∆, x:A ⊗ B
⊗
P Γ, y:A, x:B
x(y).P Γ, x:A B
. . .
Hypersequent Classical Processes
(this paper)
P G Q H
P | Q G | H
h-mix
P G | Γ, x:A | ∆, y:A⊥
(νxy)P G | Γ, ∆
h-cut
P G | Γ, y:A | ∆, x:B
x[y].P G | Γ, ∆, x:A ⊗ B
⊗
P G | Γ, y:A, x:B
x(y).P G | Γ, x:A B
. . .
Kokke, Montesi, Peressotti Better Late Than Never 5
From CP to HCP
Classical Processes
(Wadler 2014)
No parallel composition
P Γ, x:A Q ∆, y:A⊥
(νxy)(P | Q) Γ, ∆
cut
P Γ, y:A Q ∆, x:B
x[y].(P | Q) Γ, ∆, x:A ⊗ B
⊗
P Γ, y:A, x:B
x(y).P Γ, x:A B
. . .
Hypersequent Classical Processes
(this paper)
P G Q H
P | Q G | H
h-mix
P G | Γ, x:A | ∆, y:A⊥
(νxy)P G | Γ, ∆
h-cut
P G | Γ, y:A | ∆, x:B
x[y].P G | Γ, ∆, x:A ⊗ B
⊗
P G | Γ, y:A, x:B
x(y).P G | Γ, x:A B
. . .
P uses channels in G
in parallel to x, y, Γ
Kokke, Montesi, Peressotti Better Late Than Never 5
Relation with Classical Linear Logic
From CLL to HCP:
Theorem
If Γ in CLL then, Γ in HCP.
From HCP to CLL:
“,” as “ ” “|” as “⊗”
(A1, . . . , An) = A1 · · · An (Γ1 | · · · | Γn) = (Γ1) ⊗ . . . ⊗ (Γn)
Theorem
If G in HCP then, (G) in CLL.
Kokke, Montesi, Peressotti Better Late Than Never 6
Deriving an LTS of proofs: input prefix/rule
x(x ).P
Kokke, Montesi, Peressotti Better Late Than Never 7
Deriving an LTS of proofs: input prefix/rule
x(x ).P
x(x )
−−−→ P
Kokke, Montesi, Peressotti Better Late Than Never 7
Deriving an LTS of proofs: input prefix/rule
x(x ).P
x(x )
−−−→ P
P G | Γ, x :A, x:B
x(x ).P G | Γ, x:A B
??
−−−−−−−→ ??
Kokke, Montesi, Peressotti Better Late Than Never 7
Deriving an LTS of proofs: input prefix/rule
x(x ).P
x(x )
−−−→ P
P
x(x ).P
−−−−−−→
Kokke, Montesi, Peressotti Better Late Than Never 7
Deriving an LTS of proofs: input prefix/rule
x(x ).P
x(x )
−−−→ P
P
x(x ).P
x(x ):
−−−−−−→ P
Kokke, Montesi, Peressotti Better Late Than Never 7
Deriving an LTS of proofs: input prefix/rule
x(x ).P
x(x )
−−−→ P
P G | Γ, x :A, x:B
x(x ).P G | Γ, x:A B
x(x ): A B
−−−−−−→ P G | Γ, x :A, x:B
Kokke, Montesi, Peressotti Better Late Than Never 7
Deriving an LTS of proofs: output prefix/rule ⊗
x[x ].P
x[x ]
−−→ P
Kokke, Montesi, Peressotti Better Late Than Never 8
Deriving an LTS of proofs: output prefix/rule ⊗
x[x ].P
x[x ]
−−→ P
P
x[x ].P
⊗
x[x ]:
−−−−−−→ P
Kokke, Montesi, Peressotti Better Late Than Never 8
Deriving an LTS of proofs: output prefix/rule ⊗
x[x ].P
x[x ]
−−→ P
P G | Γ, x :A | ∆, x:B
x[x ].P G | Γ, ∆, x:A ⊗ B
⊗
x[x ]: A⊗B
−−−−−−→ P G | Γ, x :A | ∆, x:B
Kokke, Montesi, Peressotti Better Late Than Never 8
Deriving an LTS of proofs: h-mix
P
l
−−→ P bn(l) ∩ fn(Q) = ∅
P | Q
l
−−→ P | Q
par1
Kokke, Montesi, Peressotti Better Late Than Never 9
Deriving an LTS of proofs: h-mix
P
l
−−→ P bn(l) ∩ fn(Q) = ∅
P | Q
l
−−→ P | Q
par1
P
l
−−→ P bn(l) ∩ fn(Q) = ∅
P Q
P | Q
h-mix
l
−−→
P Q
P | Q
h-mix
par1
Kokke, Montesi, Peressotti Better Late Than Never 9
Deriving an LTS of proofs: h-mix
P
l
−−→ P bn(l) ∩ fn(Q) = ∅
P | Q
l
−−→ P | Q
par1
P G
l
−−→ P G bn(l) ∩ fn(Q) = ∅
P G Q H
P | Q G | H
h-mix
l
−−→
P G Q H
P | Q G | H
h-mix
par1
Kokke, Montesi, Peressotti Better Late Than Never 9
Deriving an LTS of proofs: h-mix
P
l
−−→ P Q
l
−−→ Q bn(l) ∩ bn(l ) = ∅
P | Q
(l l )
−−−→ P | Q
Kokke, Montesi, Peressotti Better Late Than Never 10
Deriving an LTS of proofs: h-mix
P
l
−−→ P Q
l
−−→ Q bn(l) ∩ bn(l ) = ∅
P | Q
(l l )
−−−→ P | Q
P
l
−−→ P Q
l
−−→ Q bn(l) ∩ bn(l ) = ∅
P Q
P | Q
h-mix
(l l )
−−−→
P Q
P | Q
h-mix
Kokke, Montesi, Peressotti Better Late Than Never 10
Deriving an LTS of proofs: h-mix
P
l
−−→ P Q
l
−−→ Q bn(l) ∩ bn(l ) = ∅
P | Q
(l l )
−−−→ P | Q
P G
l
−−→ P G Q H
l
−−→ Q H bn(l) ∩ bn(l ) = ∅
P G Q H
P | Q G | H
h-mix
(l l )
−−−→
P G Q H
P | Q G | H
h-mix
Kokke, Montesi, Peressotti Better Late Than Never 10
Deriving an LTS of proofs: h-cut ⊗
P
(x[x ] y(y ))
−−−−−−−→ P
(νxy)P
τ
−−→ (νxy)(νx y )P
Kokke, Montesi, Peressotti Better Late Than Never 11
Deriving an LTS of proofs: h-cut ⊗
P
(x[x ] y(y ))
−−−−−−−→ P
(νxy)P
τ
−−→ (νxy)(νx y )P
P


(x[x ] y(y ))
P
P
(νxy)P
h-cut
↓ τ
P
(νx y )P
h-cut
(νxy)(νx y )P
h-cut
⊗
Kokke, Montesi, Peressotti Better Late Than Never 11
Deriving an LTS of proofs: h-cut ⊗
P
(x[x ] y(y ))
−−−−−−−→ P
(νxy)P
τ
−−→ (νxy)(νx y )P
P G | Γ, ∆, x:A ⊗ B | Θ, y:A⊥ B⊥


(x[x ] y(y ))
P G | Γ, x:B | ∆, x :A | Θ, y:B⊥, y :A⊥
P G | Γ, ∆, x:A ⊗ B | Θ, y:A⊥ B⊥
(νxy)P G | Γ, ∆, Θ
h-cut
↓ τ
P G | Γ, x:B | ∆, x :A | Θ, y:B⊥, y :A⊥
(νx y )P G | Γ, x:B | ∆, Θ, y:B⊥
h-cut
(νxy)(νx y )P G | Γ, ∆, Θ
h-cut
⊗
Kokke, Montesi, Peressotti Better Late Than Never 11
Readiness
For an external observer, every parallel component of a (well-typed) process is
always ready to fire at least one action.
Theorem (Readiness)
If P Γ1 | · · · | Γn then, ∀Γi, ∃l there is P
l
==⇒ Q s.t. l is over a channel in Γi
(where
l
==⇒ =
τ
−→∗
◦
l
−−→ ◦
τ
−→∗
.)
Kokke, Montesi, Peressotti Better Late Than Never 12
Readiness
For an external observer, every parallel component of a (well-typed) process is
always ready to fire at least one action.
Theorem (Readiness)
If P Γ1 | · · · | Γn then, ∀Γi, ∃l there is P
l
==⇒ Q s.t. l is over a channel in Γi
(where
l
==⇒ =
τ
−→∗
◦
l
−−→ ◦
τ
−→∗
.)
Corollary
Well-typed processes are deadlock-free.
Kokke, Montesi, Peressotti Better Late Than Never 12
Validation: the behavioural theory of HCP
Bisimilarity (≈) is defined as expected.
Parallel composition is associative, commutative, and has a unit:
(P | Q) | R ≈ P | (Q | R) P | Q ≈ Q | P P | nil ≈ P
Contextual equivalence is defined as expected (barbed congruence)
Theorem (Full abstraction)
Bisimilarity = contextual equivalence (= denotational equivalence).
The discriminating power of HCP programs and the LTS is the same.
In the paper, full abstraction includes also denotational equivalence.
Kokke, Montesi, Peressotti Better Late Than Never 13
Conclusions
Girard 1987
Abramsky 1994
Bellin and Scott 1994
Honda 1993
Caires and Pfenning 2010
Wadler 2014
this paper
Parallel operator (P | Q)
Conservative extension of CLL
Parallelism as hypersequents
LTS semantics
Transitions as proof
transformations
Readiness, No-Deadlocks
Bisimilarity, Contextual eq.
Denotational semantics
Full-abstraction
Kokke, Montesi, Peressotti Better Late Than Never 14
Conclusions and future work
Girard 1987
Abramsky 1994
Bellin and Scott 1994
Honda 1993
Caires and Pfenning 2010
Wadler 2014
this paper
next
Parallel operator (P | Q)
Conservative extension of CLL
Parallelism as hypersequents
LTS semantics
Transitions as proof
transformations
Readiness, No-Deadlocks
Bisimilarity, Contextual eq.
Denotational semantics
Full-abstraction
Recursion (Lindley and Morris 2016)
Higher-order (Montesi 2018)
Multiparty ST (Carbone et al. 2017)
Kokke, Montesi, Peressotti Better Late Than Never 14
Thanks for your attention
Better Late Than Never
A fully-abstract semantics for Classical Processes
Wen Kokke, Fabrizio Montesi, and Marco Peressotti

Más contenido relacionado

La actualidad más candente

lecture 27
lecture 27lecture 27
lecture 27sajinsc
 
P, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardP, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardAnimesh Chaturvedi
 
lecture 30
lecture 30lecture 30
lecture 30sajinsc
 
Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...
Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...
Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...Amrinder Arora
 
Talk at Seminari de Teoria de Nombres de Barcelona 2017
Talk at Seminari de Teoria de Nombres de Barcelona 2017Talk at Seminari de Teoria de Nombres de Barcelona 2017
Talk at Seminari de Teoria de Nombres de Barcelona 2017mmasdeu
 
Process Algebras and Petri Nets are Discrete Dynamical Systems
Process Algebras and Petri Nets are Discrete Dynamical SystemsProcess Algebras and Petri Nets are Discrete Dynamical Systems
Process Algebras and Petri Nets are Discrete Dynamical SystemsFacultad de Informática UCM
 
no U-turn sampler, a discussion of Hoffman & Gelman NUTS algorithm
no U-turn sampler, a discussion of Hoffman & Gelman NUTS algorithmno U-turn sampler, a discussion of Hoffman & Gelman NUTS algorithm
no U-turn sampler, a discussion of Hoffman & Gelman NUTS algorithmChristian Robert
 
Quantum Algorithms and Lower Bounds in Continuous Time
Quantum Algorithms and Lower Bounds in Continuous TimeQuantum Algorithms and Lower Bounds in Continuous Time
Quantum Algorithms and Lower Bounds in Continuous TimeDavid Yonge-Mallo
 
Nies cuny describing_finite_groups
Nies cuny describing_finite_groupsNies cuny describing_finite_groups
Nies cuny describing_finite_groupsAndre Nies
 
lecture 28
lecture 28lecture 28
lecture 28sajinsc
 
Np completeness h4
Np completeness  h4Np completeness  h4
Np completeness h4Rajendran
 
Merged Talk: A Verified Optimizer for Quantum Circuits & Verified Translation...
Merged Talk: A Verified Optimizer for Quantum Circuits & Verified Translation...Merged Talk: A Verified Optimizer for Quantum Circuits & Verified Translation...
Merged Talk: A Verified Optimizer for Quantum Circuits & Verified Translation...Robert Rand
 
Kernel for Chordal Vertex Deletion
Kernel for Chordal Vertex DeletionKernel for Chordal Vertex Deletion
Kernel for Chordal Vertex DeletionAkankshaAgrawal55
 

La actualidad más candente (19)

lecture 27
lecture 27lecture 27
lecture 27
 
P, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardP, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-Hard
 
27 NP Completness
27 NP Completness27 NP Completness
27 NP Completness
 
lecture 30
lecture 30lecture 30
lecture 30
 
Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...
Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...
Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...
 
Talk at Seminari de Teoria de Nombres de Barcelona 2017
Talk at Seminari de Teoria de Nombres de Barcelona 2017Talk at Seminari de Teoria de Nombres de Barcelona 2017
Talk at Seminari de Teoria de Nombres de Barcelona 2017
 
Process Algebras and Petri Nets are Discrete Dynamical Systems
Process Algebras and Petri Nets are Discrete Dynamical SystemsProcess Algebras and Petri Nets are Discrete Dynamical Systems
Process Algebras and Petri Nets are Discrete Dynamical Systems
 
no U-turn sampler, a discussion of Hoffman & Gelman NUTS algorithm
no U-turn sampler, a discussion of Hoffman & Gelman NUTS algorithmno U-turn sampler, a discussion of Hoffman & Gelman NUTS algorithm
no U-turn sampler, a discussion of Hoffman & Gelman NUTS algorithm
 
Quantum Algorithms and Lower Bounds in Continuous Time
Quantum Algorithms and Lower Bounds in Continuous TimeQuantum Algorithms and Lower Bounds in Continuous Time
Quantum Algorithms and Lower Bounds in Continuous Time
 
Nies cuny describing_finite_groups
Nies cuny describing_finite_groupsNies cuny describing_finite_groups
Nies cuny describing_finite_groups
 
Np complete
Np completeNp complete
Np complete
 
lecture 28
lecture 28lecture 28
lecture 28
 
P versus NP
P versus NPP versus NP
P versus NP
 
Np completeness h4
Np completeness  h4Np completeness  h4
Np completeness h4
 
Merged Talk: A Verified Optimizer for Quantum Circuits & Verified Translation...
Merged Talk: A Verified Optimizer for Quantum Circuits & Verified Translation...Merged Talk: A Verified Optimizer for Quantum Circuits & Verified Translation...
Merged Talk: A Verified Optimizer for Quantum Circuits & Verified Translation...
 
Invariant-Free Clausal Temporal Resolution
Invariant-Free Clausal Temporal ResolutionInvariant-Free Clausal Temporal Resolution
Invariant-Free Clausal Temporal Resolution
 
Fsa
FsaFsa
Fsa
 
Kernel for Chordal Vertex Deletion
Kernel for Chordal Vertex DeletionKernel for Chordal Vertex Deletion
Kernel for Chordal Vertex Deletion
 
Sara el hassad
Sara el hassadSara el hassad
Sara el hassad
 

Similar a Better Late Than Never: A Fully Abstract Semantics for Classical Processes

Binary Session Types for Psi-Calculi (APLAS 2016)
Binary Session Types for Psi-Calculi (APLAS 2016)Binary Session Types for Psi-Calculi (APLAS 2016)
Binary Session Types for Psi-Calculi (APLAS 2016)Hans Hyttel
 
(DL hacks輪読) Variational Inference with Rényi Divergence
(DL hacks輪読) Variational Inference with Rényi Divergence(DL hacks輪読) Variational Inference with Rényi Divergence
(DL hacks輪読) Variational Inference with Rényi DivergenceMasahiro Suzuki
 
Pairwise sequence alignment
Pairwise sequence alignmentPairwise sequence alignment
Pairwise sequence alignmentavrilcoghlan
 
Topic model an introduction
Topic model an introductionTopic model an introduction
Topic model an introductionYueshen Xu
 
RChain - Understanding Distributed Calculi
RChain - Understanding Distributed CalculiRChain - Understanding Distributed Calculi
RChain - Understanding Distributed CalculiPawel Szulc
 
Noise Resilience of Variational Quantum Compiling
Noise Resilience of Variational Quantum CompilingNoise Resilience of Variational Quantum Compiling
Noise Resilience of Variational Quantum CompilingKunalSharma515
 
Rebuilding Factorized Information Criterion: Asymptotically Accurate Marginal...
Rebuilding Factorized Information Criterion: Asymptotically Accurate Marginal...Rebuilding Factorized Information Criterion: Asymptotically Accurate Marginal...
Rebuilding Factorized Information Criterion: Asymptotically Accurate Marginal...Kohei Hayashi
 
Principal Type Scheme for Session Types
Principal Type Scheme for Session TypesPrincipal Type Scheme for Session Types
Principal Type Scheme for Session TypesCSCJournals
 
Parameterized Model Checking of Rendezvous Systems
Parameterized Model Checking of Rendezvous SystemsParameterized Model Checking of Rendezvous Systems
Parameterized Model Checking of Rendezvous SystemsFrancesco Spegni
 
Adpositional Argumentation: How Logic Originates In Natural Argumentative Dis...
Adpositional Argumentation: How Logic Originates In Natural Argumentative Dis...Adpositional Argumentation: How Logic Originates In Natural Argumentative Dis...
Adpositional Argumentation: How Logic Originates In Natural Argumentative Dis...Federico Gobbo
 
Variational Inference
Variational InferenceVariational Inference
Variational InferenceTushar Tank
 
RuleML 2015 Constraint Handling Rules - What Else?
RuleML 2015 Constraint Handling Rules - What Else?RuleML 2015 Constraint Handling Rules - What Else?
RuleML 2015 Constraint Handling Rules - What Else?RuleML
 
Using Qualitative Knowledge in Numerical Learning
Using Qualitative Knowledge in Numerical LearningUsing Qualitative Knowledge in Numerical Learning
Using Qualitative Knowledge in Numerical Learningbutest
 
Variational Bayes: A Gentle Introduction
Variational Bayes: A Gentle IntroductionVariational Bayes: A Gentle Introduction
Variational Bayes: A Gentle IntroductionFlavio Morelli
 
On Resolution Proofs for Combinational Equivalence
On Resolution Proofs for Combinational EquivalenceOn Resolution Proofs for Combinational Equivalence
On Resolution Proofs for Combinational Equivalencesatrajit
 
CPSC 125 Ch 1 sec 2
CPSC 125 Ch 1 sec 2CPSC 125 Ch 1 sec 2
CPSC 125 Ch 1 sec 2David Wood
 

Similar a Better Late Than Never: A Fully Abstract Semantics for Classical Processes (19)

Binary Session Types for Psi-Calculi (APLAS 2016)
Binary Session Types for Psi-Calculi (APLAS 2016)Binary Session Types for Psi-Calculi (APLAS 2016)
Binary Session Types for Psi-Calculi (APLAS 2016)
 
(DL hacks輪読) Variational Inference with Rényi Divergence
(DL hacks輪読) Variational Inference with Rényi Divergence(DL hacks輪読) Variational Inference with Rényi Divergence
(DL hacks輪読) Variational Inference with Rényi Divergence
 
Pairwise sequence alignment
Pairwise sequence alignmentPairwise sequence alignment
Pairwise sequence alignment
 
Topic model an introduction
Topic model an introductionTopic model an introduction
Topic model an introduction
 
RChain - Understanding Distributed Calculi
RChain - Understanding Distributed CalculiRChain - Understanding Distributed Calculi
RChain - Understanding Distributed Calculi
 
Noise Resilience of Variational Quantum Compiling
Noise Resilience of Variational Quantum CompilingNoise Resilience of Variational Quantum Compiling
Noise Resilience of Variational Quantum Compiling
 
Unit 6: All
Unit 6: AllUnit 6: All
Unit 6: All
 
Rebuilding Factorized Information Criterion: Asymptotically Accurate Marginal...
Rebuilding Factorized Information Criterion: Asymptotically Accurate Marginal...Rebuilding Factorized Information Criterion: Asymptotically Accurate Marginal...
Rebuilding Factorized Information Criterion: Asymptotically Accurate Marginal...
 
Principal Type Scheme for Session Types
Principal Type Scheme for Session TypesPrincipal Type Scheme for Session Types
Principal Type Scheme for Session Types
 
Parameterized Model Checking of Rendezvous Systems
Parameterized Model Checking of Rendezvous SystemsParameterized Model Checking of Rendezvous Systems
Parameterized Model Checking of Rendezvous Systems
 
Adpositional Argumentation: How Logic Originates In Natural Argumentative Dis...
Adpositional Argumentation: How Logic Originates In Natural Argumentative Dis...Adpositional Argumentation: How Logic Originates In Natural Argumentative Dis...
Adpositional Argumentation: How Logic Originates In Natural Argumentative Dis...
 
Variational Inference
Variational InferenceVariational Inference
Variational Inference
 
defense
defensedefense
defense
 
RuleML 2015 Constraint Handling Rules - What Else?
RuleML 2015 Constraint Handling Rules - What Else?RuleML 2015 Constraint Handling Rules - What Else?
RuleML 2015 Constraint Handling Rules - What Else?
 
Using Qualitative Knowledge in Numerical Learning
Using Qualitative Knowledge in Numerical LearningUsing Qualitative Knowledge in Numerical Learning
Using Qualitative Knowledge in Numerical Learning
 
Variational Bayes: A Gentle Introduction
Variational Bayes: A Gentle IntroductionVariational Bayes: A Gentle Introduction
Variational Bayes: A Gentle Introduction
 
On Resolution Proofs for Combinational Equivalence
On Resolution Proofs for Combinational EquivalenceOn Resolution Proofs for Combinational Equivalence
On Resolution Proofs for Combinational Equivalence
 
CPSC 125 Ch 1 sec 2
CPSC 125 Ch 1 sec 2CPSC 125 Ch 1 sec 2
CPSC 125 Ch 1 sec 2
 
pres_coconat
pres_coconatpres_coconat
pres_coconat
 

Último

Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxgindu3009
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Sérgio Sacani
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfSumit Kumar yadav
 
Isotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoIsotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoSérgio Sacani
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)PraveenaKalaiselvan1
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRDelhi Call girls
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptxRajatChauhan518211
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfmuntazimhurra
 
GFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptxGFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptxAleenaTreesaSaji
 
Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Nistarini College, Purulia (W.B) India
 
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...jana861314
 
Artificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PArtificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PPRINCE C P
 
G9 Science Q4- Week 1-2 Projectile Motion.ppt
G9 Science Q4- Week 1-2 Projectile Motion.pptG9 Science Q4- Week 1-2 Projectile Motion.ppt
G9 Science Q4- Week 1-2 Projectile Motion.pptMAESTRELLAMesa2
 
Botany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsBotany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsSumit Kumar yadav
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisDiwakar Mishra
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksSérgio Sacani
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfSumit Kumar yadav
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsAArockiyaNisha
 

Último (20)

Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdf
 
Isotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoIsotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on Io
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptx
 
CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdf
 
GFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptxGFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptx
 
Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...
 
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
 
Artificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PArtificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C P
 
G9 Science Q4- Week 1-2 Projectile Motion.ppt
G9 Science Q4- Week 1-2 Projectile Motion.pptG9 Science Q4- Week 1-2 Projectile Motion.ppt
G9 Science Q4- Week 1-2 Projectile Motion.ppt
 
Botany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsBotany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questions
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disks
 
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based Nanomaterials
 

Better Late Than Never: A Fully Abstract Semantics for Classical Processes

  • 1. Better Late Than Never A fully-abstract semantics for Classical Processes Wen Kokke University of Edinburgh Fabrizio Montesi University of Southern Denmark Marco Peressotti University of Southern Denmark POPL’19
  • 2. Proofs as Processes Linear Logic (LL) corresponds to a type system for a process calculus proofs correspond to processes; propositions correspond to session types. Kokke, Montesi, Peressotti Better Late Than Never 1
  • 3. Proofs as Processes Linear Logic (LL) corresponds to a type system for a process calculus proofs correspond to processes; propositions correspond to session types. Girard 1987 Linear Logic Kokke, Montesi, Peressotti Better Late Than Never 1
  • 4. Proofs as Processes Linear Logic (LL) corresponds to a type system for a process calculus proofs correspond to processes; propositions correspond to session types. Girard 1987 Linear Logic Abramsky 1994 Bellin and Scott 1994 Propositions as linear types for processes Kokke, Montesi, Peressotti Better Late Than Never 1
  • 5. Proofs as Processes Linear Logic (LL) corresponds to a type system for a process calculus proofs correspond to processes; propositions correspond to session types. Girard 1987 Linear Logic Abramsky 1994 Bellin and Scott 1994 Propositions as linear types for processes Honda 1993 Session types (based on duality) Kokke, Montesi, Peressotti Better Late Than Never 1
  • 6. Proofs as Processes Linear Logic (LL) corresponds to a type system for a process calculus proofs correspond to processes; propositions correspond to session types. Girard 1987 Linear Logic Abramsky 1994 Bellin and Scott 1994 Propositions as linear types for processes Honda 1993 Session types (based on duality) Caires and Pfenning 2010 Propositions in Intuitionistic LL as session types Kokke, Montesi, Peressotti Better Late Than Never 1
  • 7. Proofs as Processes Linear Logic (LL) corresponds to a type system for a process calculus proofs correspond to processes; propositions correspond to session types. Girard 1987 Linear Logic Abramsky 1994 Bellin and Scott 1994 Propositions as linear types for processes Honda 1993 Session types (based on duality) Caires and Pfenning 2010 Propositions in Intuitionistic LL as session types Wadler 2014 Back to duality: Classical Processes Kokke, Montesi, Peressotti Better Late Than Never 1
  • 8. Classical Processes (CP) (Wadler 2014) Γ where Γ = A1, . . . , An is a collection of CLL propositions (Convention: propositions are in blue) CLL sequent Kokke, Montesi, Peressotti Better Late Than Never 2
  • 9. Classical Processes (CP) (Wadler 2014) Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types (Convention: types are in blue and channels are in red) CP typing environment Kokke, Montesi, Peressotti Better Late Than Never 2
  • 10. Classical Processes (CP) (Wadler 2014) Typing judgments: P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types “for each i, process P implements protocol Ai on channel xi”. (Convention: types are in blue, processes and channels are in red) Kokke, Montesi, Peressotti Better Late Than Never 2
  • 11. Classical Processes (CP) (Wadler 2014) Typing judgments: P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types “for each i, process P implements protocol Ai on channel xi”. (Convention: types are in blue, processes and channels are in red) Derivation rules in CLL correspond to typing rules in CP: Kokke, Montesi, Peressotti Better Late Than Never 2
  • 12. Classical Processes (CP) (Wadler 2014) Typing judgments: P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types “for each i, process P implements protocol Ai on channel xi”. (Convention: types are in blue, processes and channels are in red) Derivation rules in CLL correspond to typing rules in CP: Γ, A, B Γ, A B Kokke, Montesi, Peressotti Better Late Than Never 2
  • 13. Classical Processes (CP) (Wadler 2014) Typing judgments: P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types “for each i, process P implements protocol Ai on channel xi”. (Convention: types are in blue, processes and channels are in red) Derivation rules in CLL correspond to typing rules in CP: P Γ, y:A, x:B x(y).P Γ, x:A B Kokke, Montesi, Peressotti Better Late Than Never 2
  • 14. Classical Processes (CP) (Wadler 2014) Typing judgments: P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types “for each i, process P implements protocol Ai on channel xi”. (Convention: types are in blue, processes and channels are in red) Derivation rules in CLL correspond to typing rules in CP: P Γ, y:A, x:B x(y).P Γ, x:A B Γ, A ∆, B Γ, ∆, A ⊗ B ⊗ Kokke, Montesi, Peressotti Better Late Than Never 2
  • 15. Classical Processes (CP) (Wadler 2014) Typing judgments: P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types “for each i, process P implements protocol Ai on channel xi”. (Convention: types are in blue, processes and channels are in red) Derivation rules in CLL correspond to typing rules in CP: P Γ, y:A, x:B x(y).P Γ, x:A B P Γ, y:A Q ∆, x:B x[y].(P | Q) Γ, ∆, x:A ⊗ B ⊗ Kokke, Montesi, Peressotti Better Late Than Never 2
  • 16. Classical Processes (CP) (Wadler 2014) Typing judgments: P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types “for each i, process P implements protocol Ai on channel xi”. (Convention: types are in blue, processes and channels are in red) Derivation rules in CLL correspond to typing rules in CP: P Γ, y:A, x:B x(y).P Γ, x:A B P Γ, y:A Q ∆, x:B x[y].(P | Q) Γ, ∆, x:A ⊗ B ⊗ Duality in CLL corresponds to duality in session types (e.g. recv/send) (A B)⊥ = A⊥ ⊗ B⊥ Kokke, Montesi, Peressotti Better Late Than Never 2
  • 17. Classical Processes (CP) (Wadler 2014) Typing judgments: P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types “for each i, process P implements protocol Ai on channel xi”. (Convention: types are in blue, processes and channels are in red) Derivation rules in CLL correspond to typing rules in CP: P Γ, y:A, x:B x(y).P Γ, x:A B P Γ, y:A Q ∆, x:B x[y].(P | Q) Γ, ∆, x:A ⊗ B ⊗ Γ, A ∆, A⊥ Γ, ∆ cut Duality in CLL corresponds to duality in session types (e.g. recv/send) (A B)⊥ = A⊥ ⊗ B⊥ Kokke, Montesi, Peressotti Better Late Than Never 2
  • 18. Classical Processes (CP) (Wadler 2014) Typing judgments: P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types “for each i, process P implements protocol Ai on channel xi”. (Convention: types are in blue, processes and channels are in red) Derivation rules in CLL correspond to typing rules in CP: P Γ, y:A, x:B x(y).P Γ, x:A B P Γ, y:A Q ∆, x:B x[y].(P | Q) Γ, ∆, x:A ⊗ B ⊗ P Γ, x:A Q ∆, y:A⊥ (νxy)(P | Q) Γ, ∆ cut Duality in CLL corresponds to duality in session types (e.g. recv/send) (A B)⊥ = A⊥ ⊗ B⊥ Kokke, Montesi, Peressotti Better Late Than Never 2
  • 19. Classical Processes (CP) (Wadler 2014) Typing judgments: P Γ where Γ = x1:A1, . . . , xn:An is a map from channels to session types “for each i, process P implements protocol Ai on channel xi”. (Convention: types are in blue, processes and channels are in red) Derivation rules in CLL correspond to typing rules in CP: P Γ, y:A, x:B x(y).P Γ, x:A B P Γ, y:A Q ∆, x:B x[y].(P | Q) Γ, ∆, x:A ⊗ B ⊗ P Γ, x:A Q ∆, y:A⊥ (νxy)(P | Q) Γ, ∆ cut Duality in CLL corresponds to duality in session types (e.g. recv/send) (A B)⊥ = A⊥ ⊗ B⊥ Proof transformations correspond to process reductions. Kokke, Montesi, Peressotti Better Late Than Never 2
  • 20. There are some discrepancies Parallel composition (P | Q) is not typable, it is not even in the syntax of CP. Noticeable consequences: Kokke, Montesi, Peressotti Better Late Than Never 3
  • 21. There are some discrepancies Parallel composition (P | Q) is not typable, it is not even in the syntax of CP. Noticeable consequences: No Labelled Transition System. e.g. the expected transition for output: x[y].(P | Q) x[y] −−→ P | Q is unsound! Kokke, Montesi, Peressotti Better Late Than Never 3
  • 22. There are some discrepancies Parallel composition (P | Q) is not typable, it is not even in the syntax of CP. Noticeable consequences: No Labelled Transition System. e.g. the expected transition for output: x[y].(P | Q) x[y] −−→ P | Q is unsound! The semantics of CP needs reductions that do not preserve parallelism, e.g. (νxx )(y(y ).P | Q) → y(y ).(νxx )(P | Q) introduces dependencies among parallel actions. Kokke, Montesi, Peressotti Better Late Than Never 3
  • 23. Parallel composition Parallel composition lacks a rule in CLL for reasoning about it directly. Kokke, Montesi, Peressotti Better Late Than Never 4
  • 24. Parallel composition Parallel composition lacks a rule in CLL for reasoning about it directly. Idea: characterise parallelism logically Hypersequents (collections of sequents): G, H ::= Γ1 | · · · | Γn Hypersequent Mix P G Q H P | Q G | H h-mix If G then, its sequents are independently derivable. Kokke, Montesi, Peressotti Better Late Than Never 4
  • 25. From CP to HCP Classical Processes (Wadler 2014) No parallel composition Hypersequent Classical Processes (this paper) P G Q H P | Q G | H h-mix Kokke, Montesi, Peressotti Better Late Than Never 5
  • 26. From CP to HCP Classical Processes (Wadler 2014) No parallel composition P Γ, x:A Q ∆, y:A⊥ (νxy)(P | Q) Γ, ∆ cut Hypersequent Classical Processes (this paper) P G Q H P | Q G | H h-mix P G | Γ, x:A | ∆, y:A⊥ (νxy)P G | Γ, ∆ h-cut Kokke, Montesi, Peressotti Better Late Than Never 5
  • 27. From CP to HCP Classical Processes (Wadler 2014) No parallel composition P Γ, x:A Q ∆, y:A⊥ (νxy)(P | Q) Γ, ∆ cut Hypersequent Classical Processes (this paper) P G Q H P | Q G | H h-mix P G | Γ, x:A | ∆, y:A⊥ (νxy)P G | Γ, ∆ h-cut In H-Cut, hypersequents ensure that x:A and y:A⊥ are independent Kokke, Montesi, Peressotti Better Late Than Never 5
  • 28. From CP to HCP Classical Processes (Wadler 2014) No parallel composition P Γ, x:A Q ∆, y:A⊥ (νxy)(P | Q) Γ, ∆ cut Hypersequent Classical Processes (this paper) P G Q H P | Q G | H h-mix P G | Γ, x:A | ∆, y:A⊥ (νxy)P G | Γ, ∆ h-cut Restriction is a stand-alone (unary) term constructor Kokke, Montesi, Peressotti Better Late Than Never 5
  • 29. From CP to HCP Classical Processes (Wadler 2014) No parallel composition P Γ, x:A Q ∆, y:A⊥ (νxy)(P | Q) Γ, ∆ cut P Γ, y:A Q ∆, x:B x[y].(P | Q) Γ, ∆, x:A ⊗ B ⊗ Hypersequent Classical Processes (this paper) P G Q H P | Q G | H h-mix P G | Γ, x:A | ∆, y:A⊥ (νxy)P G | Γ, ∆ h-cut P G | Γ, y:A | ∆, x:B x[y].P G | Γ, ∆, x:A ⊗ B ⊗ Kokke, Montesi, Peressotti Better Late Than Never 5
  • 30. From CP to HCP Classical Processes (Wadler 2014) No parallel composition P Γ, x:A Q ∆, y:A⊥ (νxy)(P | Q) Γ, ∆ cut P Γ, y:A Q ∆, x:B x[y].(P | Q) Γ, ∆, x:A ⊗ B ⊗ Hypersequent Classical Processes (this paper) P G Q H P | Q G | H h-mix P G | Γ, x:A | ∆, y:A⊥ (νxy)P G | Γ, ∆ h-cut P G | Γ, y:A | ∆, x:B x[y].P G | Γ, ∆, x:A ⊗ B ⊗ Unary operator, hyperseqeunts guarantee independence Kokke, Montesi, Peressotti Better Late Than Never 5
  • 31. From CP to HCP Classical Processes (Wadler 2014) No parallel composition P Γ, x:A Q ∆, y:A⊥ (νxy)(P | Q) Γ, ∆ cut P Γ, y:A Q ∆, x:B x[y].(P | Q) Γ, ∆, x:A ⊗ B ⊗ P Γ, y:A, x:B x(y).P Γ, x:A B . . . Hypersequent Classical Processes (this paper) P G Q H P | Q G | H h-mix P G | Γ, x:A | ∆, y:A⊥ (νxy)P G | Γ, ∆ h-cut P G | Γ, y:A | ∆, x:B x[y].P G | Γ, ∆, x:A ⊗ B ⊗ P G | Γ, y:A, x:B x(y).P G | Γ, x:A B . . . Kokke, Montesi, Peressotti Better Late Than Never 5
  • 32. From CP to HCP Classical Processes (Wadler 2014) No parallel composition P Γ, x:A Q ∆, y:A⊥ (νxy)(P | Q) Γ, ∆ cut P Γ, y:A Q ∆, x:B x[y].(P | Q) Γ, ∆, x:A ⊗ B ⊗ P Γ, y:A, x:B x(y).P Γ, x:A B . . . Hypersequent Classical Processes (this paper) P G Q H P | Q G | H h-mix P G | Γ, x:A | ∆, y:A⊥ (νxy)P G | Γ, ∆ h-cut P G | Γ, y:A | ∆, x:B x[y].P G | Γ, ∆, x:A ⊗ B ⊗ P G | Γ, y:A, x:B x(y).P G | Γ, x:A B . . . Kokke, Montesi, Peressotti Better Late Than Never 5
  • 33. From CP to HCP Classical Processes (Wadler 2014) No parallel composition P Γ, x:A Q ∆, y:A⊥ (νxy)(P | Q) Γ, ∆ cut P Γ, y:A Q ∆, x:B x[y].(P | Q) Γ, ∆, x:A ⊗ B ⊗ P Γ, y:A, x:B x(y).P Γ, x:A B . . . Hypersequent Classical Processes (this paper) P G Q H P | Q G | H h-mix P G | Γ, x:A | ∆, y:A⊥ (νxy)P G | Γ, ∆ h-cut P G | Γ, y:A | ∆, x:B x[y].P G | Γ, ∆, x:A ⊗ B ⊗ P G | Γ, y:A, x:B x(y).P G | Γ, x:A B . . . P uses channels in G in parallel to x, y, Γ Kokke, Montesi, Peressotti Better Late Than Never 5
  • 34. Relation with Classical Linear Logic From CLL to HCP: Theorem If Γ in CLL then, Γ in HCP. From HCP to CLL: “,” as “ ” “|” as “⊗” (A1, . . . , An) = A1 · · · An (Γ1 | · · · | Γn) = (Γ1) ⊗ . . . ⊗ (Γn) Theorem If G in HCP then, (G) in CLL. Kokke, Montesi, Peressotti Better Late Than Never 6
  • 35. Deriving an LTS of proofs: input prefix/rule x(x ).P Kokke, Montesi, Peressotti Better Late Than Never 7
  • 36. Deriving an LTS of proofs: input prefix/rule x(x ).P x(x ) −−−→ P Kokke, Montesi, Peressotti Better Late Than Never 7
  • 37. Deriving an LTS of proofs: input prefix/rule x(x ).P x(x ) −−−→ P P G | Γ, x :A, x:B x(x ).P G | Γ, x:A B ?? −−−−−−−→ ?? Kokke, Montesi, Peressotti Better Late Than Never 7
  • 38. Deriving an LTS of proofs: input prefix/rule x(x ).P x(x ) −−−→ P P x(x ).P −−−−−−→ Kokke, Montesi, Peressotti Better Late Than Never 7
  • 39. Deriving an LTS of proofs: input prefix/rule x(x ).P x(x ) −−−→ P P x(x ).P x(x ): −−−−−−→ P Kokke, Montesi, Peressotti Better Late Than Never 7
  • 40. Deriving an LTS of proofs: input prefix/rule x(x ).P x(x ) −−−→ P P G | Γ, x :A, x:B x(x ).P G | Γ, x:A B x(x ): A B −−−−−−→ P G | Γ, x :A, x:B Kokke, Montesi, Peressotti Better Late Than Never 7
  • 41. Deriving an LTS of proofs: output prefix/rule ⊗ x[x ].P x[x ] −−→ P Kokke, Montesi, Peressotti Better Late Than Never 8
  • 42. Deriving an LTS of proofs: output prefix/rule ⊗ x[x ].P x[x ] −−→ P P x[x ].P ⊗ x[x ]: −−−−−−→ P Kokke, Montesi, Peressotti Better Late Than Never 8
  • 43. Deriving an LTS of proofs: output prefix/rule ⊗ x[x ].P x[x ] −−→ P P G | Γ, x :A | ∆, x:B x[x ].P G | Γ, ∆, x:A ⊗ B ⊗ x[x ]: A⊗B −−−−−−→ P G | Γ, x :A | ∆, x:B Kokke, Montesi, Peressotti Better Late Than Never 8
  • 44. Deriving an LTS of proofs: h-mix P l −−→ P bn(l) ∩ fn(Q) = ∅ P | Q l −−→ P | Q par1 Kokke, Montesi, Peressotti Better Late Than Never 9
  • 45. Deriving an LTS of proofs: h-mix P l −−→ P bn(l) ∩ fn(Q) = ∅ P | Q l −−→ P | Q par1 P l −−→ P bn(l) ∩ fn(Q) = ∅ P Q P | Q h-mix l −−→ P Q P | Q h-mix par1 Kokke, Montesi, Peressotti Better Late Than Never 9
  • 46. Deriving an LTS of proofs: h-mix P l −−→ P bn(l) ∩ fn(Q) = ∅ P | Q l −−→ P | Q par1 P G l −−→ P G bn(l) ∩ fn(Q) = ∅ P G Q H P | Q G | H h-mix l −−→ P G Q H P | Q G | H h-mix par1 Kokke, Montesi, Peressotti Better Late Than Never 9
  • 47. Deriving an LTS of proofs: h-mix P l −−→ P Q l −−→ Q bn(l) ∩ bn(l ) = ∅ P | Q (l l ) −−−→ P | Q Kokke, Montesi, Peressotti Better Late Than Never 10
  • 48. Deriving an LTS of proofs: h-mix P l −−→ P Q l −−→ Q bn(l) ∩ bn(l ) = ∅ P | Q (l l ) −−−→ P | Q P l −−→ P Q l −−→ Q bn(l) ∩ bn(l ) = ∅ P Q P | Q h-mix (l l ) −−−→ P Q P | Q h-mix Kokke, Montesi, Peressotti Better Late Than Never 10
  • 49. Deriving an LTS of proofs: h-mix P l −−→ P Q l −−→ Q bn(l) ∩ bn(l ) = ∅ P | Q (l l ) −−−→ P | Q P G l −−→ P G Q H l −−→ Q H bn(l) ∩ bn(l ) = ∅ P G Q H P | Q G | H h-mix (l l ) −−−→ P G Q H P | Q G | H h-mix Kokke, Montesi, Peressotti Better Late Than Never 10
  • 50. Deriving an LTS of proofs: h-cut ⊗ P (x[x ] y(y )) −−−−−−−→ P (νxy)P τ −−→ (νxy)(νx y )P Kokke, Montesi, Peressotti Better Late Than Never 11
  • 51. Deriving an LTS of proofs: h-cut ⊗ P (x[x ] y(y )) −−−−−−−→ P (νxy)P τ −−→ (νxy)(νx y )P P   (x[x ] y(y )) P P (νxy)P h-cut ↓ τ P (νx y )P h-cut (νxy)(νx y )P h-cut ⊗ Kokke, Montesi, Peressotti Better Late Than Never 11
  • 52. Deriving an LTS of proofs: h-cut ⊗ P (x[x ] y(y )) −−−−−−−→ P (νxy)P τ −−→ (νxy)(νx y )P P G | Γ, ∆, x:A ⊗ B | Θ, y:A⊥ B⊥   (x[x ] y(y )) P G | Γ, x:B | ∆, x :A | Θ, y:B⊥, y :A⊥ P G | Γ, ∆, x:A ⊗ B | Θ, y:A⊥ B⊥ (νxy)P G | Γ, ∆, Θ h-cut ↓ τ P G | Γ, x:B | ∆, x :A | Θ, y:B⊥, y :A⊥ (νx y )P G | Γ, x:B | ∆, Θ, y:B⊥ h-cut (νxy)(νx y )P G | Γ, ∆, Θ h-cut ⊗ Kokke, Montesi, Peressotti Better Late Than Never 11
  • 53. Readiness For an external observer, every parallel component of a (well-typed) process is always ready to fire at least one action. Theorem (Readiness) If P Γ1 | · · · | Γn then, ∀Γi, ∃l there is P l ==⇒ Q s.t. l is over a channel in Γi (where l ==⇒ = τ −→∗ ◦ l −−→ ◦ τ −→∗ .) Kokke, Montesi, Peressotti Better Late Than Never 12
  • 54. Readiness For an external observer, every parallel component of a (well-typed) process is always ready to fire at least one action. Theorem (Readiness) If P Γ1 | · · · | Γn then, ∀Γi, ∃l there is P l ==⇒ Q s.t. l is over a channel in Γi (where l ==⇒ = τ −→∗ ◦ l −−→ ◦ τ −→∗ .) Corollary Well-typed processes are deadlock-free. Kokke, Montesi, Peressotti Better Late Than Never 12
  • 55. Validation: the behavioural theory of HCP Bisimilarity (≈) is defined as expected. Parallel composition is associative, commutative, and has a unit: (P | Q) | R ≈ P | (Q | R) P | Q ≈ Q | P P | nil ≈ P Contextual equivalence is defined as expected (barbed congruence) Theorem (Full abstraction) Bisimilarity = contextual equivalence (= denotational equivalence). The discriminating power of HCP programs and the LTS is the same. In the paper, full abstraction includes also denotational equivalence. Kokke, Montesi, Peressotti Better Late Than Never 13
  • 56. Conclusions Girard 1987 Abramsky 1994 Bellin and Scott 1994 Honda 1993 Caires and Pfenning 2010 Wadler 2014 this paper Parallel operator (P | Q) Conservative extension of CLL Parallelism as hypersequents LTS semantics Transitions as proof transformations Readiness, No-Deadlocks Bisimilarity, Contextual eq. Denotational semantics Full-abstraction Kokke, Montesi, Peressotti Better Late Than Never 14
  • 57. Conclusions and future work Girard 1987 Abramsky 1994 Bellin and Scott 1994 Honda 1993 Caires and Pfenning 2010 Wadler 2014 this paper next Parallel operator (P | Q) Conservative extension of CLL Parallelism as hypersequents LTS semantics Transitions as proof transformations Readiness, No-Deadlocks Bisimilarity, Contextual eq. Denotational semantics Full-abstraction Recursion (Lindley and Morris 2016) Higher-order (Montesi 2018) Multiparty ST (Carbone et al. 2017) Kokke, Montesi, Peressotti Better Late Than Never 14
  • 58. Thanks for your attention Better Late Than Never A fully-abstract semantics for Classical Processes Wen Kokke, Fabrizio Montesi, and Marco Peressotti