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 / V09. Commutative algebra I: ideals, polynomials, factorization

Mathlib.RingTheory.Congruence.Basic

57 declarations and 1 deprecated aliases. Mathlib docs · Source

Congruence relations on rings

This file contains basic results concerning congruence relations on rings, which extend Con and AddCon on monoids and additive monoids.

Most of the time you likely want to use the Ideal.Quotient API that is built on top of this.

Main Definitions

  • RingCon R: the type of congruence relations respecting + and *.
  • RingConGen r: the inductively defined smallest ring congruence relation containing a given binary relation.

TODO

  • Copy across more API from Con and AddCon in Mathlib/GroupTheory/Congruence/.

Scalar multiplication

The operation of scalar multiplication • descends naturally to the quotient.

Lattice structure

The API in this section is copied from Mathlib/GroupTheory/Congruence/Defs.lean

instance RingCon.instSMulQuotient E0 #

{α : Type u_1} →
  {R : Type u_3} →
    [inst : Add R] →
      [inst_1 : MulOneClass R] → [inst_2 : SMul α R] → [IsScalarTower α R R] → (c : RingCon R) → SMul α c.Quotient

theorem RingCon.coe_smul E0 #

∀ {α : Type u_1} {R : Type u_3} [inst : Add R] [inst_1 : MulOneClass R] [inst_2 : SMul α R]
  [inst_3 : IsScalarTower α R R] (c : RingCon R) (a : α) (x : R), ↑(a • x) = a • ↑x

instance RingCon.instSMulCommClassQuotient E0 #

∀ {α : Type u_1} {β : Type u_2} {R : Type u_3} [inst : Add R] [inst_1 : MulOneClass R] [inst_2 : SMul α R]
  [inst_3 : IsScalarTower α R R] [inst_4 : SMul β R] [inst_5 : IsScalarTower β R R] (c : RingCon R)
  [SMulCommClass α β R], SMulCommClass α β c.Quotient

instance RingCon.instIsScalarTowerQuotient E0 #

∀ {α : Type u_1} {β : Type u_2} {R : Type u_3} [inst : Add R] [inst_1 : MulOneClass R] [inst_2 : SMul α R]
  [inst_3 : IsScalarTower α R R] [inst_4 : SMul β R] [inst_5 : IsScalarTower β R R] (c : RingCon R) [inst_6 : SMul α β]
  [IsScalarTower α β R], IsScalarTower α β c.Quotient

instance RingCon.instIsCentralScalarQuotient E0 #

∀ {α : Type u_1} {R : Type u_3} [inst : Add R] [inst_1 : MulOneClass R] [inst_2 : SMul α R]
  [inst_3 : IsScalarTower α R R] (c : RingCon R) [inst_4 : SMul αᵐᵒᵖ R] [inst_5 : IsCentralScalar α R],
  IsCentralScalar α c.Quotient

instance RingCon.isScalarTower_right E0 #

∀ {α : Type u_1} {R : Type u_3} [inst : Add R] [inst_1 : MulOneClass R] [inst_2 : SMul α R]
  [inst_3 : IsScalarTower α R R] (c : RingCon R), IsScalarTower α c.Quotient c.Quotient

instance RingCon.smulCommClass E0 #

∀ {α : Type u_1} {R : Type u_3} [inst : Add R] [inst_1 : MulOneClass R] [inst_2 : SMul α R]
  [inst_3 : IsScalarTower α R R] [SMulCommClass α R R] (c : RingCon R), SMulCommClass α c.Quotient c.Quotient

instance RingCon.smulCommClass' E0 #

∀ {α : Type u_1} {R : Type u_3} [inst : Add R] [inst_1 : MulOneClass R] [inst_2 : SMul α R]
  [inst_3 : IsScalarTower α R R] [SMulCommClass R α R] (c : RingCon R), SMulCommClass c.Quotient α c.Quotient

instance RingCon.instMulActionQuotientOfIsScalarTower E0 #

{α : Type u_1} →
  {R : Type u_3} →
    [inst : Monoid α] →
      [inst_1 : NonAssocSemiring R] →
        [inst_2 : MulAction α R] → [IsScalarTower α R R] → (c : RingCon R) → MulAction α c.Quotient

instance RingCon.instDistribMulActionQuotientOfIsScalarTower E0 #

{α : Type u_1} →
  {R : Type u_3} →
    [inst : Monoid α] →
      [inst_1 : NonAssocSemiring R] →
        [inst_2 : DistribMulAction α R] → [IsScalarTower α R R] → (c : RingCon R) → DistribMulAction α c.Quotient

instance RingCon.instMulSemiringActionQuotientOfIsScalarTower E0 #

{α : Type u_1} →
  {R : Type u_3} →
    [inst : Monoid α] →
      [inst_1 : Semiring R] →
        [inst_2 : MulSemiringAction α R] → [IsScalarTower α R R] → (c : RingCon R) → MulSemiringAction α c.Quotient

instance RingCon.instAlgebraQuotient E0 #

{α : Type u_1} →
  {R : Type u_3} →
    [inst : CommSemiring α] → [inst_1 : Semiring R] → [Algebra α R] → (c : RingCon R) → Algebra α c.Quotient

