# Documentation

Mathlib.Algebra.RingQuot

# Quotients of non-commutative rings #

Unfortunately, ideals have only been developed in the commutative case as Ideal, and it's not immediately clear how one should formalise ideals in the non-commutative case.

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.

@[simp]
theorem RingCon.coe_algebraMap {S : Type uS} [] {A : Type uA} [] [Algebra S A] (c : ) (s : S) :
↑(↑() s) = ↑() s
inductive RingQuot.Rel {R : Type uR} [] (r : RRProp) :
RRProp

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.

Instances For
theorem RingQuot.Rel.add_right {R : Type uR} [] {r : RRProp} ⦃a : R ⦃b : R ⦃c : R (h : RingQuot.Rel r b c) :
RingQuot.Rel r (a + b) (a + c)
theorem RingQuot.Rel.neg {R : Type uR} [Ring R] {r : RRProp} ⦃a : R ⦃b : R (h : RingQuot.Rel r a b) :
RingQuot.Rel r (-a) (-b)
theorem RingQuot.Rel.sub_left {R : Type uR} [Ring R] {r : RRProp} ⦃a : R ⦃b : R ⦃c : R (h : RingQuot.Rel r a b) :
RingQuot.Rel r (a - c) (b - c)
theorem RingQuot.Rel.sub_right {R : Type uR} [Ring R] {r : RRProp} ⦃a : R ⦃b : R ⦃c : R (h : RingQuot.Rel r b c) :
RingQuot.Rel r (a - b) (a - c)
theorem RingQuot.Rel.smul {S : Type uS} [] {A : Type uA} [] [Algebra S A] {r : AAProp} (k : S) ⦃a : A ⦃b : A (h : RingQuot.Rel r a b) :
RingQuot.Rel r (k a) (k b)
def RingQuot.ringCon {R : Type uR} [] (r : RRProp) :

EqvGen (RingQuot.Rel r) is a ring congruence.

Instances For
theorem RingQuot.eqvGen_rel_eq {R : Type uR} [] (r : RRProp) :
structure RingQuot {R : Type uR} [] (r : RRProp) :
Type uR

The quotient of a ring by an arbitrary relation.

