Further lemmas about units in a MonoidWithZero or a GroupWithZero. #
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 _.
The MonoidWithZero version of div_eq_div_iff_mul_eq_mul.
The MonoidWithZero version of mul_inv_eq_mul_inv_iff_mul_eq_mul.
The MonoidWithZero version of inv_mul_eq_inv_mul_iff_mul_eq_mul.
A monoid homomorphism between groups with zeros sending 0 to 0 sends a⁻¹ to (f a)⁻¹.
We define the inverse as a MonoidWithZeroHom by extending the inverse map by zero
on non-units.
Equations
- MonoidWithZero.inverse = { toFun := Ring.inverse, map_zero' := ⋯, map_one' := ⋯, map_mul' := ⋯ }
Instances For
Inversion on a commutative group with zero, considered as a monoid with zero homomorphism.
Equations
- invMonoidWithZeroHom = { toFun := (↑invMonoidHom).toFun, map_zero' := ⋯, map_one' := ⋯, map_mul' := ⋯ }
Instances For
If a monoid homomorphism f between two GroupWithZeros maps 0 to 0, then it maps x^n,
n : ℤ, to (f x)^n.