Martin-Löf à la Coq - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Preprints, Working Papers, ... Year : 2024

Martin-Löf à la Coq

Abstract

We present an extensive mechanization of the metatheory of Martin-Löf Type Theory (MLTT) in the Coq proof assistant. Our development builds on pre-existing work in Agda to show not only the decidability of conversion, but also the decidability of type checking, using an approach guided by bidirectional type checking. From our proof of decidability, we obtain a certified and executable type checker for a full-fledged version of MLTT with support for Π, Σ, ℕ, and Id types, and one universe. Our development does not rely on impredicativity, induction-recursion or any axiom beyond MLTT extended with indexed inductive types and a handful of predicative universes, thus narrowing the gap between the object theory and the metatheory to a mere difference in universes. Furthermore, our formalization choices are geared towards a modular development that relies on Coq's features, e.g. universe polymorphism and metaprogramming with tactics.
Fichier principal
Vignette du fichier
main.pdf (790.15 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

hal-04214008 , version 1 (21-09-2023)
hal-04214008 , version 2 (08-01-2024)

Licence

Attribution

Identifiers

Cite

Arthur Adjedj, Meven Lennon-Bertrand, Kenji Maillard, Pierre-Marie Pédrot, Loïc Pujet. Martin-Löf à la Coq. 2024. ⟨hal-04214008v2⟩
68 View
67 Download

Altmetric

Share

Gmail Facebook X LinkedIn More