Skip to main content

Formally Verified Approximations of Definite Integrals

  • Conference paper
  • First Online:
Interactive Theorem Proving (ITP 2016)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 9807))

Included in the following conference series:

Abstract

Finding an elementary form for an antiderivative is often a difficult task, so numerical integration has become a common tool when it comes to making sense of a definite integral. Some of the numerical integration methods can even be made rigorous: not only do they compute an approximation of the integral value but they also bound its inaccuracy. Yet numerical integration is still missing from the toolbox when performing formal proofs in analysis.

This paper presents an efficient method for automatically computing and proving bounds on some definite integrals inside the Coq formal system. Our approach is not based on traditional quadrature methods such as Newton-Cotes formulas. Instead, it relies on computing and evaluating antiderivatives of rigorous polynomial approximations, combined with an adaptive domain splitting. This work has been integrated to the CoqInterval library.

This work was supported in part by the project FastRelax ANR-14-CE25-0018-01.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://coq.inria.fr/distrib/current/stdlib/.

  2. 2.

    We say that \(\mathbf {p} \in \mathbb {I}[X]\) is an enclosure of \(p \in \mathbb {R}[X]\) if, for all \(i \in \mathbb {N}\), the \(i^{th}\) coefficient \(\mathbf {p}_i\) of \(\mathbf {p}\) is an enclosure of the \(i^{th}\) coefficient \(p_i\) of p, where we take the convention that for \(i > \deg \mathbf {p}\), \(\mathbf {p}_i = \{0\}\) and for \(i > \deg p\), \(p_i = 0\).

  3. 3.

    Note that the evaluation model is quite simple: the stack grows linearly with the size of the expression since no element of the stack is ever removed.

  4. 4.

    The only thing that will later distinguishes the integration variable t from an actual constant such as \(\pi \) is that its value is placed at the top of the initial evaluation stack.

  5. 5.

    The magnitude might be so coarse that it is computed as \(+\infty \). In that case, the user setting is directly understood as an absolute bound.

  6. 6.

    http://mathoverflow.net/questions/123677/rigorous-numerical-integration.

  7. 7.

    The bug lies in an incorrect implementation of Taylor models for absolute value.

  8. 8.

    Any 3-SAT instance can be reduced to approximating the integral of a multivariate polynomial.

References

  1. Ahmed, Z.: Ahmed’s integral: the maiden solution. Math. Spectr. 48(1), 11–12 (2015)

    Google Scholar 

  2. Boldo, S., Lelay, C., Melquiond, G.: Coquelicot: a user-friendly library of real analysis for Coq. Math. Comput. Sci. 9(1), 41–62 (2015)

    Article  MathSciNet  MATH  Google Scholar 

  3. Eaton, J.W., Bateman, D., Hauberg, S., Wehbring, R., Octave, G.N.U.: version 3.8.1 manual: a high-level interactive language for numerical computations (2014)

    Google Scholar 

  4. Hass, J., Schlafly, R.: Double bubbles minimize. Ann. Math. 151(2), 459–515 (2000). Second Series

    Article  MathSciNet  MATH  Google Scholar 

  5. Helfgott, H.A.: Major arcs for Goldbach’s problem (2013). http://arxiv.org/abs/1305.2897

  6. Immler, F.: Formally verified computation of enclosures of solutions of ordinary differential equations. In: Badger, J.M., Rozier, K.Y. (eds.) NFM 2014. LNCS, vol. 8430, pp. 113–127. Springer, Heidelberg (2014)

    Chapter  Google Scholar 

  7. Makarov, E., Spitters, B.: The picard algorithm for ordinary differential equations in Coq. In: Blazy, S., Paulin-Mohring, C., Pichardie, D. (eds.) ITP 2013. LNCS, vol. 7998, pp. 463–468. Springer, Heidelberg (2013)

    Chapter  Google Scholar 

  8. Martin-Dorel, É., Melquiond, G.: Proving tight bounds on univariate expressions with elementary functions in Coq. J. Autom. Reason. 1–31 (2015)

    Google Scholar 

  9. Mayero, M.: Formalisation et automatisation de preuves en analyses réelle et numérique. Ph.D. thesis, Université Paris VI, December 2001

    Google Scholar 

  10. Moore, R.E., Kearfott, R.B., Cloud, M.J.: Introduction to Interval Analysis. SIAM, Philadelphia (2009)

    Book  MATH  Google Scholar 

  11. Nedialkov, N.S.: Interval tools for ODEs and DAEs. In: Scientific Computing, Computer Arithmetic and Validated Numerics (SCAN) (2006). http://www.cas.mcmaster.ca/~nedialk/vnodelp/

  12. O’Connor, R., Spitters, B.: A computer verified, monadic, functional implementation of the integral. Theor. Comput. Sci. 411(37), 3386–3402 (2010)

    Article  MathSciNet  MATH  Google Scholar 

  13. Rump, S.M.: Verification methods: Rigorous results using floating-point arithmetic. Acta Numerica 19, 287–449 (2010). http://www.ti3.tu-harburg.de/rump/intlab/

    Google Scholar 

  14. Tucker, W.: Validated Numerics: A Short Introduction to Rigorous Computations. Princeton University Press, Princeton (2011)

    MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Guillaume Melquiond .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this paper

Cite this paper

Mahboubi, A., Melquiond, G., Sibut-Pinote, T. (2016). Formally Verified Approximations of Definite Integrals. In: Blanchette, J., Merz, S. (eds) Interactive Theorem Proving. ITP 2016. Lecture Notes in Computer Science(), vol 9807. Springer, Cham. https://doi.org/10.1007/978-3-319-43144-4_17

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-43144-4_17

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-43143-7

  • Online ISBN: 978-3-319-43144-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics