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.GroupTheory.Congruence.Basic

67 declarations. Mathlib docs · Source

Congruence relations

This file proves basic properties of the quotient of a type by a congruence relation.

The second half of the file concerns congruence relations on monoids, in which case the quotient by the congruence relation is also a monoid. There are results about the universal property of quotients of monoids, and the isomorphism theorems for monoids.

Implementation notes

A congruence relation on a monoid M can be thought of as a submonoid of M × M for which membership is an equivalence relation, but whilst this fact is established in the file, it is not used, since this perspective adds more layers of definitional unfolding.

Tags

congruence, congruence relation, quotient, quotient by congruence relation, monoid, quotient monoid, isomorphism theorems

theorem Con.comap.congr_simp E1 #

∀ {M : Type u_1} {N : Type u_2} [inst : Mul M] [inst_1 : Mul N] (f f_1 : M → N) (e_f : f = f_1)
  (H : ∀ (x y : M), f (x * y) = f x * f y) (c c_1 : Con N), c = c_1 → Con.comap f H c = Con.comap f_1 ⋯ c_1

def Con.prod E1 #

{M : Type u_1} → {N : Type u_2} → [inst : Mul M] → [inst_1 : Mul N] → Con M → Con N → Con (M × N)

Given types with multiplications M, N, the product of two congruence relations c on M and d on N: (x₁, x₂), (y₁, y₂) ∈ M × N are related by c.prod d iff x₁ is related to y₁ by c and x₂ is related to y₂ by d.

def AddCon.prod E1 #

{M : Type u_1} → {N : Type u_2} → [inst : Add M] → [inst_1 : Add N] → AddCon M → AddCon N → AddCon (M × N)

Given types with additions M, N, the product of two congruence relations c on M and d on N: (x₁, x₂), (y₁, y₂) ∈ M × N are related by c.prod d iff x₁ is related to y₁ by c and x₂ is related to y₂ by d.

def Con.pi E1 #

{ι : Type u_4} → {f : ι → Type u_5} → [inst : (i : ι) → Mul (f i)] → ((i : ι) → Con (f i)) → Con ((i : ι) → f i)

The product of an indexed collection of congruence relations.

def AddCon.pi E1 #

{ι : Type u_4} → {f : ι → Type u_5} → [inst : (i : ι) → Add (f i)] → ((i : ι) → AddCon (f i)) → AddCon ((i : ι) → f i)

The product of an indexed collection of additive congruence relations.

def Con.congr E1 #

{M : Type u_1} →
  {N : Type u_2} →
    [inst : Mul M] →
      [inst_1 : Mul N] → {c : Con M} → {d : Con N} → (e : M ≃* N) → c = Con.comap ⇑e ⋯ d → c.Quotient ≃* d.Quotient

A multiplicative equivalence e : α ≃* β generates an equivalence between quotient spaces, if it is compatible with the relations.

def AddCon.congr E1 #

{M : Type u_1} →
  {N : Type u_2} →
    [inst : Add M] →
      [inst_1 : Add N] →
        {c : AddCon M} → {d : AddCon N} → (e : M ≃+ N) → c = AddCon.comap ⇑e ⋯ d → c.Quotient ≃+ d.Quotient

An additive equivalence e : α ≃+ β generates an equivalence between quotient spaces, if it is compatible with the relations.

theorem Con.congr_mk E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : Mul M] [inst_1 : Mul N] {c : Con M} {d : Con N} (e : M ≃* N)
  (h : c = Con.comap ⇑e ⋯ d) (a : M), (Con.congr e h) ↑a = ↑(e a)

theorem AddCon.congr_mk E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : Add M] [inst_1 : Add N] {c : AddCon M} {d : AddCon N} (e : M ≃+ N)
  (h : c = AddCon.comap ⇑e ⋯ d) (a : M), (AddCon.congr e h) ↑a = ↑(e a)

theorem AddCon.congr_symm E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : Add M] [inst_1 : Add N] {c : AddCon M} {d : AddCon N} (e : M ≃+ N)
  (h : c = AddCon.comap ⇑e ⋯ d), (AddCon.congr e h).symm = AddCon.congr e.symm ⋯

theorem Con.congr_symm E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : Mul M] [inst_1 : Mul N] {c : Con M} {d : Con N} (e : M ≃* N)
  (h : c = Con.comap ⇑e ⋯ d), (Con.congr e h).symm = Con.congr e.symm ⋯

theorem Con.comap_conGen_equiv E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : Mul M] [inst_1 : Mul N] (f : M ≃* N) (rel : N → N → Prop),
  Con.comap ⇑f ⋯ (conGen rel) = conGen fun x y ↦ rel (f x) (f y)

