This is a Lean formalization of the main theorem of On the paucity of lattice triangles.
- For every
$\varepsilon > 0$ there is$c(\varepsilon) > 0$ such that$\#\mathcal L_n / \#\mathcal H_n \le c(\varepsilon) / n^{1-\varepsilon}$ for every integer$n \ge 5$ , where$\mathcal H_n$ is the set of primitive obtuse rational triangles with denominator$n$ and$\mathcal L_n$ the lattice (Veech) triangles among them, assuming the Larsen–Norton–Zykoski criterion (their Proposition 2.1, itself a consequence of Mirzakhani–Wright).
The constant depends only on sorry except the
challenge file below, where it is the point.
See §Formal Challenge for a formal certificate.
This depends on Mathlib.
A formal challenge file certifying that this repository does formalize the results claimed above is located at Challenge/Basic.lean. This file only depends on Mathlib. It contains formal statements of §Main Results with sorry as proof.
This repository can be verified against the formal challenge with the Lean comparator on a Linux machine. First, follow the instructions in https://github.com/leanprover/comparator to install comparator, checking out the release matching this project's lean-toolchain (v4.33.0-rc1). Then, run the following command:
lake env comparator Comparator/comparator.json
This repository has been locally verified with the comparator.