theorem RingCon.coe_algebraMap E0 #

∀ {α : Type u_1} {R : Type u_3} [inst : CommSemiring α] [inst_1 : Semiring R] [inst_2 : Algebra α R] (c : RingCon R)
  (s : α), ↑((algebraMap α R) s) = (algebraMap α c.Quotient) s

def RingCon.mkₐ E1 #

(α : Type u_1) →
  {R : Type u_3} →
    [inst : CommSemiring α] → [inst_1 : Semiring R] → [inst_2 : Algebra α R] → (c : RingCon R) → R →ₐ[α] c.Quotient

The algebra morphism from R to the quotient by a ring congruence.

theorem RingCon.mkₐ_apply E0 #

∀ (α : Type u_1) {R : Type u_3} [inst : CommSemiring α] [inst_1 : Semiring R] [inst_2 : Algebra α R] (c : RingCon R)
  (r : R), (RingCon.mkₐ α c) r = ↑r

theorem RingCon.mkₐ_surjective E1 #

∀ {α : Type u_1} {R : Type u_3} [inst : CommSemiring α] [inst_1 : Semiring R] [inst_2 : Algebra α R] (c : RingCon R),
  Function.Surjective ⇑(RingCon.mkₐ α c)

instance RingCon.instLE E0 #

{R : Type u_3} → [inst : Add R] → [inst_1 : Mul R] → LE (RingCon R)

For congruence relations c, d on a type M with multiplication and addition, c ≤ d iff ∀ x y ∈ M, x is related to y by d if x is related to y by c.

theorem RingCon.le_def E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] {c d : RingCon R}, c ≤ d ↔ ∀ {x y : R}, c x y → d x y

Definition of ≤ for congruence relations.

theorem RingCon.comap_mono E1 #

∀ {R : Type u_3} {R' : Type u_4} [inst : Add R] [inst_1 : Mul R] [inst_2 : Add R'] [inst_3 : Mul R'] {F : Type u_5}
  [inst_4 : FunLike F R R'] [inst_5 : AddHomClass F R R'] [inst_6 : MulHomClass F R R'] {J J' : RingCon R'} {f : F},
  J ≤ J' → J.comap f ≤ J'.comap f

instance RingCon.instInfSet E0 #

{R : Type u_3} → [inst : Add R] → [inst_1 : Mul R] → InfSet (RingCon R)

The infimum of a set of congruence relations on a given type with multiplication and addition.

theorem RingCon.sInf_toSetoid E1 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] (S : Set (RingCon R)),
  (sInf S).toSetoid = sInf ((fun x ↦ x.toSetoid) '' S)

The infimum of a set of congruence relations is the same as the infimum of the set's image under the map to the underlying equivalence relation.

theorem RingCon.coe_sInf E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] (S : Set (RingCon R)), ⇑(sInf S) = sInf (DFunLike.coe '' S)

The infimum of a set of congruence relations is the same as the infimum of the set's image under the map to the underlying binary relation.

theorem RingCon.coe_iInf E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] {ι : Sort u_5} (f : ι → RingCon R), ⇑(iInf f) = ⨅ i, ⇑(f i)

instance RingCon.instPartialOrder E0 #

{R : Type u_3} → [inst : Add R] → [inst_1 : Mul R] → PartialOrder (RingCon R)

instance RingCon.instCompleteLattice E0 #

{R : Type u_3} → [inst : Add R] → [inst_1 : Mul R] → CompleteLattice (RingCon R)

The complete lattice of congruence relations on a given type with multiplication and addition.

theorem RingCon.coe_top E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R], ⇑⊤ = ⊤

theorem RingCon.coe_bot E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R], ⇑⊥ = Eq

theorem RingCon.toCon_top E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R], ⊤.toCon = ⊤

theorem RingCon.toCon_bot E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R], ⊥.toCon = ⊥

theorem RingCon.toCon_eq_top E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] {c : RingCon R}, c.toCon = ⊤ ↔ c = ⊤

theorem RingCon.toCon_eq_bot E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] {c : RingCon R}, c.toCon = ⊥ ↔ c = ⊥

theorem RingCon.subsingleton_quotient E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] {c : RingCon R}, Subsingleton c.Quotient ↔ c = ⊤

theorem RingCon.nontrivial_quotient E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] {c : RingCon R}, Nontrivial c.Quotient ↔ c ≠ ⊤

theorem RingCon.coe_inf E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] {c d : RingCon R}, ⇑(c ⊓ d) = ⇑c ⊓ ⇑d

The infimum of two congruence relations equals the infimum of the underlying binary operations.

theorem RingCon.inf_iff_and E1 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] {c d : RingCon R} {x y : R}, (c ⊓ d) x y ↔ c x y ∧ d x y

Definition of the infimum of two congruence relations.

instance RingCon.instNontrivial E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] [Nontrivial R], Nontrivial (RingCon R)

instance RingCon.instSubsingleton E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] [Subsingleton R], Subsingleton (RingCon R)

theorem RingCon.nontrivial_iff E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R], Nontrivial (RingCon R) ↔ Nontrivial R

