Documentation

Mathlib.Algebra.Ring.Int.Units

Basic lemmas for ℤˣ. #

This file contains lemmas on the units of ℤ.

Main results #

See note [foundational algebra order theory].

Units #

theorem Int.units_eq_one_or (u : ℤˣ) :
u = 1 ∨ u = -1
theorem Int.units_ne_iff_eq_neg {u v : ℤˣ} :
u ≠ v ↔ u = -v
theorem MonoidWithZeroHom.eq_one_or_neg_one {M : Type u_1} [MonoidWithZero M] (f : M →*₀ ℤ) {b : M} (hb : IsUnit b) :
f b = 1 ∨ f b = -1

The image of a unit under an arbitrary homomorphism to the integers is 1 or -1.

theorem MonoidWithZeroHom.sq_one {M : Type u_1} [MonoidWithZero M] (f : M →*₀ ℤ) {b : M} (hb : IsUnit b) :
f b ^ 2 = 1

The square of the image of 'b' under a homomorphism to the integers is 1 if 'b' is a unit.