T203 : Type Inference for Free

Supervision:
Contact person: Tom Schrijvers
Supervisor(s): Tom Schrijvers
Daily advisor(s): Tom Schrijvers
Research group:
Declarative Languages and Artificial Intelligence
Context:

The static type system of industrial-strength programming languages is indispensable for catching many programming bugs early on in the development process.

Unfortunately, outfitting a new language with a static type system,  or modifying an existing one, is usually a very labor-intensive and complicated endeavour. The reason is that two different artefacts not to be created, studied and synchronised: a high-level declarative definition of the type system that makes it easy to understand what programs are well-typed, and a type checking/inference algorithm that checks wether a given program is well-typed and that infers the necessary missing type information in the process. 

Aim:

In this project we want to leverage the burden of the type system designer by automatically deriving the algorithmic definition of the type inferencer from the declarative specification of the type system.

Possible research questions:
  • How does one automatically derive a type inference algorithm from a declarative specification?

  • Can we automatically detect problems with the algorithmic formulation, such as undecidability or ambiguity, to help the designer?

Approach:
  • Study the declarative and algorithmic approaches to formulating a type system.

  • Study the literature on the systematic derivation of algorithmic rules from declarative formulations.

  • Iteratively design, implement and evaluate an automatic derivation approach.

  • Develop a few case studies.

Relevant literature:
  • http://popl-obt-2014.cs.brown.edu/papers/inference.pdf

  • http://www.sciencedirect.com/science/article/pii/074310669390047K

  • http://liris.cnrs.fr/~crigotti/_downloads/tocl04.pdf

Student profile:
  • Interested in declarative languages and approaches.

  • Interested in theory and practice of programming languages.

  • Wants to make a research contribution that bridges theory and practice, and possibly a follow-up PhD.

  • Self-motivated, responsible and hard-working.

This topic is for 1 student(s).

This topic can be selected by

  • all Master in de Ingenieurswetenschappen: Computerwetenschappen (ir) students
  • all Master of Engineering: Computer Science students

Clusters, in which this topic appears:
  • Programming Languages
18-07-2008