Formal verification of Zagier's one-sentence proof

Guillaume Dubach, Fabian Muehlboeck
3/21/2021
cs.LOmath.NT

Official code: gdubach/Zagier_project (1 star, Coq, last commit 2021-04-25).

Abstract

We comment on two formal proofs of Fermat's sum of two squares theorem, written using the Mathematical Components libraries of the Coq proof assistant. The first one follows Zagier's celebrated one-sentence proof; the second follows David Christopher's more recent proof relying on partition-theoretic arguments.

Show full abstract

Both formal proofs rely on a general property of involutions of finite sets, of independent interest. The proof technique consists for the most part of automating recurrent tasks (such as case distinctions and computations on natural numbers) via ad hoc tactics. With the same method, we also provide a formal proof of another classical result on primes of the form $a^2 + 2 b^2$.

View on arXivView PDF

Code Implementations(1)

Formal verification of Zagier's one sentence proof of Fermat's Theorem

10CoqFeb 16, 20215 years ago

Similar Papers

Cite this paper

@article{dubach2021formal,
  title  = {Formal verification of Zagier's one-sentence proof},
  author = {Guillaume Dubach and Fabian Muehlboeck},
  year   = {2021},
  eprint = {2103.11389},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.11389}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.11389.svg)](https://codeofpaper.com/paper/2103.11389)

Discussion