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

18 declarations. Mathlib docs · Source

theorem IsUnit.map_ringInverse E0 #

∀ {M₀ : Type u_2} {M₀' : Type u_4} {F : Type u_6} [inst : MonoidWithZero M₀] [inst_1 : MonoidWithZero M₀']
  [inst_2 : FunLike F M₀ M₀'] [MonoidHomClass F M₀ M₀'] (f : F) {a : M₀},
  IsUnit a → f (Ring.inverse a) = Ring.inverse (f a)

theorem map_ringInverse E0 #

∀ {M₀ : Type u_2} {M₀' : Type u_4} {F : Type u_6} [inst : MonoidWithZero M₀] [inst_1 : MonoidWithZero M₀']
  [inst_2 : FunLike F M₀ M₀'] [MonoidWithZeroHomClass F M₀ M₀'] (f : F) [IsLocalHom f] (a : M₀),
  f (Ring.inverse a) = Ring.inverse (f a)

A homomorphism which reflects units commutes with Ring.inverse. This does not require any IsUnit assumption. The IsLocalHom f hypothesis is satisfied when f is an isomorphism. Not marked simp to prevent frequent instance searches for IsLocalHom _.

theorem isLocalHom_iff_map_ringInverse E1 #

∀ {M₀ : Type u_2} {M₀' : Type u_4} {F : Type u_6} [inst : MonoidWithZero M₀] [inst_1 : MonoidWithZero M₀']
  [inst_2 : FunLike F M₀ M₀'] [MonoidWithZeroHomClass F M₀ M₀'] [Nontrivial M₀'] (f : F),
  IsLocalHom f ↔ ∀ (a : M₀), f (Ring.inverse a) = Ring.inverse (f a)

theorem isLocalHom_of_exists_map_ne_one E1 #

∀ {M : Type u_1} {G₀ : Type u_3} {F : Type u_6} [inst : Monoid M] [inst_1 : GroupWithZero G₀] [inst_2 : FunLike F G₀ M]
  [MonoidHomClass F G₀ M] {f : F}, (∃ x, f x ≠ 1) → IsLocalHom f

instance instIsLocalHomOfMonoidWithZeroHomClassOfNontrivial E0 #

∀ {M₀ : Type u_2} {G₀ : Type u_3} {F : Type u_6} [inst : MonoidWithZero M₀] [inst_1 : GroupWithZero G₀]
  [inst_2 : FunLike F G₀ M₀] [MonoidWithZeroHomClass F G₀ M₀] [Nontrivial M₀] (f : F), IsLocalHom f

theorem map_inv_eq_ringInverse_map E0 #

∀ {M₀ : Type u_2} {G₀ : Type u_3} {F : Type u_6} [inst : MonoidWithZero M₀] [inst_1 : GroupWithZero G₀]
  [inst_2 : FunLike F G₀ M₀] [MonoidWithZeroHomClass F G₀ M₀] (f : F) (a : G₀), f a⁻¹ = Ring.inverse (f a)

theorem Commute.div_eq_div_iff E0 #

∀ {G₀ : Type u_3} [inst : GroupWithZero G₀] {a b c d : G₀},
  Commute b d → b ≠ 0 → d ≠ 0 → (a / b = c / d ↔ a * d = c * b)

The MonoidWithZero version of div_eq_div_iff_mul_eq_mul.

theorem Commute.mul_inv_eq_mul_inv_iff E0 #

∀ {G₀ : Type u_3} [inst : GroupWithZero G₀] {a b c d : G₀},
  Commute b d → b ≠ 0 → d ≠ 0 → (a * b⁻¹ = c * d⁻¹ ↔ a * d = c * b)

The MonoidWithZero version of mul_inv_eq_mul_inv_iff_mul_eq_mul.

theorem Commute.inv_mul_eq_inv_mul_iff E0 #

∀ {G₀ : Type u_3} [inst : GroupWithZero G₀] {a b c d : G₀},
  Commute b d → b ≠ 0 → d ≠ 0 → (b⁻¹ * a = d⁻¹ * c ↔ d * a = b * c)

The MonoidWithZero version of inv_mul_eq_inv_mul_iff_mul_eq_mul.

theorem map_ne_zero E0 #

∀ {G₀ : Type u_3} {M₀' : Type u_4} {F : Type u_6} [inst : GroupWithZero G₀] [inst_1 : MulZeroOneClass M₀']
  [Nontrivial M₀'] [inst_3 : FunLike F G₀ M₀'] [MonoidWithZeroHomClass F G₀ M₀'] (f : F) {a : G₀}, f a ≠ 0 ↔ a ≠ 0

theorem map_eq_zero E0 #

∀ {G₀ : Type u_3} {M₀' : Type u_4} {F : Type u_6} [inst : GroupWithZero G₀] [inst_1 : MulZeroOneClass M₀']
  [Nontrivial M₀'] [inst_3 : FunLike F G₀ M₀'] [MonoidWithZeroHomClass F G₀ M₀'] (f : F) {a : G₀}, f a = 0 ↔ a = 0

theorem map_inv₀ E0 #

∀ {G₀ : Type u_3} {G₀' : Type u_5} {F : Type u_6} [inst : GroupWithZero G₀] [inst_1 : GroupWithZero G₀']
  [inst_2 : FunLike F G₀ G₀'] [MonoidWithZeroHomClass F G₀ G₀'] (f : F) (a : G₀), f a⁻¹ = (f a)⁻¹

A monoid homomorphism between groups with zeros sending 0 to 0 sends a⁻¹ to (f a)⁻¹.

theorem map_div₀ E0 #

∀ {G₀ : Type u_3} {G₀' : Type u_5} {F : Type u_6} [inst : GroupWithZero G₀] [inst_1 : GroupWithZero G₀']
  [inst_2 : FunLike F G₀ G₀'] [MonoidWithZeroHomClass F G₀ G₀'] (f : F) (a b : G₀), f (a / b) = f a / f b

def MonoidWithZero.inverse E1 #

{M : Type u_8} → [inst : CommMonoidWithZero M] → M →*₀ M

We define the inverse as a MonoidWithZeroHom by extending the inverse map by zero on non-units.

theorem MonoidWithZero.coe_inverse E0 #

∀ {M : Type u_8} [inst : CommMonoidWithZero M], ⇑MonoidWithZero.inverse = Ring.inverse

theorem MonoidWithZero.inverse_apply E0 #

∀ {M : Type u_8} [inst : CommMonoidWithZero M] (a : M), MonoidWithZero.inverse a = Ring.inverse a

def invMonoidWithZeroHom E1 #

{G₀ : Type u_8} → [inst : CommGroupWithZero G₀] → G₀ →*₀ G₀

Inversion on a commutative group with zero, considered as a monoid with zero homomorphism.

theorem map_zpow₀ E0 #

∀ {F : Type u_8} {G₀ : Type u_9} {G₀' : Type u_10} [inst : GroupWithZero G₀] [inst_1 : GroupWithZero G₀']
  [inst_2 : FunLike F G₀ G₀'] [MonoidWithZeroHomClass F G₀ G₀'] (f : F) (x : G₀) (n : ℤ), f (x ^ n) = f x ^ n

If a monoid homomorphism f between two GroupWithZeros maps 0 to 0, then it maps x^n, n : ℤ, to (f x)^n.