The areas / V34. The tactics of Mathlib
Mathlib.Tactic.NormNum.NatSqrt
4 declarations. Mathlib docs · Source
norm_num extension for Nat.sqrt
This module defines a norm_num extension for Nat.sqrt.
theorem Mathlib.Meta.NormNum.nat_sqrt_helper E1 #
∀ {x y r : ℕ}, y * y + r = x → r.ble (2 * y) = true → x.sqrt = y
theorem Mathlib.Meta.NormNum.isNat_sqrt E1 #
∀ {x nx z : ℕ}, Mathlib.Meta.NormNum.IsNat x nx → nx.sqrt = z → Mathlib.Meta.NormNum.IsNat x.sqrt z
def Mathlib.Meta.NormNum.proveNatSqrt E1 #
(ex : Q(ℕ)) → (ey : Q(ℕ)) × Q(«$ex».sqrt = «$ey»)
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.
def Mathlib.Meta.NormNum.evalNatSqrt E1 #
Mathlib.Meta.NormNum.NormNumExt
Evaluates the Nat.sqrt function.