Computer certified efficient exact reals in Coq

Robbert Krebbers, Bas Spitters
5/13/2011
20 citations
cs.LO

Official code: rocq-community/math-classes (167 stars, Rocq Prover, MIT, last commit 2026-11-04).

Abstract

Floating point operations are fast, but require continuous effort on the part of the user in order to ensure that the results are correct. This burden can be shifted away from the user by providing a library of exact analysis in which the computer handles the error estimates.

Show full abstract

We provide an implementation of the exact real numbers in the Coq proof assistant. This improves on the earlier Coq-implementation by O'Connor in two ways: we use dyadic rationals built from the machine integers and we optimize computation of power series by using approximate division. Moreover, we use type classes for clean mathematical interfaces. This appears to be the first time that type classes are used in heavy computation. We obtain over a 100 times speed up of the basic operations and indications for improving the Coq system.

View on arXivView PDF

Code Implementations(1)

MIT

A library of abstract interfaces for mathematical structures in Coq [maintainer=@spitters,@Lysxia]

16742Rocq Prover, PythonMay 13, 20113 weeks agoMIT
coqcoq-cicoq-librarycoq-platformmathematics+1 more

Similar Papers

Cite this paper

@article{krebbers2011computer,
  title  = {Computer certified efficient exact reals in Coq},
  author = {Robbert Krebbers and Bas Spitters},
  year   = {2011},
  eprint = {1105.2751},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1105.2751}
}

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

Discussion