skip to main content
10.1145/2676724.2693172acmconferencesArticle/Chapter ViewAbstractPublication PagespoplConference Proceedingsconference-collections
research-article

Fixed Precision Patterns for the Formal Verification of Mathematical Constant Approximations

Published: 13 January 2015 Publication History

Abstract

We describe two approaches for the computation of mathematical constant approximations inside interactive theorem provers. These two approaches share the same basis of fixed point computation and differ only in the way the proofs of correctness of the approximations are described. The first approach performs interval computations, while the second approach relies on bounding errors, for example with the help of derivatives. As an illustration, we show how to describe good approximations of the logarithm function and we compute -- to a precision of a million decimals inside the proof system, with a guarantee that all digits up to the millionth decimal are correct. All these experiments are performed with the Coq system, but most of the steps should apply to any interactive theorem prover.

References

[1]
Michaël Armand, Benjamin Grégoire, Arnaud Spiwack, and Laurent Théry. Extending Coq with Imperative Features and its Application to SAT Verification. In Matt Kaufmann and Lawrence C. Paulson, editors, Interactive Theorem Proving, First International Conference, ITP 2010, volume 6172 of LNCS, pages 83--98. Springer, 2010.
[2]
Yves Bertot and Pierre Castéran. Interactive Theorem Proving and Program Development, Coq'Art:the Calculus of Inductive Constructions. Springer-Verlag, 2004.
[3]
Yves Bertot, Nicolas Magaud, and Paul Zimmermann. A proof of GMP square root. Journal of Automated Reasoning, 29:225--252, 2002.
[4]
Frédéric Besson. Fast reflexive arithmetic tactics the linear case and beyond. In Thorsten Altenkirch and Conor McBride, editors, Types for Proofs and Programs, International Workshop, TYPES 2006, Nottingham, UK, April 18--21, 2006, Revised Selected Papers, volume 4502 of LNCS, pages 48--62. Springer, 2006.
[5]
Frédéric Besson, Pierre-Emmanuel Cornilleau, and David Pichardie. Modular SMT Proofs for Fast Reflexive Checking Inside Coq. In Jean-Pierre Jouannaud and Zhong Shao, editors, Certified Programs and Proofs - First International Conference, CPP, volume 7086 of LNCS, pages 151--166. Springer, 2011.
[6]
Jonathan M. Borwein and Peter B. Borwein. Pi and the AGM. Wiley Interscience, 1987.
[7]
Richard P. Brent. Fast Multiple-Precision Evaluation of Elementary Functions. Journal of the Association of Computation Machinery, 23:242--251, 1976.
[8]
Marc Daumas, David R. Lester, and César Muñoz. Verified real number calculations: A library for interval arithmetic. IEEE Trans. Computers, 58(2):226--237, 2009.
[9]
Marc Daumas, Guillaume Melquiond, and César Muñoz. Guaranteed Proofs Using Interval Arithmetic. In 17th IEEE Symposium on Computer Arithmetic, pages 188--195, Cape Cod, Massachusetts, États-Unis, 2005. IEEE.
[10]
Benjamin Grégoire and Laurent Théry. A purely functional library for modular arithmetic and its application to certifying large prime numbers. In Ulrich Furbach and Natarajan Shankar, editors, Automated Reasoning, Third International Joint Conference, IJCAR 2006, Seattle, WA, USA, August 17--20, 2006, Proceedings, volume 4130 of LNCS, pages 423--437. Springer, 2006.
[11]
John Harrison. The HOL Light theorem prover, 2010.
[12]
Cezary Kaliszyk and Russel O'Connor. Computing with Classical Real Numbers. Journal of Formalized Reasoning, 2(1), 2009.
[13]
David R. Lester. Real number calculations and theorem proving. In Otmane Ait Mohamed, César Muñoz, and Sofiène Tahar, editors, Theorem Proving in Higher Order Logics, TPHOLs 2008, volume 5170 of LNCS, pages 215--229. Springer, 2008.
[14]
The Coq development team. The Coq proof assistant reference manual. LogiCal Project, 2012. Version 8.4.
[15]
Guillaume Melquiond. Floating-point arithmetic in the Coq system. In 8th Conference on Real Numbers and Computers, pages 93--102, Santiago de Compostela, Spain, 2008.
[16]
Anthony Narkawicz and César A. Muñoz. A formally verified generic branching algorithm for global optimization. In Ernie Cohen and Andrey Rybalchenko, editors, Verified Software: Theories, Tools, Experiments - 5th International Conference, VSTTE 2013, Menlo Park, CA, USA, May 17--19, 2013, Revised Selected Papers, volume 8164 of Lecture Notes in Computer Science, pages 326--343. Springer, 2013.
[17]
Eugene Salamin. Computation of π Using Arithmetic-Geometric Mean. Mathematics of Computation, 30(135):565--570, July 1976.
[18]
Alexey Solovyev. Formal Computations and Methods. PhD thesis, University of Pittsburgh, 2012.
[19]
Alexey Solovyev and Thomas C. Hales. Formal verification of nonlinear inequalities with taylor interval approximations. In Guillaume Brat, Neha Rungta, and Arnaud Venet, editors, NASA Formal Methods, 5th International Symposium, NFM 2013, volume 7871 of LNCS, pages 383--397. Springer, 2013.
[20]
Paul Zimmermann. Reliable computing with GNU MPFR. In Komei Fukuda, Joris van der Hoeven, Michael Joswig, and Nobuki Takayama, editors, Third International Congress on Mathematical Software, ICMS 2010, volume 6327 of LNCS, pages 42--45. Springer, 2010.

Cited By

View all
  • (2018)Distant Decimals of $$\pi $$źJournal of Automated Reasoning10.1007/s10817-017-9444-261:1-4(33-71)Online publication date: 1-Jun-2018
  • (2017)Verified perceptron convergence theoremProceedings of the 1st ACM SIGPLAN International Workshop on Machine Learning and Programming Languages10.1145/3088525.3088673(43-50)Online publication date: 18-Jun-2017

Index Terms

  1. Fixed Precision Patterns for the Formal Verification of Mathematical Constant Approximations

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Conferences
    CPP '15: Proceedings of the 2015 Conference on Certified Programs and Proofs
    January 2015
    192 pages
    ISBN:9781450332965
    DOI:10.1145/2676724
    • Program Chairs:
    • Xavier Leroy,
    • Alwen Tiu
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Sponsors

    In-Cooperation

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 13 January 2015

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. coq
    2. exact real arithmetic
    3. interactive theorem proving

    Qualifiers

    • Research-article

    Conference

    POPL '15
    Sponsor:

    Acceptance Rates

    CPP '15 Paper Acceptance Rate 18 of 26 submissions, 69%;
    Overall Acceptance Rate 18 of 26 submissions, 69%

    Upcoming Conference

    POPL '25

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)1
    • Downloads (Last 6 weeks)0
    Reflects downloads up to 04 Sep 2024

    Other Metrics

    Citations

    Cited By

    View all
    • (2018)Distant Decimals of $$\pi $$źJournal of Automated Reasoning10.1007/s10817-017-9444-261:1-4(33-71)Online publication date: 1-Jun-2018
    • (2017)Verified perceptron convergence theoremProceedings of the 1st ACM SIGPLAN International Workshop on Machine Learning and Programming Languages10.1145/3088525.3088673(43-50)Online publication date: 18-Jun-2017

    View Options

    Get Access

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media