theorem AddCon.comap_addConGen_equiv E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : Add M] [inst_1 : Add N] (f : M ≃+ N) (rel : N → N → Prop),
  AddCon.comap ⇑f ⋯ (addConGen rel) = addConGen fun x y ↦ rel (f x) (f y)

theorem Con.comap_conGen_of_bijective E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : Mul M] [inst_1 : Mul N] (f : M → N),
  Function.Bijective f →
    ∀ (H : ∀ (x y : M), f (x * y) = f x * f y) (rel : N → N → Prop),
      Con.comap f H (conGen rel) = conGen fun x y ↦ rel (f x) (f y)

theorem AddCon.comap_addConGen_of_bijective E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : Add M] [inst_1 : Add N] (f : M → N),
  Function.Bijective f →
    ∀ (H : ∀ (x y : M), f (x + y) = f x + f y) (rel : N → N → Prop),
      AddCon.comap f H (addConGen rel) = addConGen fun x y ↦ rel (f x) (f y)

def Con.submonoid E1 #

{M : Type u_1} → [inst : MulOneClass M] → Con M → Submonoid (M × M)

The submonoid of M × M defined by a congruence relation on a monoid M.

def AddCon.addSubmonoid E1 #

{M : Type u_1} → [inst : AddZeroClass M] → AddCon M → AddSubmonoid (M × M)

The AddSubmonoid of M × M defined by an additive congruence relation on an AddMonoid M.

def Con.ofSubmonoid E1 #

{M : Type u_1} → [inst : MulOneClass M] → (N : Submonoid (M × M)) → (Equivalence fun x y ↦ (x, y) ∈ N) → Con M

The congruence relation on a monoid M from a submonoid of M × M for which membership is an equivalence relation.

def AddCon.ofAddSubmonoid E1 #

{M : Type u_1} → [inst : AddZeroClass M] → (N : AddSubmonoid (M × M)) → (Equivalence fun x y ↦ (x, y) ∈ N) → AddCon M

The additive congruence relation on an AddMonoid M from an AddSubmonoid of M × M for which membership is an equivalence relation.

instance Con.toSubmonoid E0 #

{M : Type u_1} → [inst : MulOneClass M] → Coe (Con M) (Submonoid (M × M))

Coercion from a congruence relation c on a monoid M to the submonoid of M × M whose elements are (x, y) such that x is related to y by c.

instance AddCon.toAddSubmonoid E0 #

{M : Type u_1} → [inst : AddZeroClass M] → Coe (AddCon M) (AddSubmonoid (M × M))

Coercion from a congruence relation c on an AddMonoid M to the AddSubmonoid of M × M whose elements are (x, y) such that x is related to y by c.

theorem Con.mem_coe E0 #

∀ {M : Type u_1} [inst : MulOneClass M] {c : Con M} {x y : M}, (x, y) ∈ ↑c ↔ (x, y) ∈ c

theorem AddCon.mem_coe E0 #

∀ {M : Type u_1} [inst : AddZeroClass M] {c : AddCon M} {x y : M}, (x, y) ∈ ↑c ↔ (x, y) ∈ c

theorem Con.to_submonoid_inj E1 #

∀ {M : Type u_1} [inst : MulOneClass M] (c d : Con M), ↑c = ↑d → c = d

theorem AddCon.to_addSubmonoid_inj E1 #

∀ {M : Type u_1} [inst : AddZeroClass M] (c d : AddCon M), ↑c = ↑d → c = d

theorem Con.le_iff E0 #

∀ {M : Type u_1} [inst : MulOneClass M] {c d : Con M}, c ≤ d ↔ ↑c ≤ ↑d

theorem AddCon.le_iff E0 #

∀ {M : Type u_1} [inst : AddZeroClass M] {c d : AddCon M}, c ≤ d ↔ ↑c ≤ ↑d

theorem AddCon.mrange_mk' E0 #

∀ {M : Type u_1} [inst : AddZeroClass M] {c : AddCon M}, AddMonoidHom.mrange c.mk' = ⊤

theorem Con.mrange_mk' E0 #

∀ {M : Type u_1} [inst : MulOneClass M] {c : Con M}, MonoidHom.mrange c.mk' = ⊤

theorem Con.lift_range E1 #

∀ {M : Type u_1} {P : Type u_3} [inst : MulOneClass M] [inst_1 : MulOneClass P] {c : Con M} {f : M →* P}
  (H : c ≤ Con.ker f), MonoidHom.mrange (c.lift f H) = MonoidHom.mrange f

