License: Creative Commons Attribution 4.0 International license (CC BY 4.0)
When quoting this document, please refer to the following
DOI: 10.4230/OASIcs.EVCS.2023.6
URN: urn:nbn:de:0030-drops-177769
URL: http://dagstuhl.sunsite.rwth-aachen.de/volltexte/2023/17776/
Brouwer, Jonathan ;
Cockx, Jesper ;
Zwaan, Aron
Dependently Typed Languages in Statix
Abstract
Static type systems can greatly enhance the quality of programs, but implementing a type checker that is both expressive and user-friendly 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 a type system. However, so far Statix has not been used to implement dependent types, which is a class of type systems which require evaluation of terms during type checking. In this paper, we present an implementation 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.
BibTeX - Entry
@InProceedings{brouwer_et_al:OASIcs.EVCS.2023.6,
author = {Brouwer, Jonathan and Cockx, Jesper and Zwaan, Aron},
title = {{Dependently Typed Languages in Statix}},
booktitle = {Eelco Visser Commemorative Symposium (EVCS 2023)},
pages = {6:1--6:8},
series = {Open Access Series in Informatics (OASIcs)},
ISBN = {978-3-95977-267-9},
ISSN = {2190-6807},
year = {2023},
volume = {109},
editor = {L\"{a}mmel, Ralf and Mosses, Peter D. and Steimann, Friedrich},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/opus/volltexte/2023/17776},
URN = {urn:nbn:de:0030-drops-177769},
doi = {10.4230/OASIcs.EVCS.2023.6},
annote = {Keywords: Spoofax, Statix, Dependent Types, Scope Graphs, Calculus of Constructions}
}
Keywords: |
|
Spoofax, Statix, Dependent Types, Scope Graphs, Calculus of Constructions |
Collection: |
|
Eelco Visser Commemorative Symposium (EVCS 2023) |
Issue Date: |
|
2023 |
Date of publication: |
|
21.03.2023 |
Supplementary Material: |
|
Software (Source Code): https://doi.org/10.5281/zenodo.7541014 |