A Monadic, Functional Implementation of Real Numbers
arXiv:cs/0605058 · doi:10.1017/S0960129506005871
Abstract
Large scale real number computation is an essential ingredient in several modern mathematical proofs. Because such lengthy computations cannot be verified by hand, some mathematicians want to use software proof assistants to verify the correctness of these proofs. This paper develops a new implementation of the constructive real numbers and elementary functions for such proofs by using the monad properties of the completion operation on metric spaces. Bishop and Bridges's notion of regular sequences is generalized to, what I call, regular functions which form the completion of any metric space. Using the monad operations, continuous functions on length spaces (a common subclass of metric spaces) are created by lifting continuous functions on the original space. A prototype Haskell implementation has been created. I believe that this approach yields a real number library that is reasonably efficient for computation, and still simple enough to easily verify its correctness.
This paper is to appear in an upcoming issue of Mathematical Structures in Computer Science published by Cambridge University Press. For more information and the latest source code for Few Digits, see <http://r6.ca/FewDigits/>
References in corpus (1)
Cited by in corpus (6)
- Certified Exact Transcendental Real Number Computation in Coq
- Type classes for efficient exact real arithmetic in Coq
- A computer verified, monadic, functional implementation of the integral
- Topological Quantum Gates in Homotopy Type Theory
- Formalising Real Numbers in Homotopy Type Theory
- Extracting efficient exact real number computation from proofs in constructive type theory