theorem RingCon.subsingleton_iff E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R], Subsingleton (RingCon R) ↔ Subsingleton R

theorem RingCon.le_ringConGen E1 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] {r : R → R → Prop}, r ≤ ⇑(ringConGen r)

theorem RingCon.ringConGen_eq E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] (r : R → R → Prop),
  ringConGen r = sInf {s | ∀ (x y : R), r x y → s x y}

The inductively defined smallest congruence relation containing a binary relation r equals the infimum of the set of congruence relations containing r.

theorem RingCon.ringConGen_le E1 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] {r : R → R → Prop} {c : RingCon R}, ringConGen r ≤ c ↔ r ≤ ⇑c

The smallest congruence relation containing a binary relation r is contained in any congruence relation containing r.

def RingCon.gi E1 #

(R : Type u_3) → [inst : Add R] → [inst_1 : Mul R] → GaloisInsertion ringConGen DFunLike.coe

There is a Galois insertion of congruence relations on a type with multiplication and addition R into binary relations on R.

theorem RingCon.ringConGen_monotone E1 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R], Monotone ringConGen

theorem RingCon.ringConGen_mono E1 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] {r s : R → R → Prop},
  (∀ (x y : R), r x y → s x y) → ringConGen r ≤ ringConGen s

Given binary relations r, s with r contained in s, the smallest congruence relation containing s contains the smallest congruence relation containing r.

theorem RingCon.ringConGen_of_ringCon E1 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] (c : RingCon R), ringConGen ⇑c = c

Congruence relations equal the smallest congruence relation in which they are contained.

theorem RingCon.ringConGen_idem E1 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] (r : R → R → Prop), ringConGen ⇑(ringConGen r) = ringConGen r

The map sending a binary relation to the smallest congruence relation in which it is contained is idempotent.

theorem RingCon.ringConGen_sup E1 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] (r s : R → R → Prop), ringConGen (r ⊔ s) = ringConGen r ⊔ ringConGen s

theorem RingCon.ringConGen_sSup E1 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] (rs : Set (R → R → Prop)),
  ringConGen (sSup rs) = ⨆ r ∈ rs, ringConGen r

theorem RingCon.ringConGen_iSup E1 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] {ι : Sort u_5} (r : ι → R → R → Prop),
  ringConGen (iSup r) = ⨆ i, ringConGen (r i)

theorem RingCon.sup_def E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] (c d : RingCon R), c ⊔ d = ringConGen (⇑c ⊔ ⇑d)

The supremum of two congruence relations equals the smallest congruence relation containing the supremum of the underlying binary operations.

theorem RingCon.sup_eq_ringConGen E1 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] (c d : RingCon R), c ⊔ d = ringConGen fun x y ↦ c x y ∨ d x y

The supremum of congruence relations c, d equals the smallest congruence relation containing the binary relation 'x is related to y by c or d'.

theorem RingCon.sSup_def E0 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] (S : Set (RingCon R)), sSup S = ringConGen (sSup (DFunLike.coe '' S))

The supremum of a set of congruence relations is the same as the smallest congruence relation containing the supremum of the set's image under the map to the underlying binary relation.

theorem RingCon.sSup_eq_ringConGen E1 #

∀ {R : Type u_3} [inst : Add R] [inst_1 : Mul R] (S : Set (RingCon R)), sSup S = ringConGen fun x y ↦ ∃ c ∈ S, c x y

The supremum of a set of congruence relations S equals the smallest congruence relation containing the binary relation 'there exists c ∈ S such that x is related to y by c'.

theorem RingCon.le_comap_ringConGen E1 #

∀ {R : Type u_3} {R' : Type u_4} [inst : Add R] [inst_1 : Mul R] [inst_2 : Add R'] [inst_3 : Mul R'] {F : Type u_5}
  [inst_4 : FunLike F R' R] [inst_5 : MulHomClass F R' R] [inst_6 : AddHomClass F R' R] (r : R → R → Prop) (f : F),
  ringConGen (Function.onFun r ⇑f) ≤ (ringConGen r).comap f

theorem RingCon.comap_injective E1 #

∀ {R : Type u_3} {R' : Type u_4} [inst : Add R] [inst_1 : Mul R] [inst_2 : Add R'] [inst_3 : Mul R'] {F : Type u_5}
  [inst_4 : FunLike F R' R] [inst_5 : MulHomClass F R' R] [inst_6 : AddHomClass F R' R] (f : F),
  Function.Surjective ⇑f → Function.Injective fun x ↦ x.comap f

theorem RingCon.comap_ringConGen_equiv E1 #

∀ {R : Type u_3} {R' : Type u_4} [inst : Add R] [inst_1 : Mul R] [inst_2 : Add R'] [inst_3 : Mul R'] {F : Type u_5}
  [inst_4 : EquivLike F R' R] [inst_5 : RingEquivClass F R' R] (r : R → R → Prop) (f : F),
  (ringConGen r).comap f = ringConGen (Function.onFun r ⇑f)

Deprecated aliases

NameNew nameSince
RingCon.comap_ringConGen_ringEquivRingCon.comap_ringConGen_equiv2026-10-08