On Polymorphic Sessions and Functions: A Tale of Two (Fully Abstract) Encodings

被引:6
|
作者
Toninho, Bernardo [1 ,2 ,4 ]
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.
引用
收藏
页数:55
相关论文
共 2 条
  • [1] Fully Abstract Encodings of λ-Calculus in HOcore through Abstract Machines
    Biernacka, Malgorzata
    Biernacki, Dariusz
    Lenglet, Serguei
    Polesiuk, Piotr
    Pous, Damien
    Schmitt, Alan
    2017 32ND ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS), 2017,
  • [2] FULLY ABSTRACT ENCODINGS OF A-CALCULUS IN HOcore THROUGH ABSTRACT MACHINES
    Biernacka, Malgorzata
    Biernacki, Dariusz
    Lenglet, Serguei
    Polesiuk, Piotr
    Pous, Damien
    Schmitt, Alan
    LOGICAL METHODS IN COMPUTER SCIENCE, 2024, 20 (03)