Sikkel: Multimode Simple Type Theory as an Agda Library

Joris Ceulemans, Andreas Nuyts, Dominique Devriese
7/2/2022
cs.PLcs.LO

Official code: JorisCeulemans/sikkel (22 stars, Agda, MIT, last commit 2024-09-18).

Abstract

Many variants of type theory extend a basic theory with additional primitives or properties like univalence, guarded recursion or parametricity, to enable constructions or proofs that would be harder or impossible to do in the original theory. However, implementing such extended type theories (either from scratch or by modifying an existing implementation) is a big hurdle for their wider adoption.

Show full abstract

In this paper we present Sikkel, a library in the dependently typed programming language Agda that allows users to program in extended type theories. It uses a deeply embedded language that can be easily extended with additional type and term constructors, thus supporting a wide variety of type theories. Moreover, Sikkel has a type checker that is sound by construction in the sense that all well-typed programs are automatically translated to their semantics in a shallow embedding based on presheaf models. Additionally, our model supports combining different base categories by using modalities to transport definitions between them. This enables in particular a general approach for extracting definitions to the meta-level, so that we can use the extended type theories to define regular Agda functions and prove properties of them. In this paper, we demonstrate Sikkel theories with guarded recursion and parametricity, but other extensions can be easily plugged in. For now, Sikkel supports only simple type theories but its model already anticipates the future addition of dependent types and a universe.

View on arXivView PDF

Code Implementations(1)

MIT

Multimode simple type theory as an Agda library.

221AgdaMar 4, 20202 years agoMIT

Similar Papers

Cite this paper

@article{ceulemans2022sikkel,
  title  = {Sikkel: Multimode Simple Type Theory as an Agda Library},
  author = {Joris Ceulemans and Andreas Nuyts and Dominique Devriese},
  year   = {2022},
  eprint = {2207.00843},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2207.00843}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2207.00843.svg)](https://codeofpaper.com/paper/2207.00843)

Discussion