This repository contains Lean files for the formalisation of three results about the
Gaussian integers
Writing
-
thm_main— If$x_n = m$ is an integer (with$A_n \neq 0$ ), then$K_n \mid (1 + m^2)$ , and if$K_n > 1$ then$|m| \ge \sqrt{K_n - 1}$ . -
lem_proximity— For every$n$ in the exceptional set$E = {, n \ge 5 : |x_n| > n/2 + 1 ,}$ there is an integer$j$ with$\left| a_n - j,\tfrac{\pi}{2} \right| < \tfrac{2}{n}$ . -
cor_density—$#\bigl(E \cap [1, N]\bigr) = O(\log N)$ .
The proofs were produced by AxiomProver and are fully sorry-free. They were developed and verified using Lean 4.28.0. Compatibility with earlier or later versions is not guaranteed due to the evolving nature of the Lean 4 compiler and its core libraries.
input/main_engine.texandinput/task.mdcontain the informal source and the task given to AxiomProver.
problem.leanis the formal problem statement.solution.leanis the formal solution.
This repository can be verified against the formal problem statement with the Lean comparator on a Linux machine. First, follow the instructions in https://github.com/leanprover/comparator to install comparator. Then, run the following command:
lake env comparator comparator.json
This repository uses the MIT License. See LICENSE for details.