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

72 declarations. Mathlib docs · Source

Monoid homomorphisms and units

This file allows to lift monoid homomorphisms to group homomorphisms of their units subgroups. It also contains unrelated results about Units that depend on MonoidHom.

Main declarations

  • Units.map: Turn a homomorphism from α to β monoids into a homomorphism from αˣ to βˣ.
  • MonoidHom.toHomUnits: Turn a homomorphism from a group α to β into a homomorphism from α to βˣ.
  • IsLocalHom: A predicate on monoid maps, requiring that it maps nonunits to nonunits. For the local rings, that is, applied to their multiplicative monoids, this means that the image of the unique maximal ideal is again contained in the unique maximal ideal. This is developed earlier, and in the generality of monoids, as it allows its use in non-local-ring related contexts, but it does have the strange consequence that it does not require local rings, or even rings.

TODO

The results that don't mention homomorphisms should be proved (earlier?) in a different file and be used to golf the basic Group lemmas.

Add a @[to_additive] version of IsLocalHom.

def Units.map E3 #

{M : Type u} → {N : Type v} → [inst : Monoid M] → [inst_1 : Monoid N] → (M →* N) → Mˣ →* Nˣ

The group homomorphism on units induced by a MonoidHom.

def AddUnits.map E1 #

{M : Type u} → {N : Type v} → [inst : AddMonoid M] → [inst_1 : AddMonoid N] → (M →+ N) → AddUnits M →+ AddUnits N

The additive homomorphism on AddUnits induced by an AddMonoidHom.

theorem Units.coe_map E0 #

∀ {M : Type u} {N : Type v} [inst : Monoid M] [inst_1 : Monoid N] (f : M →* N) (x : Mˣ), ↑((Units.map f) x) = f ↑x

theorem AddUnits.coe_map E0 #

∀ {M : Type u} {N : Type v} [inst : AddMonoid M] [inst_1 : AddMonoid N] (f : M →+ N) (x : AddUnits M),
  ↑((AddUnits.map f) x) = f ↑x

theorem Units.coe_map_inv E0 #

∀ {M : Type u} {N : Type v} [inst : Monoid M] [inst_1 : Monoid N] (f : M →* N) (u : Mˣ), ↑((Units.map f) u)⁻¹ = f ↑u⁻¹

theorem AddUnits.coe_map_neg E0 #

∀ {M : Type u} {N : Type v} [inst : AddMonoid M] [inst_1 : AddMonoid N] (f : M →+ N) (u : AddUnits M),
  ↑(-(AddUnits.map f) u) = f ↑(-u)

theorem AddUnits.map_mk E0 #

∀ {M : Type u} {N : Type v} [inst : AddMonoid M] [inst_1 : AddMonoid N] (f : M →+ N) (val neg : M)
  (val_neg : val + neg = 0) (neg_val : neg + val = 0),
  (AddUnits.map f) { val := val, neg := neg, val_neg := val_neg, neg_val := neg_val } =
    { val := f val, neg := f neg, val_neg := ⋯, neg_val := ⋯ }

theorem Units.map_mk E0 #

∀ {M : Type u} {N : Type v} [inst : Monoid M] [inst_1 : Monoid N] (f : M →* N) (val inv : M) (val_inv : val * inv = 1)
  (inv_val : inv * val = 1),
  (Units.map f) { val := val, inv := inv, val_inv := val_inv, inv_val := inv_val } =
    { val := f val, inv := f inv, val_inv := ⋯, inv_val := ⋯ }

theorem Units.map_comp E0 #

∀ {M : Type u} {N : Type v} {P : Type w} [inst : Monoid M] [inst_1 : Monoid N] [inst_2 : Monoid P] (f : M →* N)
  (g : N →* P), Units.map (g.comp f) = (Units.map g).comp (Units.map f)

theorem AddUnits.map_comp E0 #

∀ {M : Type u} {N : Type v} {P : Type w} [inst : AddMonoid M] [inst_1 : AddMonoid N] [inst_2 : AddMonoid P] (f : M →+ N)
  (g : N →+ P), AddUnits.map (g.comp f) = (AddUnits.map g).comp (AddUnits.map f)

