[Paper Review] On Polymorphic Sessions and Functions: A Tale of Two (Fully Abstract) Encodings
This paper presents the first mutually inverse and fully abstract encodings between a polymorphic session-typed π-calculus and a linear formulation of System F, leveraging proof-theoretic duality in second-order intuitionistic linear logic. The key contribution is a logically grounded correspondence that enables transfer of properties like strong normalization and algebraic representations of inductive/coinductive types from λ-calculus to session calculus.
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.
Motivation & Objective
- To establish a precise, fully abstract correspondence between higher-order processes in a polymorphic session π-calculus and functions in a linear System F.
- To resolve the semantic mismatch between π-calculus and λ-calculus by exploiting the proof-theoretic duality of sequent calculus and natural deduction in second-order linear logic.
- To derive properties of session types—such as inductive and coinductive structures—from established results in the λ-calculus via fully abstract encodings.
- To extend the encodings to support both term and process passing, proving strong normalization and full abstraction in higher-order session calculi.
Proposed method
- Develops a functions-as-processes encoding from Linear-F into the polymorphic session π-calculus (Polyπ), using the sequent calculus presentation of second-order linear logic.
- Constructs a reverse processes-as-functions encoding from Polyπ into Linear-F, based on the completeness of sequent calculus relative to natural deduction.
- Establishes mutual invertibility and full abstraction of the encodings using typed observational congruence, ensuring behavioral equivalence is preserved in both directions.
- Leverages the representation of initial F-algebras and final F-coalgebras in System F to derive algebraic characterizations of inductive and coinductive session types in Polyπ.
- Extends the encodings to handle higher-order process passing by incorporating term and process passing mechanisms, adapting the encoding to first-order session calculi.
- Uses strong normalization of β-reduction in System F to prove strong normalization of the higher-order session calculus via the encoding.
Experimental results
Research questions
- RQ1Can a fully abstract and mutually inverse encoding be established between a polymorphic session π-calculus and a linear System F?
- RQ2How can the proof-theoretic duality between sequent calculus and natural deduction in second-order linear logic be used to define such encodings?
- RQ3Can inductive and coinductive session types be characterized via algebraic structures (F-algebras and F-coalgebras) in the λ-calculus and lifted to the session calculus?
- RQ4Can the encodings be extended to support higher-order process and term passing while preserving full abstraction and strong normalization?
- RQ5What logical and type-theoretic principles underlie the behavioral correspondence between functional and concurrent computation in session-based systems?
Key findings
- The functions-as-processes and processes-as-functions encodings are mutually inverse and fully abstract with respect to typed observational congruence, establishing a precise behavioral correspondence.
- Inductive and coinductive session types are characterized via the encoding of initial and final F-(co)algebras in System F, providing logical foundations for recursive and corecursive session types.
- The encodings naturally extend to a session calculus supporting both term and process passing, enabling fully abstract embeddings of higher-order processes into first-order session calculi.
- Strong normalization of the higher-order session calculus is derived as a direct consequence of strong normalization in System F, via the fully abstract encoding.
- The approach provides a logically motivated foundation for session types by linking them to the proof theory of second-order linear logic, generalizing prior work on propositions-as-types.
- The results demonstrate that session calculi exhibit 'don't care' non-determinism, aligning with logical harmony and avoiding the complexities of 'don't know' non-determinism.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.