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.Hom.CompTypeclasses

14 declarations. Mathlib docs · Source

Propositional typeclasses on several monoid homs

This file contains typeclasses used in the definition of equivariant maps, in the spirit what was initially developed by Frédéric Dupuis and Heather Macbeth for linear maps. However, we do not expect that all maps should be guessed automatically, as it happens for linear maps.

If φ, ψ… are monoid homs and M, N… are monoids, we add two instances:

  • MonoidHom.CompTriple φ ψ χ, which expresses that ψ.comp φ = χ
  • MonoidHom.IsId φ, which expresses that φ = id

Some basic lemmas are proved:

  • MonoidHom.CompTriple.comp asserts MonoidHom.CompTriple φ ψ (ψ.comp φ)
  • MonoidHom.CompTriple.id_comp asserts MonoidHom.CompTriple φ ψ ψ in the presence of MonoidHom.IsId φ
  • its variant MonoidHom.CompTriple.comp_id

TODO :

  • align with RingHomCompTriple
  • probably rename MonoidHom.CompTriple as MonoidHomCompTriple (or, on the opposite, rename RingHomCompTriple as RingHom.CompTriple)
  • does one need AddHom.CompTriple ?

class MonoidHom.CompTriple E1 #

{M : Type u_1} →
  {N : Type u_2} →
    {P : Type u_3} →
      [inst : Monoid M] → [inst_1 : Monoid N] → [inst_2 : Monoid P] → (M →* N) → (N →* P) → outParam (M →* P) → Prop

Class of composing triples

ctor MonoidHom.CompTriple.mk E0 #

∀ {M : Type u_1} {N : Type u_2} {P : Type u_3} [inst : Monoid M] [inst_1 : Monoid N] [inst_2 : Monoid P] {φ : M →* N}
  {ψ : N →* P} {χ : outParam (M →* P)}, ψ.comp φ = χ → φ.CompTriple ψ χ

theorem MonoidHom.CompTriple.comp_eq E0 #

∀ {M : Type u_1} {N : Type u_2} {P : Type u_3} {inst : Monoid M} {inst_1 : Monoid N} {inst_2 : Monoid P} {φ : M →* N}
  {ψ : N →* P} {χ : outParam (M →* P)} [self : φ.CompTriple ψ χ], ψ.comp φ = χ

The maps form a commuting triangle

class MonoidHom.CompTriple.IsId E1 #

{M : Type u_1} → [inst : Monoid M] → (M →* M) → Prop

Class of Id maps

ctor MonoidHom.CompTriple.IsId.mk E0 #

∀ {M : Type u_1} [inst : Monoid M] {σ : M →* M}, σ = MonoidHom.id M → MonoidHom.CompTriple.IsId σ

instance MonoidHom.CompTriple.instIsId E0 #

∀ {M : Type u_4} [inst : Monoid M], MonoidHom.CompTriple.IsId (MonoidHom.id M)

instance MonoidHom.CompTriple.instIsIdOfIsIdCoe E0 #

∀ {M : Type u_1} [inst : Monoid M] {σ : M →* M} [h : CompTriple.IsId ⇑σ], MonoidHom.CompTriple.IsId σ

instance MonoidHom.CompTriple.instComp_id E0 #

∀ {N : Type u_4} {P : Type u_5} [inst : Monoid N] [inst_1 : Monoid P] {φ : N →* N} [MonoidHom.CompTriple.IsId φ]
  {ψ : N →* P}, φ.CompTriple ψ ψ

instance MonoidHom.CompTriple.instId_comp E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Monoid M] [inst_1 : Monoid N] {φ : M →* N} {ψ : N →* N}
  [MonoidHom.CompTriple.IsId ψ], φ.CompTriple ψ φ

theorem MonoidHom.CompTriple.comp_inv E1 #

∀ {M : Type u_1} {N : Type u_2} [inst : Monoid M] [inst_1 : Monoid N] {φ : M →* N} {ψ : N →* M},
  Function.RightInverse ⇑φ ⇑ψ → ∀ {χ : M →* M} [MonoidHom.CompTriple.IsId χ], φ.CompTriple ψ χ

instance MonoidHom.CompTriple.instRootCompTriple E0 #

∀ {M : Type u_1} {N : Type u_2} {P : Type u_3} [inst : Monoid M] [inst_1 : Monoid N] [inst_2 : Monoid P] {φ : M →* N}
  {ψ : N →* P} {χ : M →* P} [κ : φ.CompTriple ψ χ], CompTriple ⇑φ ⇑ψ ⇑χ

theorem MonoidHom.CompTriple.comp E1 #

∀ {M : Type u_1} {N : Type u_2} {P : Type u_3} [inst : Monoid M] [inst_1 : Monoid N] [inst_2 : Monoid P] {φ : M →* N}
  {ψ : N →* P}, φ.CompTriple ψ (ψ.comp φ)

φ, ψ and ψ.comp φ form a MonoidHom.CompTriple

(to be used with care, because no simplification is done)

theorem MonoidHom.CompTriple.comp_apply E0 #

∀ {M : Type u_1} {N : Type u_2} {P : Type u_3} [inst : Monoid M] [inst_1 : Monoid N] [inst_2 : Monoid P] {φ : M →* N}
  {ψ : N →* P} {χ : M →* P}, φ.CompTriple ψ χ → ∀ (x : M), ψ (φ x) = χ x

theorem MonoidHom.CompTriple.comp_assoc E1 #

∀ {M : Type u_1} {N : Type u_2} {P : Type u_3} [inst : Monoid M] [inst_1 : Monoid N] [inst_2 : Monoid P] {Q : Type u_4}
  [inst_3 : Monoid Q] {φ₁ : M →* N} {φ₂ : N →* P} {φ₁₂ : M →* P},
  φ₁.CompTriple φ₂ φ₁₂ →
    ∀ {φ₃ : P →* Q} {φ₂₃ : N →* Q},
      φ₂.CompTriple φ₃ φ₂₃ → ∀ {φ₁₂₃ : M →* Q}, φ₁.CompTriple φ₂₃ φ₁₂₃ ↔ φ₁₂.CompTriple φ₃ φ₁₂₃