Skip to main content
QUICK REVIEW

[Paper Review] Intersection Types for the lambda-mu Calculus

Steffen van Bakel, Franco Barbanera|arXiv (Cornell University)|Apr 2, 2017
Logic, programming, and type systemsComputer Science5 citations
TL;DR

This paper introduces an intersection type system for the $λ\mu$-calculus that is invariant under subject reduction and expansion, derived from Streicher and Reus's denotational model of continuations in $ω$-algebraic lattices via Abramsky's domain-logic approach. The system provides a filter semantics that ensures completeness with respect to continuation models and characterizes strong normalization via a restricted type system, offering an alternative proof of strong normalisation for Parigot's typed $λ\mu$-calculus.

ABSTRACT

We introduce an intersection type system for the lambda-mu calculus that is invariant under subject reduction and expansion. The system is obtained by describing Streicher and Reus's denotational model of continuations in the category of omega-algebraic lattices via Abramsky's domain-logic approach. This provides at the same time an interpretation of the type system and a proof of the completeness of the system with respect to the continuation models by means of a filter model construction. We then define a restriction of our system, such that a lambda-mu term is typeable if and only if it is strongly normalising. We also show that Parigot's typing of lambda-mu terms with classically valid propositional formulas can be translated into the restricted system, which then provides an alternative proof of strong normalisability for the typed lambda-mu calculus.

Motivation & Objective

  • To develop an intersection type system for the $λ\mu$-calculus that is invariant under subject reduction and expansion.
  • To establish a connection between the $λ\mu$-calculus and denotational models via $ω$-algebraic lattices.
  • To provide a filter semantics that ensures completeness with respect to continuation models.
  • To characterize strong normalisation through a restricted type system.
  • To offer an alternative proof of strong normalisation for Parigot’s typed $λ\mu$-calculus via type translation.

Proposed method

  • Derives the type system by interpreting Streicher and Reus’s denotational model of continuations in the category of $ω$-algebraic lattices.
  • Applies Abramsky’s domain-logic approach to construct a type system whose filters correspond to compact elements of the domain.
  • Defines a type interpretation $[\cdot]$ mapping terms to elements in the domain via valuation and continuation semantics.
  • Establishes soundness by proving that $[M] = [N]$ whenever $M =_{\beta\mu} N$ using the 'swapping continuations' equation.
  • Constructs a filter model from the type system to prove completeness with respect to the denotational model.
  • Restricts the system to identify exactly the strongly normalising $λ\mu$-terms through typeability.

Experimental results

Research questions

  • RQ1Can an intersection type system be constructed for the $λ\mu$-calculus that is invariant under subject reduction and expansion?
  • RQ2Is there a filter semantics for the $λ\mu$-calculus that provides a complete model of its denotational semantics?
  • RQ3Can the restricted type system characterize strong normalisation in the $λ\mu$-calculus?
  • RQ4Can Parigot’s classical typing system be embedded into the restricted intersection type system to yield an alternative proof of strong normalisation?
  • RQ5Is it possible to construct a type system for $λ\mu$ that is both sound and complete with respect to continuation models?

Key findings

  • The proposed intersection type system is invariant under both subject reduction and expansion, ensuring type safety under $λ\mu$-conversion.
  • The system is complete with respect to continuation models, as shown via a filter model construction based on the type pre-order.
  • A restricted version of the system characterizes strong normalisation: a $λ\mu$-term is typeable in the restricted system if and only if it is strongly normalising.
  • Parigot’s typing of $λ\mu$-terms with classically valid formulas can be translated into the restricted system, providing an alternative proof of strong normalisation.
  • The interpretation $[\cdot]$ satisfies the 'swapping continuations' equation, confirming soundness with respect to $λ\mu$-convertibility.
  • The construction demonstrates that $ω$-algebraic lattices provide a suitable semantic domain for the $λ\mu$-calculus via intersection types.

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.