Given a congruence relation c on a monoid and a homomorphism f constant on c's equivalence classes, f has the same image as the homomorphism that f induces on the quotient.

theorem AddCon.lift_range E1 #

∀ {M : Type u_1} {P : Type u_3} [inst : AddZeroClass M] [inst_1 : AddZeroClass P] {c : AddCon M} {f : M →+ P}
  (H : c ≤ AddCon.ker f), AddMonoidHom.mrange (c.lift f H) = AddMonoidHom.mrange f

Given an additive congruence relation c on an AddMonoid and a homomorphism f constant on c's equivalence classes, f has the same image as the homomorphism that f induces on the quotient.

theorem Con.kerLift_range_eq E0 #

∀ {M : Type u_1} {P : Type u_3} [inst : MulOneClass M] [inst_1 : MulOneClass P] {f : M →* P},
  MonoidHom.mrange (Con.kerLift f) = MonoidHom.mrange f

Given a monoid homomorphism f, the induced homomorphism on the quotient by f's kernel has the same image as f.

theorem AddCon.kerLift_range_eq E0 #

∀ {M : Type u_1} {P : Type u_3} [inst : AddZeroClass M] [inst_1 : AddZeroClass P] {f : M →+ P},
  AddMonoidHom.mrange (AddCon.kerLift f) = AddMonoidHom.mrange f

Given an AddMonoid homomorphism f, the induced homomorphism on the quotient by f's kernel has the same image as f.

def Con.quotientKerEquivRange E1 #

{M : Type u_1} →
  {P : Type u_3} →
    [inst : MulOneClass M] → [inst_1 : MulOneClass P] → (f : M →* P) → (Con.ker f).Quotient ≃* ↥(MonoidHom.mrange f)

The first isomorphism theorem for monoids.

def AddCon.quotientKerEquivRange E1 #

{M : Type u_1} →
  {P : Type u_3} →
    [inst : AddZeroClass M] →
      [inst_1 : AddZeroClass P] → (f : M →+ P) → (AddCon.ker f).Quotient ≃+ ↥(AddMonoidHom.mrange f)

The first isomorphism theorem for AddMonoids.

def Con.quotientKerEquivOfRightInverse E1 #

{M : Type u_1} →
  {P : Type u_3} →
    [inst : MulOneClass M] →
      [inst_1 : MulOneClass P] → (f : M →* P) → (g : P → M) → Function.RightInverse g ⇑f → (Con.ker f).Quotient ≃* P

The first isomorphism theorem for monoids in the case of a homomorphism with right inverse.

def AddCon.quotientKerEquivOfRightInverse E1 #

{M : Type u_1} →
  {P : Type u_3} →
    [inst : AddZeroClass M] →
      [inst_1 : AddZeroClass P] → (f : M →+ P) → (g : P → M) → Function.RightInverse g ⇑f → (AddCon.ker f).Quotient ≃+ P

The first isomorphism theorem for AddMonoids in the case of a homomorphism with right inverse.

theorem Con.quotientKerEquivOfRightInverse_symm_apply E0 #

∀ {M : Type u_1} {P : Type u_3} [inst : MulOneClass M] [inst_1 : MulOneClass P] (f : M →* P) (g : P → M)
  (hf : Function.RightInverse g ⇑f) (a : P), (Con.quotientKerEquivOfRightInverse f g hf).symm a = (Con.toQuotient ∘ g) a

theorem Con.quotientKerEquivOfRightInverse_apply E0 #

∀ {M : Type u_1} {P : Type u_3} [inst : MulOneClass M] [inst_1 : MulOneClass P] (f : M →* P) (g : P → M)
  (hf : Function.RightInverse g ⇑f) (a : (Con.ker f).Quotient),
  (Con.quotientKerEquivOfRightInverse f g hf) a = (Con.kerLift f) a

theorem AddCon.quotientKerEquivOfRightInverse_apply E0 #

∀ {M : Type u_1} {P : Type u_3} [inst : AddZeroClass M] [inst_1 : AddZeroClass P] (f : M →+ P) (g : P → M)
  (hf : Function.RightInverse g ⇑f) (a : (AddCon.ker f).Quotient),
  (AddCon.quotientKerEquivOfRightInverse f g hf) a = (AddCon.kerLift f) a

theorem AddCon.quotientKerEquivOfRightInverse_symm_apply E0 #

∀ {M : Type u_1} {P : Type u_3} [inst : AddZeroClass M] [inst_1 : AddZeroClass P] (f : M →+ P) (g : P → M)
  (hf : Function.RightInverse g ⇑f) (a : P),
  (AddCon.quotientKerEquivOfRightInverse f g hf).symm a = (AddCon.toQuotient ∘ g) a

