T201 : The Oracle of Haskell

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

Does this Haskell function cover all possible inputs?

Are there any x such that “not (x < 0) and not (x >= 0)”?

Our current oracle is just a placeholder that always answers: “it may be possible”. This is safe but not incredibly useful. 

Aim:

Design and implement a proper oracle for reasoning about guards. 

Possible research questions:

How can we make the oracle smart enough to reason effectively about guards?

What is the trade­off between reasoning power and compilation time?

Can we make the compiler smart enough to improve the warnings for production code? 

Approach:

Literature and study of relevant parts of GHC

Design and implement your oracle

Evaluate your implementation on widely used Haskell libraries 

Relevant literature:

“Warnings for pattern matching”. Luc Maranget

“GADTs meet their match: Pattern­matching warnings that account for GADTs, guards, and laziness”. Georgios Karachalias, Tom Schrijvers, Dimitrios Vytiniotis, Simon Peyton Jones.

“Zeno: An automated prover for properties of recursive data structures”. W. Sonnex, S. Drossopoulou, and S. Eisenbach 

Student profile:

Haskell enthusiast

Likes to turn theory into practice

Fascinated by compilers and language reasoning 

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