Generating certified code from Formal Proofs: a case study in Homological Algebra
- Aransay, J. 1
- Ballarin, C. 2
- Rubio, J. 1
-
1
Universidad de La Rioja
info
-
2
Technical University Munich
info
ISSN: 0934-5043
Año de publicación: 2010
Volumen: 22
Número: 2
Páginas: 193-213
Tipo: Artículo
beta Ver similares en nube de resultadosOtras publicaciones en: Formal Aspects of Computing
Proyectos relacionados
Resumen
We apply current theoremproving technology to certified code in the domain of abstract algebra. More concretely, based on a formal proof of the Basic Perturbation Lemma (a central result in homological algebra) in the prover Isabelle/HOL, we apply various code generation techniques, which lead to certified implementations of the associated algorithm inML. In the formal proof, algebraic structures occurring in the Basic Perturbation Lemma are represented in a way, which is not directly amenable to code generation with the available tools. Interestingly, this representation is required in the proof, while for the algorithm simpler data structures are sufficient. Our approach is to establish a link between the non-executable setting of the proof and the executable representation in the algorithm, which is to be generated. This correspondence is established within the logical framework of Isabelle/HOL-that is, it is formally proved correct. The generated code is applied to and illustrated with a number of examples. BCS © 2009.