Dependently Typed Languages in Statix

Master Thesis (2023)
Author(s)

J.T. Brouwer (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Contributor(s)

A Deursen – Mentor (TU Delft - Software Technology)

Jesper Cockx – Graduation committee member (TU Delft - Programming Languages)

Aron Zwaan – Mentor (TU Delft - Programming Languages)

Faculty
Electrical Engineering, Mathematics and Computer Science
Copyright
© 2023 Jonathan Brouwer
More Info
expand_more
Publication Year
2023
Language
English
Copyright
© 2023 Jonathan Brouwer
Graduation Date
26-04-2023
Awarding Institution
Delft University of Technology
Programme
['Computer Science']
Faculty
Electrical Engineering, Mathematics and Computer Science
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

Static type systems can greatly enhance the quality of programs, but implementing a type checker for them is challenging and error-prone. The Statix meta-language (part of the Spoofax language workbench) aims to make this task easier by automatically deriving a type checker from a declarative specification of the type system. However, so far Statix has not been used to implement a type system with dependent types, an expressive class of type systems which require evaluation of terms during type checking.

In this thesis, we present a specification of a simple dependently typed language in Statix, and discuss how to extend it with several common features such as inductive data types, universes, and inference of implicit arguments. While we encountered some challenges in the implementation, our conclusion is that Statix is already usable as a tool for implementing dependent types.

Files

Document.pdf
(pdf | 0.333 Mb)
License info not available