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]
@[irreducible]
theorem
Nat.sqrt.lt_iter_succ_sq
(n : ℕ)
(guess : ℕ)
(hn : n < (guess + 1) * (guess + 1))
:
n < (Nat.sqrt.iter n guess + 1) * (Nat.sqrt.iter n guess + 1)