Building a Correct-by-Construction Type Checker for a Dependently Typed Core Language

Bohdan Liesnikov*, Jesper Cockx

*Corresponding author for this work

Research output: Chapter in Book/Conference proceedings/Edited volumeConference contributionScientificpeer-review

Abstract

Dependently typed languages allow us to state a program’s expected properties and automatically check that they are satisfied at compile time. Yet the implementations of these languages are themselves just software, so can we really trust them? The goal of this paper is to develop a lightweight technique to improve their trustworthiness by giving a formal specification of the typing rules and intrinsically verifying the type checker with respect to these rules. Concretely, we apply this technique to a subset of Agda’s internal language, implemented in Agda. Our development relies on erasure annotations to separate the specification from the runtime of the type checker. We provide guidelines for making design decisions for certified core type checkers and evaluate trade-offs.
Original languageEnglish
Title of host publicationProgramming Languages and Systems
Subtitle of host publication22nd Asian Symposium, APLAS 2024, Kyoto, Japan, October 22-24, 2024, Proceedings
EditorsOleg Kiselyov
Place of PublicationSingapore
PublisherSpringer
Pages63-83
Number of pages21
ISBN (Electronic)978-981-97-8943-6
ISBN (Print)978-981-97-8942-9
DOIs
Publication statusPublished - 2025
Event22nd Asian Symposium on Programming Languages and Systems - Kyoto, Japan
Duration: 22 Oct 202424 Oct 2024
Conference number: 22

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
PublisherSpringer
Volume15194 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference22nd Asian Symposium on Programming Languages and Systems
Abbreviated titleAPLAS 2024
Country/TerritoryJapan
CityKyoto
Period22/10/2424/10/24

Bibliographical note

Green Open Access added to TU Delft Institutional Repository 'You share, we take care!' - Taverne project https://www.openaccess.nl/en/you-share-we-take-care
Otherwise as indicated in the copyright section: the publisher is the copyright holder of this work and the author uses the Dutch legislation to make this work public.

Keywords

  • Agda
  • Correct-by-Construction Programming
  • Dependent types

Fingerprint

Dive into the research topics of 'Building a Correct-by-Construction Type Checker for a Dependently Typed Core Language'. Together they form a unique fingerprint.

Cite this