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

A Toolchain to Produce Verified OCaml Libraries

Abstract : This paper presents a methodology to get correct-by-construction OCaml programs using the Why3 tool. First, a formal behavioral specification is given in the form of an OCaml module signature extended with type invariants and function contracts, in the spirit of JML. Second, an implementation is written in the programming language of Why3 and then verified with respect to the specification. Finally, an OCaml program is obtained by an automated translation. Our methodology is illustrated with the proof of a union-find library. Several other proofs of data structures and algorithms are included in the companion artifact to this paper.
Document type :
Preprints, Working Papers, ...
Complete list of metadatas

Cited literature [29 references]  Display  Hide  Download
Contributor : Jean-Christophe Filliâtre <>
Submitted on : Tuesday, January 28, 2020 - 1:28:44 PM
Last modification on : Thursday, June 4, 2020 - 6:26:02 PM
Document(s) archivé(s) le : Wednesday, April 29, 2020 - 3:11:31 PM


Files produced by the author(s)


  • HAL Id : hal-01783851, version 2


Jean-Christophe Filliâtre, Léon Gondelman, Cláudio Lourenço, Andrei Paskevich, Mário Pereira, et al.. A Toolchain to Produce Verified OCaml Libraries. 2020. ⟨hal-01783851v2⟩



Record views


Files downloads