theorem Units.map_injective E0 #

∀ {M : Type u} {N : Type v} [inst : Monoid M] [inst_1 : Monoid N] {f : M →* N},
  Function.Injective ⇑f → Function.Injective ⇑(Units.map f)

theorem AddUnits.map_injective E0 #

∀ {M : Type u} {N : Type v} [inst : AddMonoid M] [inst_1 : AddMonoid N] {f : M →+ N},
  Function.Injective ⇑f → Function.Injective ⇑(AddUnits.map f)

theorem Units.map_bijective E0 #

∀ {M : Type u} {N : Type v} [inst : Monoid M] [inst_1 : Monoid N] {f : M →* N},
  Function.Bijective ⇑f → Function.Bijective ⇑(Units.map f)

theorem AddUnits.map_bijective E0 #

∀ {M : Type u} {N : Type v} [inst : AddMonoid M] [inst_1 : AddMonoid N] {f : M →+ N},
  Function.Bijective ⇑f → Function.Bijective ⇑(AddUnits.map f)

theorem Units.map_id E0 #

∀ (M : Type u) [inst : Monoid M], Units.map (MonoidHom.id M) = MonoidHom.id Mˣ

theorem AddUnits.map_id E0 #

∀ (M : Type u) [inst : AddMonoid M], AddUnits.map (AddMonoidHom.id M) = AddMonoidHom.id (AddUnits M)

def Units.coeHom E1 #

(M : Type u) → [inst : Monoid M] → Mˣ →* M

Coercion Mˣ → M as a monoid homomorphism.

def AddUnits.coeHom E1 #

(M : Type u) → [inst : AddMonoid M] → AddUnits M →+ M

Coercion AddUnits M → M as an AddMonoid homomorphism.

theorem AddUnits.coeHom_apply E0 #

∀ {M : Type u} [inst : AddMonoid M] (x : AddUnits M), (AddUnits.coeHom M) x = ↑x

theorem Units.coeHom_apply E0 #

∀ {M : Type u} [inst : Monoid M] (x : Mˣ), (Units.coeHom M) x = ↑x

theorem AddUnits.coeHom_injective E1 #

∀ {M : Type u} [inst : AddMonoid M], Function.Injective ⇑(AddUnits.coeHom M)

theorem Units.coeHom_injective E1 #

∀ {M : Type u} [inst : Monoid M], Function.Injective ⇑(Units.coeHom M)

theorem Units.val_zpow_eq_zpow_val E0 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (u : αˣ) (n : ℤ), ↑(u ^ n) = ↑u ^ n

theorem AddUnits.val_zsmul_eq_zsmul_val E0 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (u : AddUnits α) (n : ℤ), ↑(n • u) = n • ↑u

theorem map_units_inv E0 #

∀ {M : Type u} [inst : Monoid M] {α : Type u_1} [inst_1 : DivisionMonoid α] {F : Type u_2} [inst_2 : FunLike F M α]
  [MonoidHomClass F M α] (f : F) (u : Mˣ), f ↑u⁻¹ = (f ↑u)⁻¹

theorem map_addUnits_neg E0 #

∀ {M : Type u} [inst : AddMonoid M] {α : Type u_1} [inst_1 : SubtractionMonoid α] {F : Type u_2}
  [inst_2 : FunLike F M α] [AddMonoidHomClass F M α] (f : F) (u : AddUnits M), f ↑(-u) = -f ↑u

def Units.liftRight E1 #

{M : Type u} →
  {N : Type v} →
    [inst : Monoid M] → [inst_1 : Monoid N] → (f : M →* N) → (g : M → Nˣ) → (∀ (x : M), ↑(g x) = f x) → M →* Nˣ

If a map g : M → Nˣ agrees with a homomorphism f : M →* N, then this map is a monoid homomorphism too.

def AddUnits.liftRight E1 #

{M : Type u} →
  {N : Type v} →
    [inst : AddMonoid M] →
      [inst_1 : AddMonoid N] → (f : M →+ N) → (g : M → AddUnits N) → (∀ (x : M), ↑(g x) = f x) → M →+ AddUnits N

