Congruence relations on rings #
This file defines 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 #
- Use this for
RingQuot
too. - Copy across more API from
Con
andAddCon
inGroupTheory/Congruence.lean
.
A congruence relation on a type with an addition and multiplication is an equivalence relation which preserves both.
- iseqv : Equivalence ⇑self.toSetoid
The inductively defined smallest ring congruence relation containing a given binary relation.
- of {R : Type u_1} [Add R] [Mul R] {r : R → R → Prop} (x y : R) : r x y → Rel r x y
- refl {R : Type u_1} [Add R] [Mul R] {r : R → R → Prop} (x : R) : Rel r x x
- symm {R : Type u_1} [Add R] [Mul R] {r : R → R → Prop} {x y : R} : Rel r x y → Rel r y x
- trans {R : Type u_1} [Add R] [Mul R] {r : R → R → Prop} {x y z : R} : Rel r x y → Rel r y z → Rel r x z
- add {R : Type u_1} [Add R] [Mul R] {r : R → R → Prop} {w x y z : R} : Rel r w x → Rel r y z → Rel r (w + y) (x + z)
- mul {R : Type u_1} [Add R] [Mul R] {r : R → R → Prop} {w x y z : R} : Rel r w x → Rel r y z → Rel r (w * y) (x * z)
The inductively defined smallest ring congruence relation containing a given binary relation.
Equations
- ringConGen r = { r := RingConGen.Rel r, iseqv := ⋯, mul' := ⋯, add' := ⋯ }
Equations
- RingCon.instInhabited = { default := ringConGen EmptyRelation }
Pulling back a RingCon
across a ring homomorphism.
The morphism into the quotient by a congruence relation
Equations
- ↑r = Quotient.mk'' r
Coercion from a type with addition and multiplication to its quotient by a congruence relation.
See Note [use has_coe_t].
Equations
- c.instCoeTCQuotient = { coe := RingCon.toQuotient }
Basic notation #
The basic algebraic notation, 0
, 1
, +
, *
, -
, ^
, descend naturally under the quotient
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
- c.instNatCastQuotient = { natCast := fun (n : ℕ) => ↑↑n }
Equations
- c.instIntCastQuotient = { intCast := fun (z : ℤ) => ↑↑z }
Algebraic structure #
The operations above on the quotient by c : RingCon R
preserve the algebraic structure of R
.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- c.instNonUnitalSemiringQuotient = { toNonUnitalNonAssocSemiring := c.instNonUnitalNonAssocSemiringQuotient, mul_assoc := ⋯ }
Equations
- c.instCommSemiringQuotient = { toSemiring := c.instSemiringQuotient, mul_comm := ⋯ }
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- c.instNonUnitalRingQuotient = { toNonUnitalNonAssocRing := c.instNonUnitalNonAssocRingQuotient, mul_assoc := ⋯ }
Equations
- c.instCommRingQuotient = { toRing := c.instRingQuotient, mul_comm := ⋯ }
The natural homomorphism from a ring to its quotient by a congruence relation.
Equations
- c.mk' = { toFun := RingCon.toQuotient, map_one' := ⋯, map_mul' := ⋯, map_zero' := ⋯, map_add' := ⋯ }