On Polymorphic Sessions and Functions: A Tale of Two (Fully Abstract) Encodings
被引:6
|
作者:
Toninho, Bernardo
论文数: 0引用数: 0
h-index: 0
机构:
NOVA LINCS, Costa da Caparica, Portugal
NOVA Sch Sci & Technol, Caparica, Portugal
Univ Nova Lisboa, Fac Ciencias & Tecnol, Dept Informat, P-2829516 Quinta Da Torre, Caparica, PortugalNOVA LINCS, Costa da Caparica, Portugal
Toninho, Bernardo
[1
,2
,4
]
Yoshida, Nobuko
论文数: 0引用数: 0
h-index: 0
机构:
Imperial Coll London, Dept Comp, 180 Queens Gate, London SW7 2AZ, EnglandNOVA LINCS, Costa da Caparica, Portugal
Yoshida, Nobuko
[3
]
机构:
[1] NOVA LINCS, Costa da Caparica, Portugal
[2] NOVA Sch Sci & Technol, Caparica, Portugal
[3] Imperial Coll London, Dept Comp, 180 Queens Gate, London SW7 2AZ, England
[4] Univ Nova Lisboa, Fac Ciencias & Tecnol, Dept Informat, P-2829516 Quinta Da Torre, Caparica, Portugal
来源:
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS
|
2021年
/
43卷
/
02期
基金:
英国工程与自然科学研究理事会;
关键词:
Session types;
pi-calculus;
system F;
linear logic;
full abstraction;
LINEAR LOGICAL RELATIONS;
EXPRESSIVENESS;
PARAMETRICITY;
PROPOSITIONS;
POLARITIES;
CALCULUS;
LIBRARY;
OCAML;
D O I:
10.1145/3457884
中图分类号:
TP31 [计算机软件];
学科分类号:
081202 ;
0835 ;
摘要:
This work exploits the logical foundation of session types to determine what kind of type discipline for the pi-calculus can exactly capture, and is captured by, lambda-calculus behaviours. Leveraging the proof theoretic content of the soundness and completeness of sequent calculus and natural deduction presentations of linear logic, we develop the first mutually inverse and fully abstract processes-as-functions and functions-as-processes encodings between a polymorphic session pi-calculus and a linear formulation of System F. We are then able to derive results of the session calculus from the theory of the lambda-calculus: (1) we obtain a characterisation of inductive and coinductive session types via their algebraic representations in System F; and (2) we extend our results to account for value and process passing, entailing strong normalisation.