If a map g : M → AddUnits N agrees with a homomorphism f : M →+ N, then this map is an AddMonoid homomorphism too.

theorem Units.coe_liftRight E0 #

∀ {M : Type u} {N : Type v} [inst : Monoid M] [inst_1 : Monoid N] {f : M →* N} {g : M → Nˣ}
  (h : ∀ (x : M), ↑(g x) = f x) (x : M), ↑((Units.liftRight f g h) x) = f x

theorem AddUnits.coe_liftRight E0 #

∀ {M : Type u} {N : Type v} [inst : AddMonoid M] [inst_1 : AddMonoid N] {f : M →+ N} {g : M → AddUnits N}
  (h : ∀ (x : M), ↑(g x) = f x) (x : M), ↑((AddUnits.liftRight f g h) x) = f x

theorem Units.mul_liftRight_inv E0 #

∀ {M : Type u} {N : Type v} [inst : Monoid M] [inst_1 : Monoid N] {f : M →* N} {g : M → Nˣ}
  (h : ∀ (x : M), ↑(g x) = f x) (x : M), f x * ↑((Units.liftRight f g h) x)⁻¹ = 1

theorem AddUnits.add_liftRight_neg E0 #

∀ {M : Type u} {N : Type v} [inst : AddMonoid M] [inst_1 : AddMonoid N] {f : M →+ N} {g : M → AddUnits N}
  (h : ∀ (x : M), ↑(g x) = f x) (x : M), f x + ↑(-(AddUnits.liftRight f g h) x) = 0

theorem Units.liftRight_inv_mul E0 #

∀ {M : Type u} {N : Type v} [inst : Monoid M] [inst_1 : Monoid N] {f : M →* N} {g : M → Nˣ}
  (h : ∀ (x : M), ↑(g x) = f x) (x : M), ↑((Units.liftRight f g h) x)⁻¹ * f x = 1

theorem AddUnits.liftRight_neg_add E0 #

∀ {M : Type u} {N : Type v} [inst : AddMonoid M] [inst_1 : AddMonoid N] {f : M →+ N} {g : M → AddUnits N}
  (h : ∀ (x : M), ↑(g x) = f x) (x : M), ↑(-(AddUnits.liftRight f g h) x) + f x = 0

def MonoidHom.toHomUnits E3 #

{G : Type u_1} → {M : Type u_2} → [inst : Group G] → [inst_1 : Monoid M] → (G →* M) → G →* Mˣ

If f is a homomorphism from a group G to a monoid M, then its image lies in the units of M, and f.toHomUnits is the corresponding monoid homomorphism from G to Mˣ.

def AddMonoidHom.toHomAddUnits E1 #

{G : Type u_1} → {M : Type u_2} → [inst : AddGroup G] → [inst_1 : AddMonoid M] → (G →+ M) → G →+ AddUnits M

If f is a homomorphism from an additive group G to an additive monoid M, then its image lies in the AddUnits of M, and f.toHomUnits is the corresponding homomorphism from G to AddUnits M.

theorem MonoidHom.coe_toHomUnits E0 #

∀ {G : Type u_1} {M : Type u_2} [inst : Group G] [inst_1 : Monoid M] (f : G →* M) (g : G), ↑(f.toHomUnits g) = f g

theorem AddMonoidHom.coe_toHomAddUnits E0 #

∀ {G : Type u_1} {M : Type u_2} [inst : AddGroup G] [inst_1 : AddMonoid M] (f : G →+ M) (g : G),
  ↑(f.toHomAddUnits g) = f g

theorem MonoidHom.toHomUnits_mul E0 #

∀ {G : Type u_1} {M : Type u_2} [inst : Group G] [inst_1 : CommMonoid M] (f g : G →* M),
  (f * g).toHomUnits = f.toHomUnits * g.toHomUnits

def MonoidHom.toHomUnitsMulEquiv E1 #

{G : Type u_1} → {M : Type u_2} → [inst : Group G] → [inst_1 : CommMonoid M] → (G →* M) ≃* (G →* Mˣ)

