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 / V05. Groups

Mathlib.Algebra.Group.Int.Units

13 declarations. Mathlib docs · Source

Units in the integers

Units

theorem Int.units_natAbs E1 #

∀ (u : ℤˣ), (↑u).natAbs = 1

theorem Int.natAbs_of_isUnit E0 #

∀ {u : ℤ}, IsUnit u → u.natAbs = 1

theorem Int.isUnit_eq_one_or E1 #

∀ {u : ℤ}, IsUnit u → u = 1 ∨ u = -1

theorem Int.isUnit_ne_iff_eq_neg E1 #

∀ {u v : ℤ}, IsUnit u → IsUnit v → (u ≠ v ↔ u = -v)

theorem Int.isUnit_eq_or_eq_neg E1 #

∀ {u v : ℤ}, IsUnit u → IsUnit v → u = v ∨ u = -v

theorem Int.isUnit_iff E0 #

∀ {u : ℤ}, IsUnit u ↔ u = 1 ∨ u = -1

theorem Int.mul_eq_one_iff_eq_one_or_neg_one E1 #

∀ {u v : ℤ}, u * v = 1 ↔ u = 1 ∧ v = 1 ∨ u = -1 ∧ v = -1

theorem Int.mul_eq_neg_one_iff_eq_one_or_neg_one E1 #

∀ {u v : ℤ}, u * v = -1 ↔ u = 1 ∧ v = -1 ∨ u = -1 ∧ v = 1

theorem Int.isUnit_iff_natAbs_eq E0 #

∀ {u : ℤ}, IsUnit u ↔ u.natAbs = 1

theorem Int.IsUnit.natAbs_eq E0 #

∀ {u : ℤ}, IsUnit u → u.natAbs = 1

Alias of the forward direction of Int.isUnit_iff_natAbs_eq.

theorem Int.ofNat_isUnit E1 #

∀ {n : ℕ}, IsUnit ↑n ↔ IsUnit n

theorem Int.isUnit_mul_self E1 #

∀ {u : ℤ}, IsUnit u → u * u = 1

theorem Int.isUnit_add_isUnit_eq_isUnit_add_isUnit E1 #

∀ {a b c d : ℤ}, IsUnit a → IsUnit b → IsUnit c → IsUnit d → (a + b = c + d ↔ a = c ∧ b = d ∨ a = d ∧ b = c)