Proof Pearl: Faithful Computation and Extraction of µ-Recursive Algorithms in Coq - INRIA - Institut National de Recherche en Informatique et en Automatique Accéder directement au contenu
Communication Dans Un Congrès Année : 2023

Proof Pearl: Faithful Computation and Extraction of µ-Recursive Algorithms in Coq

Jean-François Monin
  • Fonction : Auteur
  • PersonId : 1090521

Résumé

Basing on an original Coq implementation of unbounded linear search for partially decidable predicates, we study the computational contents of µ-recursive functions via their syntactic representation, and a correct by construction Coq interpreter for this abstract syntax. When this interpreter is extracted, we claim the resulting OCaml code to be the natural combination of the implementation of the µ-recursive schemes of composition, primitive recursion and unbounded minimization of partial (i.e., possibly non-terminating) functions. At the level of the fully specified Coq terms, this implies the representation of higher-order functions of which some of the arguments are themselves partial functions. We handle this issue using some techniques coming from the Braga method. Hence we get a faithful embedding of µ-recursive algorithms into Coq preserving not only their extensional meaning but also their intended computational behavior. We put a strong focus on the quality of the Coq artifact which is both self contained and with a line of code count of less than 1k in total.
Fichier principal
Vignette du fichier
itp23-murec.pdf (673.14 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
licence : CC BY - Paternité

Dates et versions

hal-04200527 , version 1 (08-09-2023)

Licence

Paternité

Identifiants

Citer

Dominique Larchey-Wendling, Jean-François Monin. Proof Pearl: Faithful Computation and Extraction of µ-Recursive Algorithms in Coq. 14th International Conference on Interactive Theorem Proving (ITP 2023), Adam Naumowicz; René Thiemann, Jul 2023, Białystok, Poland. pp.21:1--17, ⟨10.4230/LIPIcs.ITP.2023.21⟩. ⟨hal-04200527⟩
34 Consultations
11 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More