MonoidHom.toHomUnits as a MulEquiv.

theorem MonoidHom.toHomUnitsMulEquiv_symm_apply E0 #

∀ {G : Type u_1} {M : Type u_2} [inst : Group G] [inst_1 : CommMonoid M] (f : G →* Mˣ),
  MonoidHom.toHomUnitsMulEquiv.symm f = (Units.coeHom M).comp f

theorem MonoidHom.toHomUnitsMulEquiv_apply E0 #

∀ {G : Type u_1} {M : Type u_2} [inst : Group G] [inst_1 : CommMonoid M] (f : G →* M),
  MonoidHom.toHomUnitsMulEquiv f = f.toHomUnits

theorem IsAddUnit.map E1 #

∀ {F : Type u_1} {M : Type u_3} {N : Type u_4} [inst : FunLike F M N] [inst_1 : AddMonoid M] [inst_2 : AddMonoid N]
  [AddMonoidHomClass F M N] (f : F) {x : M}, IsAddUnit x → IsAddUnit (f x)

theorem IsUnit.map E1 #

∀ {F : Type u_1} {M : Type u_3} {N : Type u_4} [inst : FunLike F M N] [inst_1 : Monoid M] [inst_2 : Monoid N]
  [MonoidHomClass F M N] (f : F) {x : M}, IsUnit x → IsUnit (f x)

theorem IsUnit.unit_map E1 #

∀ {F : Type u_1} {M : Type u_3} {N : Type u_4} [inst : FunLike F M N] [inst_1 : Monoid M] [inst_2 : Monoid N]
  [inst_3 : MonoidHomClass F M N] (f : F) {x : M} (h : IsUnit x), ↑⋯.unit = f ↑h.unit

theorem IsAddUnit.addUnit_map E1 #

∀ {F : Type u_1} {M : Type u_3} {N : Type u_4} [inst : FunLike F M N] [inst_1 : AddMonoid M] [inst_2 : AddMonoid N]
  [inst_3 : AddMonoidHomClass F M N] (f : F) {x : M} (h : IsAddUnit x), ↑⋯.addUnit = f ↑h.addUnit

theorem IsUnit.unit_inv_map E1 #

∀ {F : Type u_1} {M : Type u_3} {N : Type u_4} [inst : FunLike F M N] [inst_1 : Monoid M] [inst_2 : Monoid N]
  [inst_3 : MonoidHomClass F M N] (f : F) {x : M} (h : IsUnit x), ↑⋯.unit⁻¹ = f ↑h.unit⁻¹

theorem IsAddUnit.addUnit_neg_map E1 #

∀ {F : Type u_1} {M : Type u_3} {N : Type u_4} [inst : FunLike F M N] [inst_1 : AddMonoid M] [inst_2 : AddMonoid N]
  [inst_3 : AddMonoidHomClass F M N] (f : F) {x : M} (h : IsAddUnit x), ↑(-⋯.addUnit) = f ↑(-h.addUnit)

theorem IsAddUnit.of_leftInverse E1 #

∀ {F : Type u_1} {G : Type u_2} {M : Type u_3} {N : Type u_4} [inst : FunLike F M N] [inst_1 : FunLike G N M]
  [inst_2 : AddMonoid M] [inst_3 : AddMonoid N] [AddMonoidHomClass G N M] {f : F} {x : M} (g : G),
  Function.LeftInverse ⇑g ⇑f → IsAddUnit (f x) → IsAddUnit x

theorem IsUnit.of_leftInverse E1 #

∀ {F : Type u_1} {G : Type u_2} {M : Type u_3} {N : Type u_4} [inst : FunLike F M N] [inst_1 : FunLike G N M]
  [inst_2 : Monoid M] [inst_3 : Monoid N] [MonoidHomClass G N M] {f : F} {x : M} (g : G),
  Function.LeftInverse ⇑g ⇑f → IsUnit (f x) → IsUnit x

theorem isUnit_map_of_leftInverse E1 #

∀ {F : Type u_1} {G : Type u_2} {M : Type u_3} {N : Type u_4} [inst : FunLike F M N] [inst_1 : FunLike G N M]
  [inst_2 : Monoid M] [inst_3 : Monoid N] [MonoidHomClass F M N] [MonoidHomClass G N M] {f : F} {x : M} (g : G),
  Function.LeftInverse ⇑g ⇑f → (IsUnit (f x) ↔ IsUnit x)

Prefer IsLocalHom.of_leftInverse, but we can't get rid of this because of ToAdditive.

theorem isAddUnit_map_of_leftInverse E1 #

∀ {F : Type u_1} {G : Type u_2} {M : Type u_3} {N : Type u_4} [inst : FunLike F M N] [inst_1 : FunLike G N M]
  [inst_2 : AddMonoid M] [inst_3 : AddMonoid N] [AddMonoidHomClass F M N] [AddMonoidHomClass G N M] {f : F} {x : M}
  (g : G), Function.LeftInverse ⇑g ⇑f → (IsAddUnit (f x) ↔ IsAddUnit x)

def IsUnit.liftRight E1 #

{M : Type u_3} →
  {N : Type u_4} → [inst : Monoid M] → [inst_1 : Monoid N] → (f : M →* N) → (∀ (x : M), IsUnit (f x)) → M →* Nˣ

If a homomorphism f : M →* N sends each element to an IsUnit, then it can be lifted to f : M →* Nˣ. See also Units.liftRight for a computable version.

def IsAddUnit.liftRight E1 #

{M : Type u_3} →
  {N : Type u_4} →
    [inst : AddMonoid M] → [inst_1 : AddMonoid N] → (f : M →+ N) → (∀ (x : M), IsAddUnit (f x)) → M →+ AddUnits N

If a homomorphism f : M →+ N sends each element to an IsAddUnit, then it can be lifted to f : M →+ AddUnits N. See also AddUnits.liftRight for a computable version.

theorem IsUnit.coe_liftRight E0 #

∀ {M : Type u_3} {N : Type u_4} [inst : Monoid M] [inst_1 : Monoid N] (f : M →* N) (hf : ∀ (x : M), IsUnit (f x))
  (x : M), ↑((IsUnit.liftRight f hf) x) = f x

theorem IsAddUnit.coe_liftRight E0 #

∀ {M : Type u_3} {N : Type u_4} [inst : AddMonoid M] [inst_1 : AddMonoid N] (f : M →+ N)
  (hf : ∀ (x : M), IsAddUnit (f x)) (x : M), ↑((IsAddUnit.liftRight f hf) x) = f x

theorem IsAddUnit.add_liftRight_neg E0 #

∀ {M : Type u_3} {N : Type u_4} [inst : AddMonoid M] [inst_1 : AddMonoid N] (f : M →+ N)
  (h : ∀ (x : M), IsAddUnit (f x)) (x : M), f x + ↑(-(IsAddUnit.liftRight f h) x) = 0

theorem IsUnit.mul_liftRight_inv E0 #

∀ {M : Type u_3} {N : Type u_4} [inst : Monoid M] [inst_1 : Monoid N] (f : M →* N) (h : ∀ (x : M), IsUnit (f x))
  (x : M), f x * ↑((IsUnit.liftRight f h) x)⁻¹ = 1

theorem IsAddUnit.liftRight_neg_add E0 #

∀ {M : Type u_3} {N : Type u_4} [inst : AddMonoid M] [inst_1 : AddMonoid N] (f : M →+ N)
  (h : ∀ (x : M), IsAddUnit (f x)) (x : M), ↑(-(IsAddUnit.liftRight f h) x) + f x = 0

theorem IsUnit.liftRight_inv_mul E0 #

∀ {M : Type u_3} {N : Type u_4} [inst : Monoid M] [inst_1 : Monoid N] (f : M →* N) (h : ∀ (x : M), IsUnit (f x))
  (x : M), ↑((IsUnit.liftRight f h) x)⁻¹ * f x = 1

theorem IsUnit.liftRight_apply E0 #

∀ {M : Type u_3} {N : Type u_4} [inst : Monoid M] [inst_1 : Monoid N] (f : M →* N) (hf : ∀ (x : M), IsUnit (f x))
  (x : M), (IsUnit.liftRight f hf) x = ⋯.unit

