Capítulo de livro Acesso aberto Produção Nacional Revisado por pares

GOSPEL—Providing OCaml with a Formal Specification Language

2019; Springer Science+Business Media; Linguagem: Inglês

10.1007/978-3-030-30942-8_29

ISSN

1611-3349

Autores

Arthur Charguéraud, Jean-Christophe Filliâtre, Cláudio Belo Lourenço, Mário Pereira,

Tópico(s)

Formal Methods in Verification

Resumo

This paper introduces GOSPEL, a behavioral specification language for OCaml. It is designed to enable modular verification of data structures and algorithms. GOSPEL is a contract-based, strongly typed language, with a formal semantics defined by means of translation into Separation Logic. Compared with writing specifications directly in Separation Logic, GOSPEL provides a high-level syntax that greatly improves conciseness and makes it accessible to programmers with no familiarity with Separation Logic. Although GOSPEL has been developed for specifying OCaml code, we believe that many aspects of its design could apply to other programming languages. This paper presents the design and semantics of GOSPEL, and reports on its application for the development of a formally verified library of general-purpose OCaml data structures.

Referência(s)