def Con.quotientKerEquivOfSurjective E1 #

{M : Type u_1} →
  {P : Type u_3} →
    [inst : MulOneClass M] →
      [inst_1 : MulOneClass P] → (f : M →* P) → Function.Surjective ⇑f → (Con.ker f).Quotient ≃* P

The first isomorphism theorem for Monoids in the case of a surjective homomorphism.

For a computable version, see Con.quotientKerEquivOfRightInverse.

def AddCon.quotientKerEquivOfSurjective E1 #

{M : Type u_1} →
  {P : Type u_3} →
    [inst : AddZeroClass M] →
      [inst_1 : AddZeroClass P] → (f : M →+ P) → Function.Surjective ⇑f → (AddCon.ker f).Quotient ≃+ P

The first isomorphism theorem for AddMonoids in the case of a surjective homomorphism.

For a computable version, see AddCon.quotientKerEquivOfRightInverse.

def Con.comapQuotientEquivOfSurj E1 #

{M : Type u_1} →
  {N : Type u_2} →
    [inst : MulOneClass M] →
      [inst_1 : MulOneClass N] →
        (c : Con M) → (f : N →* M) → Function.Surjective ⇑f → (Con.comap ⇑f ⋯ c).Quotient ≃* c.Quotient

If e : M →* N is surjective then (c.comap e).Quotient ≃* c.Quotient with c : Con N

def AddCon.comapQuotientEquivOfSurj E1 #

{M : Type u_1} →
  {N : Type u_2} →
    [inst : AddZeroClass M] →
      [inst_1 : AddZeroClass N] →
        (c : AddCon M) → (f : N →+ M) → Function.Surjective ⇑f → (AddCon.comap ⇑f ⋯ c).Quotient ≃+ c.Quotient

If e : M →* N is surjective then (c.comap e).Quotient ≃* c.Quotient with c : AddCon N

theorem Con.comapQuotientEquivOfSurj_mk E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : MulOneClass M] [inst_1 : MulOneClass N] (c : Con M) {f : N →* M}
  (hf : Function.Surjective ⇑f) (x : N), (c.comapQuotientEquivOfSurj f hf) ↑x = ↑(f x)

theorem AddCon.comapQuotientEquivOfSurj_mk E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : AddZeroClass M] [inst_1 : AddZeroClass N] (c : AddCon M) {f : N →+ M}
  (hf : Function.Surjective ⇑f) (x : N), (c.comapQuotientEquivOfSurj f hf) ↑x = ↑(f x)

theorem AddCon.comapQuotientEquivOfSurj_symm_mk E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : AddZeroClass M] [inst_1 : AddZeroClass N] (c : AddCon M) {f : N →+ M}
  (hf : Function.Surjective ⇑f) (x : N), (c.comapQuotientEquivOfSurj f hf).symm ↑(f x) = ↑x

theorem Con.comapQuotientEquivOfSurj_symm_mk E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : MulOneClass M] [inst_1 : MulOneClass N] (c : Con M) {f : N →* M}
  (hf : Function.Surjective ⇑f) (x : N), (c.comapQuotientEquivOfSurj f hf).symm ↑(f x) = ↑x

theorem Con.comapQuotientEquivOfSurj_symm_mk' E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : MulOneClass M] [inst_1 : MulOneClass N] (c : Con M) (f : N ≃* M) (x : N),
  (c.comapQuotientEquivOfSurj ↑f ⋯).symm ⟦f x⟧ = ↑x

This version infers the surjectivity of the function from a MulEquiv function

theorem AddCon.comapQuotientEquivOfSurj_symm_mk' E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : AddZeroClass M] [inst_1 : AddZeroClass N] (c : AddCon M) (f : N ≃+ M) (x : N),
  (c.comapQuotientEquivOfSurj ↑f ⋯).symm ⟦f x⟧ = ↑x

This version infers the surjectivity of the function from a MulEquiv function

def Con.comapQuotientEquiv E1 #

