Quotients of semirings #
In this file, we directly define the quotient of a semiring by any relation, by building a bigger relation that represents the ideal generated by that relation.
We prove the universal properties of the quotient, and recommend avoiding relying on the actual definition, which is made irreducible for this purpose.
Since everything runs in parallel for quotients of R
-algebras, we do that case at the same time.
Equations
Given an arbitrary relation r
on a ring, we strengthen it to a relation Rel r
,
such that the equivalence relation generated by Rel r
has x ~ y
if and only if
x - y
is in the ideal generated by elements a - b
such that r a b
.
- of {R : Type uR} [Semiring R] {r : R → R → Prop} ⦃x y : R⦄ (h : r x y) : Rel r x y
- add_left {R : Type uR} [Semiring R] {r : R → R → Prop} ⦃a b c : R⦄ : Rel r a b → Rel r (a + c) (b + c)
- mul_left {R : Type uR} [Semiring R] {r : R → R → Prop} ⦃a b c : R⦄ : Rel r a b → Rel r (a * c) (b * c)
- mul_right {R : Type uR} [Semiring R] {r : R → R → Prop} ⦃a b c : R⦄ : Rel r b c → Rel r (a * b) (a * c)
Instances For
Equations
Equations
Equations
Equations
Equations
We now verify that in the case of a commutative ring, the RingQuot
construction
agrees with the quotient by the appropriate ideal.
The universal ring homomorphism from RingQuot r
to B ⧸ Ideal.ofRel r
.
Equations
Instances For
The universal ring homomorphism from B ⧸ Ideal.ofRel r
to RingQuot r
.
Equations
Instances For
The ring equivalence between RingQuot r
and (Ideal.ofRel r).quotient
Equations
Instances For
Any S
-algebra homomorphism f : A →ₐ[S] B
which respects a relation s : A → A → Prop
factors uniquely through a morphism RingQuot s →ₐ[S] B
.