Properties of the natural number square root function. #
sqrt #
See [Wikipedia, Methods of computing square roots] (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Binary_numeral_system_(base_2)).
@[irreducible]
theorem
Nat.not_exists_sq
{m n : ℕ}
(hl : m * m < n)
(hr : n < (m + 1) * (m + 1))
:
¬∃ (t : ℕ), t * t = n
There are no perfect squares strictly between m² and (m+1)²