{M : Type u_1} →
  {N : Type u_2} →
    [inst : MulOneClass M] →
      [inst_1 : MulOneClass N] →
        (c : Con M) → (f : N →* M) → (Con.comap ⇑f ⋯ c).Quotient ≃* ↥(MonoidHom.mrange (c.mk'.comp f))

The second isomorphism theorem for monoids.

def AddCon.comapQuotientEquiv E1 #

{M : Type u_1} →
  {N : Type u_2} →
    [inst : AddZeroClass M] →
      [inst_1 : AddZeroClass N] →
        (c : AddCon M) → (f : N →+ M) → (AddCon.comap ⇑f ⋯ c).Quotient ≃+ ↥(AddMonoidHom.mrange (c.mk'.comp f))

The second isomorphism theorem for AddMonoids.

def Con.quotientQuotientEquivQuotient E1 #

{M : Type u_1} → [inst : MulOneClass M] → (c d : Con M) → (h : c ≤ d) → (Con.ker (c.map d h)).Quotient ≃* d.Quotient

The third isomorphism theorem for monoids.

def AddCon.quotientQuotientEquivQuotient E1 #

{M : Type u_1} →
  [inst : AddZeroClass M] → (c d : AddCon M) → (h : c ≤ d) → (AddCon.ker (c.map d h)).Quotient ≃+ d.Quotient

The third isomorphism theorem for AddMonoids.

theorem AddCon.vadd E1 #

∀ {α : Type u_4} {M : Type u_5} [inst : AddZeroClass M] [inst_1 : VAdd α M] [VAddAssocClass α M M] (c : AddCon M)
  (a : α) {w x : M}, c w x → c (a +ᵥ w) (a +ᵥ x)

theorem Con.smul E1 #

∀ {α : Type u_4} {M : Type u_5} [inst : MulOneClass M] [inst_1 : SMul α M] [IsScalarTower α M M] (c : Con M) (a : α)
  {w x : M}, c w x → c (a • w) (a • x)

instance Con.instSMul E0 #

{α : Type u_4} →
  {M : Type u_5} →
    [inst : MulOneClass M] → [inst_1 : SMul α M] → [IsScalarTower α M M] → (c : Con M) → SMul α c.Quotient

instance AddCon.instVAdd E0 #

{α : Type u_4} →
  {M : Type u_5} →
    [inst : AddZeroClass M] → [inst_1 : VAdd α M] → [VAddAssocClass α M M] → (c : AddCon M) → VAdd α c.Quotient

theorem AddCon.coe_vadd E0 #

∀ {α : Type u_4} {M : Type u_5} [inst : AddZeroClass M] [inst_1 : VAdd α M] [inst_2 : VAddAssocClass α M M]
  (c : AddCon M) (a : α) (x : M), ↑(a +ᵥ x) = a +ᵥ ↑x

theorem Con.coe_smul E0 #

∀ {α : Type u_4} {M : Type u_5} [inst : MulOneClass M] [inst_1 : SMul α M] [inst_2 : IsScalarTower α M M] (c : Con M)
  (a : α) (x : M), ↑(a • x) = a • ↑x

instance Con.instSMulCommClass E0 #

∀ {α : Type u_4} {β : Type u_5} {M : Type u_6} [inst : MulOneClass M] [inst_1 : SMul α M] [inst_2 : SMul β M]
  [inst_3 : IsScalarTower α M M] [inst_4 : IsScalarTower β M M] [SMulCommClass α β M] (c : Con M),
  SMulCommClass α β c.Quotient

instance Con.instIsScalarTower E0 #

∀ {α : Type u_4} {β : Type u_5} {M : Type u_6} [inst : MulOneClass M] [inst_1 : SMul α β] [inst_2 : SMul α M]
  [inst_3 : SMul β M] [inst_4 : IsScalarTower α M M] [inst_5 : IsScalarTower β M M] [IsScalarTower α β M] (c : Con M),
  IsScalarTower α β c.Quotient

instance Con.instIsCentralScalar E0 #

∀ {α : Type u_4} {M : Type u_5} [inst : MulOneClass M] [inst_1 : SMul α M] [inst_2 : SMul αᵐᵒᵖ M]
  [inst_3 : IsScalarTower α M M] [inst_4 : IsScalarTower αᵐᵒᵖ M M] [IsCentralScalar α M] (c : Con M),
  IsCentralScalar α c.Quotient

instance AddCon.addAction E0 #

{α : Type u_4} →
  {M : Type u_5} →
    [inst : AddMonoid α] →
      [inst_1 : AddZeroClass M] →
        [inst_2 : AddAction α M] → [VAddAssocClass α M M] → (c : AddCon M) → AddAction α c.Quotient

instance Con.mulAction E0 #

{α : Type u_4} →
  {M : Type u_5} →
    [inst : Monoid α] →
      [inst_1 : MulOneClass M] → [inst_2 : MulAction α M] → [IsScalarTower α M M] → (c : Con M) → MulAction α c.Quotient

instance Con.mulDistribMulAction E0 #

{α : Type u_4} →
  {M : Type u_5} →
    [inst : Monoid α] →
      [inst_1 : Monoid M] →
        [inst_2 : MulDistribMulAction α M] → [IsScalarTower α M M] → (c : Con M) → MulDistribMulAction α c.Quotient