Skip to Main content Skip to Navigation
Preprints, Working Papers, ...

Hierarchy Builder: algebraic hierarchies made easy in Coq with Elpi

Abstract : It is nowadays customary to organize libraries of machine checked proofs around hierarchies of algebraic structures [2, 6, 8, 16, 18, 23, 27]. One influential example is the Mathematical Components library on top of which the long and intricate proof of the Odd Order Theorem could be fully formalized [14]. Still, building algebraic hierarchies in a proof assistant such as Coq [9] requires a lot of manual labor and often a deep expertise in the internals of the prover [13, 17]. Moreover, according to our experience [26], making a hierarchy evolve without causing breakage in client code is equally tricky: even a simple refactoring such as splitting a structure into two simpler ones is hard to get right. In this paper we describe HB, a high level language to build hierarchies of algebraic structures and to make these hierarchies evolve without breaking user code. The key concepts are the ones of factory, builder and abbreviation that let the hierarchy developer describe an actual interface for their library. Behind that interface the developer can provide appropriate code to ensure retro compatibility. We implement the HB language in the hierarchy-builder addon for the Coq system using the Elpi [11, 28] extension language.
Complete list of metadatas

Cited literature [26 references]  Display  Hide  Download

https://hal.inria.fr/hal-02478907
Contributor : Cyril Cohen <>
Submitted on : Wednesday, May 6, 2020 - 12:38:48 PM
Last modification on : Tuesday, May 26, 2020 - 6:50:59 PM

File

hb.pdf
Files produced by the author(s)

Identifiers

  • HAL Id : hal-02478907, version 5

Collections

Citation

Cyril Cohen, Kazuhiko Sakaguchi, Enrico Tassi. Hierarchy Builder: algebraic hierarchies made easy in Coq with Elpi. 2020. ⟨hal-02478907v5⟩

Share

Metrics

Record views

166

Files downloads

275