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 / V02. Numbers

Mathlib.Data.Int.Order.Lemmas

5 declarations. Mathlib docs · Source

Further lemmas about the integers

The distinction between this file and Mathlib/Data/Int/Order/Basic.lean is not particularly clear. They are separated by now to minimize the porting requirements for tactics during the transition to mathlib4. Please feel free to reorganize these two files.

nat abs

Integer sqrt

theorem Int.natAbs_eq_iff_mul_self_eq E0 #

∀ {a b : ℤ}, a.natAbs = b.natAbs ↔ a * a = b * b

theorem Int.natAbs_lt_iff_mul_self_lt E1 #

∀ {a b : ℤ}, a.natAbs < b.natAbs ↔ a * a < b * b

theorem Int.natAbs_le_iff_mul_self_le E1 #

∀ {a b : ℤ}, a.natAbs ≤ b.natAbs ↔ a * a ≤ b * b

theorem Int.abs_le_sqrt E1 #

∀ {a b : ℤ}, 0 ≤ b → (|a| ≤ Int.sqrt b ↔ a * a ≤ b)

theorem Int.abs_le_sqrt_iff_sq_le E1 #

∀ {a b : ℤ}, 0 ≤ b → (|a| ≤ Int.sqrt b ↔ a ^ 2 ≤ b)