Instances For
instance RingQuot.instNatCastRingQuot {R : Type uR} [] (r : RRProp) :
instance RingQuot.instZeroRingQuot {R : Type uR} [] (r : RRProp) :
Zero ()
instance RingQuot.instOneRingQuot {R : Type uR} [] (r : RRProp) :
One ()
instance RingQuot.instAddRingQuot {R : Type uR} [] (r : RRProp) :
instance RingQuot.instMulRingQuot {R : Type uR} [] (r : RRProp) :
Mul ()
instance RingQuot.instPowRingQuotNat {R : Type uR} [] (r : RRProp) :
Pow ()
instance RingQuot.instNegRingQuotToSemiring {R : Type uR} [Ring R] (r : RRProp) :
Neg ()
instance RingQuot.instSubRingQuotToSemiring {R : Type uR} [Ring R] (r : RRProp) :
Sub ()
instance RingQuot.instSMulRingQuot {R : Type uR} [] {S : Type uS} [] (r : RRProp) [Algebra S R] :
SMul S ()
theorem RingQuot.zero_quot {R : Type uR} [] (r : RRProp) :
{ toQuot := Quot.mk () 0 } = 0
theorem RingQuot.one_quot {R : Type uR} [] (r : RRProp) :
{ toQuot := Quot.mk () 1 } = 1
theorem RingQuot.add_quot {R : Type uR} [] (r : RRProp) {a : R} {b : R} :
{ toQuot := Quot.mk () a } + { toQuot := Quot.mk () b } = { toQuot := Quot.mk () (a + b) }
theorem RingQuot.mul_quot {R : Type uR} [] (r : RRProp) {a : R} {b : R} :
{ toQuot := Quot.mk () a } * { toQuot := Quot.mk () b } = { toQuot := Quot.mk () (a * b) }
theorem RingQuot.pow_quot {R : Type uR} [] (r : RRProp) {a : R} {n : } :
{ toQuot := Quot.mk () a } ^ n = { toQuot := Quot.mk () (a ^ n) }
theorem RingQuot.neg_quot {R : Type uR} [Ring R] (r : RRProp) {a : R} :
-{ toQuot := Quot.mk () a } = { toQuot := Quot.mk () (-a) }
theorem RingQuot.sub_quot {R : Type uR} [Ring R] (r : RRProp) {a : R} {b : R} :
{ toQuot := Quot.mk () a } - { toQuot := Quot.mk () b } = { toQuot := Quot.mk () (a - b) }
theorem RingQuot.smul_quot {R : Type uR} [] {S : Type uS} [] (r : RRProp) [Algebra S R] {n : S} {a : R} :
n { toQuot := Quot.mk () a } = { toQuot := Quot.mk () (n a) }
instance RingQuot.instIsScalarTower {R : Type uR} [] {S : Type uS} [] {T : Type uT} (r : RRProp) [] [SMul S T] [Algebra S R] [Algebra T R] [] :
instance RingQuot.instSMulCommClass {R : Type uR} [] {S : Type uS} [] {T : Type uT} (r : RRProp) [] [Algebra S R] [Algebra T R] [] :
instance RingQuot.instAddCommMonoid {R : Type uR} [] (r : RRProp) :
instance RingQuot.instMonoidWithZero {R : Type uR} [] (r : RRProp) :
instance RingQuot.instSemiring {R : Type uR} [] (r : RRProp) :
instance RingQuot.instRing {R : Type uR} [Ring R] (r : RRProp) :
Ring ()
instance RingQuot.instCommSemiring {R : Type uR} [] (r : RRProp) :
instance RingQuot.instInhabited {R : Type uR} [] (r : RRProp) :
instance RingQuot.instAlgebra {R : Type uR} [] {S : Type uS} [] [Algebra S R] (r : RRProp) :
Algebra S ()
@[irreducible]
def RingQuot.mkRingHom {R : Type u_1} [] (r : RRProp) :

The quotient map from a ring to its quotient, as a homomorphism of rings.

