Leroy and Blazy Were Right: Their Memory Model Soundness Proof is Automatable

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Xavier Leroy and Sandrine Blazy in 2007 conducted a formal verification, using the Coq proof assistant, of a memory model for low-level imperative languages such as C. Considering their formalization was performed essentially in first-order logic, one question left open by the authors was whether their proofs could be automated using a verification framework for first-order logic. We took the challenge and automated their formalization using Why3, significantly reducing the proof effort. We systematically followed the Coq proofs and realized that in many cases at around one third of the way Why3 was able to discharge all VCs. Furthermore, the proofs still requiring interactions (e.g. induction, witnesses for existential proofs, assertions) were factorized isolating auxiliary results that we stated explicitly. In this way, we achieved an almost-automatic soundness and safety proof of the memory model. Nonetheless, our development allows an extraction of a correct-by-construction concrete memory model, going thus further than the preliminary Why version of Leroy and Blazy.

Original languageEnglish
Title of host publicationVerified Software. Theories, Tools and Experiments.
Subtitle of host publication14th International Conference, VSTTE 2022, Trento, Italy, October 17–18, 2022, Revised Selected Papers
EditorsAkash Lal, Stefano Tonetta
Place of PublicationCham
PublisherSpringer
Pages20-32
Number of pages13
ISBN (Electronic)978-3-031-25803-9
ISBN (Print)978-3-031-25802-2
DOIs
Publication statusPublished - 1 Feb 2023
Event14th International Conference on Verified Software. Theories, Tools and Experiments, VSTTE 2022 - Trento, Italy
Duration: 17 Oct 202218 Oct 2022

Publication series

NameLecture Notes in Computer Science
PublisherSpringer
Volume13800
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference14th International Conference on Verified Software. Theories, Tools and Experiments, VSTTE 2022
Country/TerritoryItaly
CityTrento
Period17/10/2218/10/22

Keywords

  • C memory model
  • Formal proof
  • Theorem proving
  • Why3

Fingerprint

Dive into the research topics of 'Leroy and Blazy Were Right: Their Memory Model Soundness Proof is Automatable'. Together they form a unique fingerprint.

Cite this