Skip to content

AxiomMath/TanArctan

Repository files navigation

Logo for Axiom Math

Tan Arctan

This repository contains Lean files for the formalisation of three results about the Gaussian integers $P_n = \prod_{k=1}^{n}(1 + ik)$, the rational sequence $x_n = \mathrm{Im}(P_n) / \mathrm{Re}(P_n)$, and the arctangent angle sum $a_n = \sum_{k=1}^{n} \arctan(1/k)$.

Writing $A_n = \mathrm{Re}(P_n)$, $B_n = \mathrm{Im}(P_n)$, $\omega_n = A_n^2 + B_n^2 = \prod_{k=1}^{n}(1 + k^2)$, and letting $K_n$ be the squarefree kernel of $\omega_n$ (the product of the primes dividing $\omega_n$ to an odd power), the formalised statements are:

  1. 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}$.
  2. 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}$.
  3. 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.

Files

Input Files

Output Files

License

This repository uses the MIT License. See LICENSE for details.

Repository maintainers

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors