theorem
Tactic.NormNum.nat_sqrt_helper
{x y r : ℕ}
(hr : y * y + r = x)
(hle : r.ble (2 * y) = true)
:
x.sqrt = y
theorem
Tactic.NormNum.isNat_sqrt
{x nx z : ℕ}
:
Mathlib.Meta.NormNum.IsNat x nx → nx.sqrt = z → Mathlib.Meta.NormNum.IsNat x.sqrt z
Given the natural number literal ex, returns its square root as a natural number literal
and an equality proof. Panics if ex isn't a natural number literal.
Instances For
Evaluates the Nat.sqrt function.