Certification of Insert-Sort and Merge-Sort in Coq
We present the formalization and the automated verification of the list sorting algorithms Insert-Sort and Merge-Sort in the Coq system and we compare it with the formalization and verification of the same algorithms in the Theorema system, which have been performed in our previous work. This represents a case study in verification of complex al-gorithms, sorting being particularly important because it plays a crucial role in various applications that handle large data amounts, as for instance in environmental modelling and re-search. This is part of our research on using Automated Rea-soning - one of the oldest and most important field of Artificial Intelligence - for formal verification of complex systems, whose safe behaviour must be insured, as for instance in robotic systems that interact with people. Concretely, the specification of correctness of these two al-gorithms, as well as the definition of the algorithms are very similar in the two systems, however the proof styles and the number of necessary lemmas are quite different. Coq needs more lemmas and the proof is constructed via a proof script, and the necessary domain properties are imported from Coq libraries. In Theorema the proof is based on domain-specific inferences and strategies, is presented in natural style, and most of the domain specific properties are embedded in the inference rules and proof strategies. However the Theorema system is in principle error prone, because there is no requirement for algorithm termination, for the consistency of inference rules, and for the proof of the properties. In contrast, in Coq everything is rigorously checked, thus it is guarantied to be correct.
Authors
- Isabela Drămnesc (ORCID: https://orcid.org/0000-0003-4686-2864)
- Tudor Jebelean (ORCID: https://orcid.org/0000-0002-2247-2151)
- Sorin Stratulat (ORCID: https://orcid.org/0000-0002-1670-9474)
Institutions
- Centre National de la Recherche Scientifique (FR)
- West University of Timişoara (RO)
- Laboratoire Lorrain de Recherche en Informatique et ses Applications (FR)
- Université de Lorraine (FR)
Publication Details
- Published
- 2024-11-04
- DOI
- https://doi.org/10.1109/iceccme62383.2024.10796722
- Primary Topic
- Metallurgy and Material Science
- Type
- article
- Field-Weighted Citation Impact
- 0.00