arXiv Open Access 2023

Type Theory as a Language Workbench

Jan de Muijnck-Hughes Guillaume Allais Edwin Brady
Lihat Sumber

Abstrak

Language Workbenches offer language designers an expressive environment in which to create their DSLs. Similarly, research into mechanised meta-theory has shown how dependently typed languages provide expressive environments to formalise and study DSLs and their meta-theoretical properties. But can we claim that dependently typed languages qualify as language workbenches? We argue yes! We have developed an exemplar DSL called Velo that showcases not only dependently typed techniques to realise and manipulate IRs, but that dependently typed languages make fine language workbenches. Velo is a simple verified language with well-typed holes and comes with a complete compiler pipeline: parser, elaborator, REPL, evaluator, and compiler passes. Specifically, we describe our design choices for well-typed IRs design that includes support for well-typed holes, how CSE is achieved in a well-typed setting, and how the mechanised type-soundness proof for Velo is the source of the evaluator.

Topik & Kata Kunci

Penulis (3)

J

Jan de Muijnck-Hughes

G

Guillaume Allais

E

Edwin Brady

Format Sitasi

Muijnck-Hughes, J.d., Allais, G., Brady, E. (2023). Type Theory as a Language Workbench. https://arxiv.org/abs/2301.12852

Akses Cepat

Lihat di Sumber
Informasi Jurnal
Tahun Terbit
2023
Bahasa
en
Sumber Database
arXiv
Akses
Open Access ✓