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.Units

12 declarations. Mathlib docs · Source

theorem Int.isUnit_iff_abs_eq E0 #

∀ {x : ℤ}, IsUnit x ↔ |x| = 1

theorem Int.isUnit_sq E1 #

∀ {a : ℤ}, IsUnit a → a ^ 2 = 1

theorem Int.units_sq E0 #

∀ (u : ℤˣ), u ^ 2 = 1

theorem Int.units_pow_two E1 #

∀ (u : ℤˣ), u ^ 2 = 1

Alias of Int.units_sq.

theorem Int.units_mul_self E0 #

∀ (u : ℤˣ), u * u = 1

theorem Int.units_inv_eq_self E0 #

∀ (u : ℤˣ), u⁻¹ = u

theorem Int.units_div_eq_mul E1 #

∀ (u₁ u₂ : ℤˣ), u₁ / u₂ = u₁ * u₂

theorem Int.units_coe_mul_self E0 #

∀ (u : ℤˣ), ↑u * ↑u = 1

theorem Int.neg_one_pow_ne_zero E1 #

∀ {n : ℕ}, (-1) ^ n ≠ 0

theorem Int.sq_eq_one_of_sq_lt_four E1 #

∀ {x : ℤ}, x ^ 2 < 4 → x ≠ 0 → x ^ 2 = 1

theorem Int.sq_eq_one_of_sq_le_three E1 #

∀ {x : ℤ}, x ^ 2 ≤ 3 → x ≠ 0 → x ^ 2 = 1

theorem Int.units_pow_eq_pow_mod_two E1 #

∀ (u : ℤˣ) (n : ℕ), u ^ n = u ^ (n % 2)