The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V34. The tactics of Mathlib

Mathlib.Tactic.NormNum.IsSquare

13 declarations. Mathlib docs · Source

theorem Mathlib.Meta.NormNum.isSquare_nat_of_isNat E1 #

∀ (a n : ℕ), Mathlib.Meta.NormNum.IsNat a n → ∀ (m : ℕ), m * m = n → IsSquare a

theorem Mathlib.Meta.NormNum.not_isSquare_nat_of_isNat E1 #

∀ (a n : ℕ),
  Mathlib.Meta.NormNum.IsNat a n → ∀ (m k : ℕ), m * m = k → k.blt n = true → n.ble (k + 2 * m) = true → ¬IsSquare a

If m ^ 2 < n < (m + 1) ^ 2, then n is not a square. We write this condition as k < n ≤ k + 2 * m, where k = m * m.

theorem Mathlib.Meta.NormNum.iff_isSquare_int_of_isNat E1 #

∀ (a : ℤ) (n : ℕ), Mathlib.Meta.NormNum.IsNat a n → (IsSquare n ↔ IsSquare a)

theorem Mathlib.Meta.NormNum.iff_isSquare_of_isInt_int E1 #

∀ (a : ℤ) (n : ℕ), Mathlib.Meta.NormNum.IsInt a (Int.negOfNat n) → (n = 0 ↔ IsSquare a)

theorem Mathlib.Meta.NormNum.iff_isSquare_of_isNat_rat E1 #

∀ (a : ℚ) (n : ℕ), Mathlib.Meta.NormNum.IsNat a n → (IsSquare n ↔ IsSquare a)

theorem Mathlib.Meta.NormNum.iff_isSquare_of_isInt_rat E1 #

∀ (a : ℚ) (n : ℕ), Mathlib.Meta.NormNum.IsInt a (Int.negOfNat n) → (n = 0 ↔ IsSquare a)

theorem Mathlib.Meta.NormNum.isSquare_of_isNNRat_rat E1 #

∀ (a : ℚ) (n d : ℕ), IsSquare n → IsSquare d → Mathlib.Meta.NormNum.IsNNRat a n d → IsSquare a

theorem Mathlib.Meta.NormNum.not_isSquare_of_isNNRat_rat_of_num E1 #

∀ (a : ℚ) (n d : ℕ), ¬IsSquare n → n.Coprime d → Mathlib.Meta.NormNum.IsNNRat a n d → ¬IsSquare a

theorem Mathlib.Meta.NormNum.not_isSquare_of_isNNRat_rat_of_den E1 #

∀ (a : ℚ) (n d : ℕ), ¬IsSquare d → n.Coprime d → Mathlib.Meta.NormNum.IsNNRat a n d → ¬IsSquare a

theorem Mathlib.Meta.NormNum.not_isSquare_of_isRat_neg E1 #

∀ (a : ℚ) (n d : ℕ), n ≠ 0 → d ≠ 0 → Mathlib.Meta.NormNum.IsRat a (Int.negOfNat n) d → ¬IsSquare a

def Mathlib.Meta.NormNum.evalIsSquareNat E1 #

Mathlib.Meta.NormNum.NormNumExt

norm_num extension for IsSquare on ℕ.

def Mathlib.Meta.NormNum.evalIsSquareInt E1 #

Mathlib.Meta.NormNum.NormNumExt

norm_num extension for IsSquare on ℤ.

def Mathlib.Meta.NormNum.evalIsSquareRat E1 #

Mathlib.Meta.NormNum.NormNumExt

norm_num extension for IsSquare on ℚ.