Leroy and Blazy were right: their memory model soundness proof is automatable (Extended Version)

Pedro Barroso, Mário Pereira, António Ravara
12/5/2022
cs.LOcs.PL

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{barroso2022leroy,
  title  = {Leroy and Blazy were right: their memory model soundness proof is automatable (Extended Version)},
  author = {Pedro Barroso and Mário Pereira and António Ravara},
  year   = {2022},
  eprint = {2212.02425},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.02425}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.02425.svg)](https://codeofpaper.com/paper/2212.02425)

Discussion