PAT Thematic School 2023


Lecture notes

Doing mathematics using the Coq Proof Assistant The Coq proof assistant allows, using the same infrastructure, not only to implement mathematical objects and their operations using a functional programming style, but also to formally prove some of their properties. This specification and proof task is mainly devoted to the user whereas the system checks that all the reasoning arguments are correct. In this course, we first focus on basic mathematical objects, such as integers and real numbers. We describe their implementation in Coq and build some operations on them. We then introduce the Coq tactic language and show how to use it to interactively prove formal properties. Carry out proofs interactively is very useful for students to learn how to reason correctly. However when dealing with larger and more complex mathematical theories, we can take advantage of Coq advanced automated tactics which deals with most technical details, allowing the user to focus on the main steps of the proof. In a second time, we shall present some of the large formal developments available in Coq, tailored to carry out University-level mathematics, in fields such as analysis, algebra or geometry. Among the advanced topics that we shall cover, we will present the coq-interval package which allows to use Coq as a scientific calculator, including features to display correct-by-construction curves.

  • Link to the thematic school web site

  • Nicolas Magaud
    Last modified: Fri Jun 16 22:06:52 CEST 2023