Gradual Certified Programming in Coq

Éric Tanter, Nicolas Tabareau
6/13/2015
28 citations
cs.PL

Official code: tabareau/Cocasse (9 stars, Coq, last commit 2015-06-13).

Abstract

Expressive static typing disciplines are a powerful way to achieve high-quality software. However, the adoption cost of such techniques should not be under-estimated.

Show full abstract

Just like gradual typing allows for a smooth transition from dynamically-typed to statically-typed programs, it seems desirable to support a gradual path to certified programming. We explore gradual certified programming in Coq, providing the possibility to postpone the proofs of selected properties, and to check "at runtime" whether the properties actually hold. Casts can be integrated with the implicit coercion mechanism of Coq to support implicit cast insertion a la gradual typing. Additionally, when extracting Coq functions to mainstream languages, our encoding of casts supports lifting assumed properties into runtime checks. Much to our surprise, it is not necessary to extend Coq in any way to support gradual certified programming. A simple mix of type classes and axioms makes it possible to bring gradual certified programming to Coq in a straightforward manner.

View on arXivView PDF

Code Implementations(1)

tabareau/CocasseOfficial100%

A library for Gradual Certified Programming in Coq

92Coq, MakefileFeb 24, 201511 years ago

Similar Papers

Cite this paper

@article{tanter2015gradual,
  title  = {Gradual Certified Programming in Coq},
  author = {Éric Tanter and Nicolas Tabareau},
  year   = {2015},
  eprint = {1506.04205},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1506.04205}
}

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/1506.04205.svg)](https://codeofpaper.com/paper/1506.04205)

Discussion