Skip to main content
×
Home
    • Aa
    • Aa
  • Get access
    Check if you have access via personal or institutional login
  • Cited by 3
  • Cited by
    This article has been cited by the following publications. This list is generated based on data provided by CrossRef.

    Boldo, Sylvie Lelay, Catherine and Melquiond, Guillaume 2015. Coquelicot: A User-Friendly Library of Real Analysis for Coq. Mathematics in Computer Science, Vol. 9, Issue. 1, p. 41.


    BERTOT, YVES GUILHOT, FRÉDÉRIQUE and MAHBOUBI, ASSIA 2011. A formal study of Bernstein coefficients and polynomials. Mathematical Structures in Computer Science, Vol. 21, Issue. 04, p. 731.


    O’Connor, Russell and Spitters, Bas 2010. A computer-verified monadic functional implementation of the integral. Theoretical Computer Science, Vol. 411, Issue. 37, p. 3386.


    ×
  • Mathematical Structures in Computer Science, Volume 17, Issue 1
  • February 2007, pp. 129-159

A monadic, functional implementation of real numbers

  • RUSSELL ÓCONNOR (a1)
  • DOI: http://dx.doi.org/10.1017/S0960129506005871
  • Published online: 01 February 2007
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 (Bishop and Bridges 1985) of regular sequences is generalised to what I call regular functions, which form the completion of any metric space. Using the monad operations, continuous functions on length spaces (which are 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 verify its correctness easily.

Copyright
Linked references
Hide All

This list contains references from the content that can be linked to their source. For a full set of references and notes please see the PDF or HTML where available.

E. Bishop and D. Bridges (1985) Constructive Analysis. Grundlehren der mathematischen Wissenschaften 279, Springer-Verlag

H.-J. Boehm , R. Cartwright , M. Riggle and M. J. O'Donnell (1986) Exact real arithmetic: a case study in higher order programming. In: LFP '86: Proceedings of the 1986 ACM conference on LISP and functional programming, ACM Press162173.

D. Burago , Y. Burago and S. Ivanov (2001) A Course in Metric Geometry, Graduate Studies in Mathematics 33, American Mathematical Society.

L. Cruz-Filipe (2003) A constructive formalization of the fundamental theorem of calculus. In: Geuvers, H. and Wiedijk, F. (eds.) Types for Proofs and Programs. Springer-Verlag Lecture Notes in Computer Science 2646 108126.

D. Lester and P. Gowland (2002) Using PVS to validate the algorithms of an exact arithmetic. Theoretical Computer Science 291 (2) 203218.

E. Moggi (1991) Notions of computation and monads. Information and Computation 93 (1) 5592.

Recommend this journal

Email your librarian or administrator to recommend adding this journal to your organisation's collection.

Mathematical Structures in Computer Science
  • ISSN: 0960-1295
  • EISSN: 1469-8072
  • URL: /core/journals/mathematical-structures-in-computer-science
Please enter your name
Please enter a valid email address
Who would you like to send this to? *
×