The Rewster: Type Preserving Rewrite Rules for the Coq Proof Assistant - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Pré-Publication, Document De Travail Année : 2024

The Rewster: Type Preserving Rewrite Rules for the Coq Proof Assistant

Résumé

In dependently typed proof assistants, users can declare axioms to extend the ambient logic locally with new principles and propositional equalities governing them. Additionally, rewrite rules have recently been proposed to allow users to extend the logic with new definitional equalities, enabling them to handle new principles with a computational behaviour. While axioms can only break consistency, the addition of arbitrary rewrite rules can break other important metatheoretical properties such as type preservation. In this paper, we present an implementation of rewrite rules on top of the Coq proof assistant, together with a modular criterion to ensure that the added rewrite rules preserve typing. This criterion, based on bidirectional type checking, is formally expressed in PCUIC --- the type theory of Coq recently developed in the MetaCoq project.
Fichier principal
Vignette du fichier
RewriteRules.pdf (715.23 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Licence : CC BY - Paternité

Dates et versions

hal-04511667 , version 1 (19-03-2024)

Licence

Paternité

Identifiants

  • HAL Id : hal-04511667 , version 1

Citer

Yann Leray, Gaëtan Gilbert, Nicolas Tabareau, Théo Winterhalter. The Rewster: Type Preserving Rewrite Rules for the Coq Proof Assistant. 2024. ⟨hal-04511667⟩
14 Consultations
6 Téléchargements

Partager

Gmail Facebook X LinkedIn More