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
Instances For
The inductively defined smallest ring congruence relation containing a given binary relation.
- of: ∀ {R : Type u_1} [inst : Add R] [inst_1 : Mul R] {r : R → R → Prop} (x y : R), r x y → RingConGen.Rel r x y
- refl: ∀ {R : Type u_1} [inst : Add R] [inst_1 : Mul R] {r : R → R → Prop} (x : R), RingConGen.Rel r x x
- symm: ∀ {R : Type u_1} [inst : Add R] [inst_1 : Mul R] {r : R → R → Prop} {x y : R}, RingConGen.Rel r x y → RingConGen.Rel r y x
- trans: ∀ {R : Type u_1} [inst : Add R] [inst_1 : Mul R] {r : R → R → Prop} {x y z : R}, RingConGen.Rel r x y → RingConGen.Rel r y z → RingConGen.Rel r x z
- add: ∀ {R : Type u_1} [inst : Add R] [inst_1 : Mul R] {r : R → R → Prop} {w x y z : R}, RingConGen.Rel r w x → RingConGen.Rel r y z → RingConGen.Rel r (w + y) (x + z)
- mul: ∀ {R : Type u_1} [inst : Add R] [inst_1 : Mul R] {r : R → R → Prop} {w x y z : R}, RingConGen.Rel r w x → RingConGen.Rel r y z → RingConGen.Rel r (w * y) (x * z)
Instances For
The inductively defined smallest ring congruence relation containing a given binary relation.
Equations
- ringConGen r = { r := RingConGen.Rel r, iseqv := ⋯, mul' := ⋯, add' := ⋯ }
Instances For
Equations
- RingCon.instInhabited = { default := ringConGen EmptyRelation }
Pulling back a RingCon
across a ring homomorphism.
Instances For
The quotient by a decidable congruence relation has decidable equality.
Equations
- c.instDecidableEqQuotientOfDecidableCoeForallProp = inferInstanceAs (DecidableEq (Quotient c.toSetoid))
Basic notation #
The basic algebraic notation, 0
, 1
, +
, *
, -
, ^
, descend naturally under the quotient
Equations
- c.instAddQuotient = inferInstanceAs (Add c.toAddCon.Quotient)
Equations
- c.instMulQuotient = inferInstanceAs (Mul c.Quotient)
Equations
- c.instZeroQuotient = inferInstanceAs (Zero c.toAddCon.Quotient)
Equations
- c.instOneQuotient = inferInstanceAs (One c.Quotient)
Equations
- c.instNegQuotient = inferInstanceAs (Neg c.toAddCon.Quotient)
Equations
- c.instSubQuotient = inferInstanceAs (Sub c.toAddCon.Quotient)
Alias of RingCon.coe_natCast
.
Alias of RingCon.coe_intCast
.
Algebraic structure #
The operations above on the quotient by c : RingCon R
preserve the algebraic structure of R
.
Equations
- c.instNonUnitalNonAssocSemiringQuotient = Function.Surjective.nonUnitalNonAssocSemiring Quotient.mk'' ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- c.instNonAssocSemiringQuotient = Function.Surjective.nonAssocSemiring Quotient.mk'' ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- c.instNonUnitalSemiringQuotient = Function.Surjective.nonUnitalSemiring Quotient.mk'' ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- c.instSemiringQuotient = Function.Surjective.semiring Quotient.mk'' ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- c.instCommSemiringQuotient = Function.Surjective.commSemiring Quotient.mk'' ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- c.instNonUnitalNonAssocRingQuotient = Function.Surjective.nonUnitalNonAssocRing Quotient.mk'' ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- c.instNonAssocRingQuotient = Function.Surjective.nonAssocRing Quotient.mk'' ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- c.instNonUnitalRingQuotient = Function.Surjective.nonUnitalRing Quotient.mk'' ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- c.instRingQuotient = Function.Surjective.ring Quotient.mk'' ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- c.instCommRingQuotient = Function.Surjective.commRing Quotient.mk'' ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
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' := ⋯ }