Documentation

Legendre.Basic

theorem Legendre.interval_width (n : ) :
(n + 1) ^ 2 - n ^ 2 = 2 * n + 1

TODO: Prove exact interval width (n + 1)^2 - n^2 = 2n + 1.

theorem Legendre.square_monotone {m n : } (hmn : m n) :
m ^ 2 n ^ 2

TODO: Add reusable monotonicity lemmas for square endpoints.

theorem Legendre.lower_endpoint_nonprime {n : } (hn : 2 n) :

TODO: Show lower endpoint n^2 is composite for 2 ≤ n.