Skip to main content
QUICK REVIEW

[Paper Review] Functions as proofs as processes

Emmanuel Beffara|arXiv (Cornell University)|Jul 21, 2011
Logic, programming, and type systemsComputer Science12 references6 citations
TL;DR

This paper presents a type-theoretic framework that embeds the $λ$- and $λ\mu$-calculi into a symmetric, linear $π$-calculus using a novel type system grounded in linear logic with arities. It establishes type-preserving, fully abstract translations for both call-by-name and call-by-value strategies, with realisability semantics ensuring soundness and enabling type-safe extensions of functional calculi.

ABSTRACT

This paper presents a logical approach to the translation of functional calculi into concurrent process calculi. The starting point is a type system for the π-calculus closely related to linear logic. Decompositions of intuitionistic and classical logics into this system provide type-preserving translations of the λ- and λμ-calculus, both for call-by-name and call-by-value evaluation strategies. Previously known encodings of the \lam-calculus are shown to correspond to particular cases of this logical embedding. The realisability interpretation of types in the π-calculus provides systematic soundness arguments for these translations and allows for the definition of type-safe extensions of functional calculi.

Motivation & Objective

  • To formalize a logical bridge between functional computation (via $λ$- and $λ\mu$-calculi) and concurrent computation (via a symmetric $π$-calculus) using type theory.
  • To extend the proofs-as-processes paradigm by introducing a type system for the $π$-calculus based on linear logic with arities, enabling precise encodings of functional languages.
  • To provide a uniform, type-preserving translation of both call-by-name and call-by-value evaluation strategies in the $λ$- and $λ\mu$-calculi into the $π$-calculus.
  • To establish soundness of these translations via a realisability interpretation that validates type safety and enables semantic reasoning about execution models.
  • To demonstrate that the framework supports type-safe extensions of functional calculi by leveraging the realisability construction for new language constructs.

Proposed method

  • The paper introduces a modified $π$-calculus, denoted $\pi^{\mathord{=}}$-calculus, with binding input/output, explicit name unification, and guarded replication to support fine-grained operational correspondence.
  • A type system for the $\pi^{\mathord{=}}$-calculus is defined using linear logic with arities, where each type variable is assigned a fixed arity, and connectives like $\otimes$, $\bindnasrepma$, $\textup{\textvisrodownarrow}$, $\textup{\textvisrouparrow}$, $!$, $?$, $\exists$, and $\forall$ are assigned arities based on their components.
  • The translation of functional types into the $\pi^{\mathord{=}}$-calculus is defined via a type isomorphism: $(A \to B)^* = \textup{\textvisrodownarrow} A^* \bindnasrepma \textup{\textvisrodownarrow} B^*$, preserving polymorphism and duality.
  • The translation of terms is defined recursively: for example, $\llbracket (M,N) \rrbracket^{\gamma\delta}u := \delta u(xy). (\delta'x(v).\llbracket M \rrbracket^{\gamma\delta}v \mid \delta'y(w).\llbracket N \rrbracket^{\gamma\delta}w)$, modeling parallel evaluation in call-by-value.
  • The realisability interpretation assigns to each type $A$ a set of processes $\llbracket A \rrbracket$ such that $p \in \llbracket A \rrbracket$ iff $p$ satisfies the type's behavioral constraints, ensuring soundness of the translations.
  • Subtyping is defined via the complete lattice of behaviors, with $A \leq B$ iff $\llbracket A \rrbracket \subseteq \llbracket B \rrbracket$, and extended to type constructors like $\land$, $\lor$, $\mu X.A$, and $\nu X.A$ using duality and fixpoint semantics.

Experimental results

Research questions

  • RQ1How can the $\lambda$- and $\lambda\mu$-calculi be uniformly translated into a concurrent process calculus while preserving types and evaluation strategies?
  • RQ2What role does the arity assignment in linear logic play in enabling polymorphic and symmetric encodings of functional types in the $\pi$-calculus?
  • RQ3Can the realisability interpretation of types in the $\pi$-calculus serve as a semantic foundation for proving soundness of functional translations and guiding type-safe extensions?
  • RQ4How do call-by-name and call-by-value strategies emerge as dual instances within the same type-theoretic framework?
  • RQ5What is the significance of fixpoints and subtyping in the $\pi$-calculus type system for extending functional calculi with new constructs while preserving type safety?

Key findings

  • The paper establishes a type-preserving, fully abstract translation of the $\lambda$-calculus into the $\pi^{\mathord{=}}$-calculus, with both call-by-name and call-by-value strategies captured as dual instances of the same framework.
  • The translation of sum types $A_1 + A_2$ is given by $\textup{\textvisrodownarrow} \gamma A^* \oplus \textup{\textvisrodownarrow} \gamma B^*$, preserving polymorphism and enabling correct handling of pattern matching.
  • The realisability interpretation ensures that every well-typed process in the $\pi^{\mathord{=}}$-calculus corresponds to a valid behavioral implementation, providing a soundness proof for the translations.
  • Subtyping in the $\pi^{\mathord{=}}$-calculus is defined via inclusion of realisability sets, with $A \leq B$ iff $\llbracket A \rrbracket \subseteq \llbracket B \rrbracket$, and this relation is preserved under translation.
  • The framework supports the addition of fixpoints ($\mu X.A$, $\nu X.A$) in types, with $\llbracket \mu X.A \rrbracket^* = \mu X.(A^*)$, enabling recursive types and extending the calculus with new constructs in a type-safe way.
  • The approach generalizes previously known encodings of the $\lambda$-calculus into the $\pi$-calculus as special cases of the proposed logical embedding, unifying them under a single type-theoretic foundation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.