Instances For
theorem RingQuot.mkRingHom_def {R : Type u_1} [] (r : RRProp) :
= { toMonoidHom := { toOneHom := { toFun := fun x => { toQuot := Quot.mk () x }, map_one' := (_ : { toQuot := Quot.mk () 1 } = 1) }, map_mul' := (_ : ∀ (a a_1 : R), { toQuot := Quot.mk () (a * a_1) } = { toQuot := Quot.mk () a } * { toQuot := Quot.mk () a_1 }) }, map_zero' := (_ : { toQuot := Quot.mk () 0 } = 0), map_add' := (_ : ∀ (a a_1 : R), { toQuot := Quot.mk () (a + a_1) } = { toQuot := Quot.mk () a } + { toQuot := Quot.mk () a_1 }) }
theorem RingQuot.mkRingHom_rel {R : Type uR} [] {r : RRProp} {x : R} {y : R} (w : r x y) :
↑() x = ↑() y
theorem RingQuot.mkRingHom_surjective {R : Type uR} [] (r : RRProp) :
theorem RingQuot.ringQuot_ext {R : Type uR} [] {T : Type uT} [] {r : RRProp} (f : →+* T) (g : →+* T) (w : ) :
f = g
theorem RingQuot.preLift_def {R : Type u_1} [] {T : Type u_2} [] {r : RRProp} {f : R →+* T} (h : ∀ ⦃x y : R⦄, r x yf x = f y) :
= { toMonoidHom := { toOneHom := { toFun := fun x => Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) 1.toQuot = 1) }, map_mul' := (_ : ∀ (x y : ), OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) 1.toQuot = 1) } (x * y) = OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) 1.toQuot = 1) } x * OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) 1.toQuot = 1) } y) }, map_zero' := (_ : Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) 0.toQuot = 0), map_add' := (_ : ∀ (x y : ), OneHom.toFun ({ toOneHom := { toFun := fun x => Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) 1.toQuot = 1) }, map_mul' := (_ : ∀ (x y : ), OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) 1.toQuot = 1) } (x * y) = OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) 1.toQuot = 1) } x * OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) 1.toQuot = 1) } y) }) (x + y) = OneHom.toFun ({ toOneHom := { toFun := fun x => Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) 1.toQuot = 1) }, map_mul' := (_ : ∀ (x y : ), OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) 1.toQuot = 1) } (x * y) = OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) 1.toQuot = 1) } x * OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) 1.toQuot = 1) } y) }) x + OneHom.toFun ({ toOneHom := { toFun := fun x => Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) 1.toQuot = 1) }, map_mul' := (_ : ∀ (x y : ), OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) 1.toQuot = 1) } (x * y) = OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) 1.toQuot = 1) } x * OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : R), RingQuot.Rel r a bf a = f b) 1.toQuot = 1) } y) }) y) }
@[irreducible]
def RingQuot.preLift {R : Type u_1} [] {T : Type u_2} [] {r : RRProp} {f : R →+* T} (h : ∀ ⦃x y : R⦄, r x yf x = f y) :
Instances For
theorem RingQuot.lift_def {R : Type u_1} [] {T : Type u_2} [] {r : RRProp} :
RingQuot.lift = { toFun := fun f => RingQuot.preLift (_ : ∀ ⦃x y : R⦄, r x yf x = f y), invFun := fun F => { val := , property := (_ : ∀ (x y : R), r x yF (↑() x) = F (↑() y)) }, left_inv := (_ : ∀ (f : { f // ∀ ⦃x y : R⦄, r x yf x = f y }), (fun F => { val := , property := (_ : ∀ (x y : R), r x yF (↑() x) = F (↑() y)) }) ((fun f => RingQuot.preLift (_ : ∀ ⦃x y : R⦄, r x yf x = f y)) f) = f), right_inv := (_ : ∀ (F : →+* T), (fun f => RingQuot.preLift (_ : ∀ ⦃x y : R⦄, r x yf x = f y)) ((fun F => { val := , property := (_ : ∀ (x y : R), r x yF (↑() x) = F (↑() y)) }) F) = F) }
@[irreducible]
def RingQuot.lift {R : Type u_1} [] {T : Type u_2} [] {r : RRProp} :
{ f // ∀ ⦃x y : R⦄, r x yf x = f y } ( →+* T)

Any ring homomorphism f : R →+* T which respects a relation r : R → R → Prop factors uniquely through a morphism RingQuot r →+* T.

Instances For
@[simp]
theorem RingQuot.lift_mkRingHom_apply {R : Type uR} [] {T : Type uT} [] (f : R →+* T) {r : RRProp} (w : ∀ ⦃x y : R⦄, r x yf x = f y) (x : R) :
↑(RingQuot.lift { val := f, property := w }) (↑() x) = f x
theorem RingQuot.lift_unique {R : Type uR} [] {T : Type uT} [] (f : R →+* T) {r : RRProp} (w : ∀ ⦃x y : R⦄, r x yf x = f y) (g : →+* T) (h : = f) :
g = RingQuot.lift { val := f, property := w }
theorem RingQuot.eq_lift_comp_mkRingHom {R : Type uR} [] {T : Type uT} [] {r : RRProp} (f : →+* T) :
f = RingQuot.lift { val := , property := (_ : ∀ (x y : R), r x yf (↑() x) = f (↑() y)) }

We now verify that in the case of a commutative ring, the RingQuot construction agrees with the quotient by the appropriate ideal.

def RingQuot.ringQuotToIdealQuotient {B : Type uR} [] (r : BBProp) :

The universal ring homomorphism from RingQuot r to B ⧸ Ideal.ofRel r.

Instances For
@[simp]
theorem RingQuot.ringQuotToIdealQuotient_apply {B : Type uR} [] (r : BBProp) (x : B) :
↑() (↑() x) = ↑() x
def RingQuot.idealQuotientToRingQuot {B : Type uR} [] (r : BBProp) :

The universal ring homomorphism from B ⧸ Ideal.ofRel r to RingQuot r.

Instances For
@[simp]
theorem RingQuot.idealQuotientToRingQuot_apply {B : Type uR} [] (r : BBProp) (x : B) :
↑() (↑() x) = ↑() x
def RingQuot.ringQuotEquivIdealQuotient {B : Type uR} [] (r : BBProp) :

The ring equivalence between RingQuot r and (Ideal.ofRel r).quotient

Instances For
theorem RingQuot.Rel.star {R : Type uR} [] (r : RRProp) [] (hr : (a b : R) → r a br (star a) (star b)) ⦃a : R ⦃b : R (h : RingQuot.Rel r a b) :
theorem RingQuot.star'_quot {R : Type uR} [] (r : RRProp) [] (hr : (a b : R) → r a br (star a) (star b)) {a : R} :
RingQuot.star' r hr { toQuot := Quot.mk () a } = { toQuot := Quot.mk () (star a) }
def RingQuot.starRing {R : Type uR} [] [] (r : RRProp) (hr : (a b : R) → r a br (star a) (star b)) :

Transfer a star_ring instance through a quotient, if the quotient is invariant to star

Instances For
@[irreducible]
def RingQuot.mkAlgHom (S : Type u_1) [] {A : Type u_2} [] [Algebra S A] (s : AAProp) :

The quotient map from an S-algebra to its quotient, as a homomorphism of S-algebras.

Instances For
theorem RingQuot.mkAlgHom_def (S : Type u_1) [] {A : Type u_2} [] [Algebra S A] (s : AAProp) :
= let src := ; { toRingHom := { toMonoidHom := src, map_zero' := (_ : OneHom.toFun (↑()) 0 = 0), map_add' := (_ : ∀ (x y : A), OneHom.toFun (↑()) (x + y) = OneHom.toFun (↑()) x + OneHom.toFun (↑()) y) }, commutes' := (_ : ∀ (x : S), OneHom.toFun ({ toMonoidHom := ↑(), map_zero' := (_ : OneHom.toFun (↑()) 0 = 0), map_add' := (_ : ∀ (x y : A), OneHom.toFun (↑()) (x + y) = OneHom.toFun (↑()) x + OneHom.toFun (↑()) y) }) (↑() x) = ↑(algebraMap S ()) x) }
@[simp]
theorem RingQuot.mkAlgHom_coe (S : Type uS) [] {A : Type uA} [] [Algebra S A] (s : AAProp) :
↑() =
theorem RingQuot.mkAlgHom_rel (S : Type uS) [] {A : Type uA} [] [Algebra S A] {s : AAProp} {x : A} {y : A} (w : s x y) :
↑() x = ↑() y
theorem RingQuot.mkAlgHom_surjective (S : Type uS) [] {A : Type uA} [] [Algebra S A] (s : AAProp) :
theorem RingQuot.ringQuot_ext' (S : Type uS) [] {A : Type uA} [] [Algebra S A] {B : Type u₄} [] [Algebra S B] {s : AAProp} (f : →ₐ[S] B) (g : →ₐ[S] B) (w : AlgHom.comp f () = AlgHom.comp g ()) :
f = g
theorem RingQuot.preLiftAlgHom_def (S : Type u_1) [] {A : Type u_2} [] [Algebra S A] {B : Type u_3} [] [Algebra S B] {s : AAProp} {f : A →ₐ[S] B} (h : ∀ ⦃x y : A⦄, s x yf x = f y) :
= { toRingHom := { toMonoidHom := { toOneHom := { toFun := fun x => Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) 1.toQuot = 1) }, map_mul' := (_ : ∀ (x y : ), OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) 1.toQuot = 1) } (x * y) = OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) 1.toQuot = 1) } x * OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) 1.toQuot = 1) } y) }, map_zero' := (_ : Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) 0.toQuot = 0), map_add' := (_ : ∀ (x y : ), OneHom.toFun ({ toOneHom := { toFun := fun x => Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) 1.toQuot = 1) }, map_mul' := (_ : ∀ (x y : ), OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) 1.toQuot = 1) } (x * y) = OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) 1.toQuot = 1) } x * OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) 1.toQuot = 1) } y) }) (x + y) = OneHom.toFun ({ toOneHom := { toFun := fun x => Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) 1.toQuot = 1) }, map_mul' := (_ : ∀ (x y : ), OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) 1.toQuot = 1) } (x * y) = OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) 1.toQuot = 1) } x * OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) 1.toQuot = 1) } y) }) x + OneHom.toFun ({ toOneHom := { toFun := fun x => Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) 1.toQuot = 1) }, map_mul' := (_ : ∀ (x y : ), OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) 1.toQuot = 1) } (x * y) = OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) 1.toQuot = 1) } x * OneHom.toFun { toFun := fun x => Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) x.toQuot, map_one' := (_ : Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) 1.toQuot = 1) } y) }) y) }, commutes' := (_ : ∀ (x : S), Quot.lift f (_ : ∀ (a b : A), RingQuot.Rel s a bf a = f b) (↑(algebraMap S ()) x).toQuot = ↑() x) }
@[irreducible]
def RingQuot.preLiftAlgHom (S : Type u_1) [] {A : Type u_2} [] [Algebra S A] {B : Type u_3} [] [Algebra S B] {s : AAProp} {f : A →ₐ[S] B} (h : ∀ ⦃x y : A⦄, s x yf x = f y) :
Instances For
@[irreducible]
def RingQuot.liftAlgHom (S : Type u_1) [] {A : Type u_2} [] [Algebra S A] {B : Type u_3} [] [Algebra S B] {s : AAProp} :
{ f // ∀ ⦃x y : A⦄, s x yf x = f y } ( →ₐ[S] B)

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.

Instances For
theorem RingQuot.liftAlgHom_def (S : Type u_1) [] {A : Type u_2} [] [Algebra S A] {B : Type u_3} [] [Algebra S B] {s : AAProp} :
= { toFun := fun f' => RingQuot.preLiftAlgHom S (_ : ∀ ⦃x y : A⦄, s x yf' x = f' y), invFun := fun F => { val := AlgHom.comp F (), property := (_ : ∀ (x x_1 : A), s x x_1F (↑() x) = F (↑() x_1)) }, left_inv := (_ : ∀ (f : { f // ∀ ⦃x y : A⦄, s x yf x = f y }), (fun F => { val := AlgHom.comp F (), property := (_ : ∀ (x x_1 : A), s x x_1F (↑() x) = F (↑() x_1)) }) ((fun f' => RingQuot.preLiftAlgHom S (_ : ∀ ⦃x y : A⦄, s x yf' x = f' y)) f) = f), right_inv := (_ : ∀ (F : →ₐ[S] B), (fun f' => RingQuot.preLiftAlgHom S (_ : ∀ ⦃x y : A⦄, s x yf' x = f' y)) ((fun F => { val := AlgHom.comp F (), property := (_ : ∀ (x x_1 : A), s x x_1F (↑() x) = F (↑() x_1)) }) F) = F) }
@[simp]
theorem RingQuot.liftAlgHom_mkAlgHom_apply (S : Type uS) [] {A : Type uA} [] [Algebra S A] {B : Type u₄} [] [Algebra S B] (f : A →ₐ[S] B) {s : AAProp} (w : ∀ ⦃x y : A⦄, s x yf x = f y) (x : A) :
↑(↑() { val := f, property := w }) (↑() x) = f x
theorem RingQuot.liftAlgHom_unique (S : Type uS) [] {A : Type uA} [] [Algebra S A] {B : Type u₄} [] [Algebra S B] (f : A →ₐ[S] B) {s : AAProp} (w : ∀ ⦃x y : A⦄, s x yf x = f y) (g : →ₐ[S] B) (h : AlgHom.comp g () = f) :
g = ↑() { val := f, property := w }
theorem RingQuot.eq_liftAlgHom_comp_mkAlgHom (S : Type uS) [] {A : Type uA} [] [Algebra S A] {B : Type u₄} [] [Algebra S B] {s : AAProp} (f : →ₐ[S] B) :
f = ↑() { val := AlgHom.comp f (), property := (_ : ∀ (x y : A), s x yf (↑() x) = f (↑() y)) }