norm_num extension for IsSquare #
The extension in this file handles natural, integer, and rational numbers.
TODO #
Add extensions for ℚ≥0, ℝ, ℝ≥0, ℝ≥0∞, ℂ (or any algebraically closed field?), ZMod n.
Probably, these extensions should go to different files.
theorem
Mathlib.Meta.NormNum.iff_isSquare_of_isInt_int
(a : ℤ)
(n : ℕ)
(h : IsInt a (Int.negOfNat n))
:
theorem
Mathlib.Meta.NormNum.iff_isSquare_of_isInt_rat
(a : ℚ)
(n : ℕ)
(h : IsInt a (Int.negOfNat n))
:
theorem
Mathlib.Meta.NormNum.not_isSquare_of_isRat_neg
(a : ℚ)
(n d : ℕ)
(hn : n ≠ 0)
(hd : d ≠ 0)
(ha : IsRat a (Int.negOfNat n) d)
: