Documentation

Mathlib.Data.Int.Order.Units

Lemmas about units in โ„ค, which interact with the order structure. #

theorem Int.isUnit_iff_abs_eq {x : โ„ค} :
IsUnit x โ†” |x| = 1
theorem Int.isUnit_sq {a : โ„ค} (ha : IsUnit a) :
a ^ 2 = 1
@[simp]
theorem Int.units_sq (u : โ„คหฃ) :
u ^ 2 = 1
theorem Int.units_pow_two (u : โ„คหฃ) :
u ^ 2 = 1

Alias of Int.units_sq.

@[simp]
theorem Int.units_mul_self (u : โ„คหฃ) :
u * u = 1
theorem Int.units_div_eq_mul (uโ‚ uโ‚‚ : โ„คหฃ) :
uโ‚ / uโ‚‚ = uโ‚ * uโ‚‚
@[simp]
theorem Int.units_coe_mul_self (u : โ„คหฃ) :
โ†‘u * โ†‘u = 1
theorem Int.neg_one_pow_ne_zero {n : โ„•} :
(-1) ^ n โ‰  0
theorem Int.sq_eq_one_of_sq_lt_four {x : โ„ค} (h1 : x ^ 2 < 4) (h2 : x โ‰  0) :
x ^ 2 = 1
theorem Int.sq_eq_one_of_sq_le_three {x : โ„ค} (h1 : x ^ 2 โ‰ค 3) (h2 : x โ‰  0) :
x ^ 2 = 1
theorem Int.units_pow_eq_pow_mod_two (u : โ„คหฃ) (n : โ„•) :
u ^ n = u ^ (n % 2)