theorem IsAddUnit.liftRight_apply E0 #

∀ {M : Type u_3} {N : Type u_4} [inst : AddMonoid M] [inst_1 : AddMonoid N] (f : M →+ N)
  (hf : ∀ (x : M), IsAddUnit (f x)) (x : M), (IsAddUnit.liftRight f hf) x = ⋯.addUnit

class IsLocalHom E3 #

{R : Type u_2} → {S : Type u_3} → {F : Type u_5} → [Monoid R] → [Monoid S] → [FunLike F R S] → F → Prop

A map f between monoids is local if any a in the domain is a unit whenever f a is a unit. See IsLocalRing.local_hom_tfae for other equivalent definitions in the local ring case - from where this concept originates, but it is useful in other contexts, so we allow this generalisation in mathlib.

ctor IsLocalHom.mk E0 #

∀ {R : Type u_2} {S : Type u_3} {F : Type u_5} [inst : Monoid R] [inst_1 : Monoid S] [inst_2 : FunLike F R S] {f : F},
  (∀ (a : R), IsUnit (f a) → IsUnit a) → IsLocalHom f

theorem IsLocalHom.map_nonunit E0 #

∀ {R : Type u_2} {S : Type u_3} {F : Type u_5} {inst : Monoid R} {inst_1 : Monoid S} {inst_2 : FunLike F R S} {f : F}
  [self : IsLocalHom f] (a : R), IsUnit (f a) → IsUnit a

A local homomorphism f : R ⟶ S will send nonunits of R to nonunits of S.

theorem IsUnit.of_map E1 #

∀ {R : Type u_2} {S : Type u_3} {F : Type u_5} [inst : Monoid R] [inst_1 : Monoid S] [inst_2 : FunLike F R S] (f : F)
  [IsLocalHom f] (a : R), IsUnit (f a) → IsUnit a

theorem isUnit_of_map_unit E1 #

∀ {R : Type u_2} {S : Type u_3} {F : Type u_5} [inst : Monoid R] [inst_1 : Monoid S] [inst_2 : FunLike F R S] (f : F)
  [IsLocalHom f] (a : R), IsUnit (f a) → IsUnit a

Alias of IsUnit.of_map.

theorem isUnit_map_iff E0 #

∀ {R : Type u_2} {S : Type u_3} {F : Type u_5} [inst : Monoid R] [inst_1 : Monoid S] [inst_2 : FunLike F R S]
  [MonoidHomClass F R S] (f : F) [IsLocalHom f] (a : R), IsUnit (f a) ↔ IsUnit a

theorem isLocalHom_of_leftInverse E1 #

∀ {G : Type u_1} {R : Type u_2} {S : Type u_3} {F : Type u_5} [inst : Monoid R] [inst_1 : Monoid S]
  [inst_2 : FunLike F R S] [MonoidHomClass F R S] [inst_4 : FunLike G S R] [MonoidHomClass G S R] {f : F} (g : G),
  Function.LeftInverse ⇑g ⇑f → IsLocalHom f

instance MonoidHom.isLocalHom_comp E0 #

∀ {R : Type u_2} {S : Type u_3} {T : Type u_4} [inst : Monoid R] [inst_1 : Monoid S] [inst_2 : Monoid T] (g : S →* T)
  (f : R →* S) [IsLocalHom g] [IsLocalHom f], IsLocalHom (g.comp f)

instance isLocalHom_toMonoidHom E0 #

∀ {R : Type u_2} {S : Type u_3} {F : Type u_5} [inst : Monoid R] [inst_1 : Monoid S] [inst_2 : FunLike F R S]
  [inst_3 : MonoidHomClass F R S] (f : F) [IsLocalHom f], IsLocalHom ↑f

theorem MonoidHom.isLocalHom_of_comp E1 #

∀ {R : Type u_2} {S : Type u_3} {T : Type u_4} [inst : Monoid R] [inst_1 : Monoid S] [inst_2 : Monoid T] (f : R →* S)
  (g : S →* T) [IsLocalHom (g.comp f)], IsLocalHom f