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 / V06. Rings, fields and ordered algebra

Mathlib.Algebra.RingQuot

78 declarations. Mathlib docs · Source

ctor RingQuot.Rel.below.of E0 #

∀ {R : Type uR} [inst : Semiring R] {r : R → R → Prop} {motive : (a a_1 : R) → RingQuot.Rel r a a_1 → Prop} ⦃x y : R⦄
  (h : r x y), RingQuot.Rel.below ⋯

theorem RingQuot.mk.injEq E0 #

∀ {R : Type uR} [inst : Semiring R] {r : R → R → Prop} (toQuot toQuot_1 : Quot (RingQuot.Rel r)),
  ({ toQuot := toQuot } = { toQuot := toQuot_1 }) = (toQuot = toQuot_1)

ctor RingQuot.Rel.below.add_left E0 #

∀ {R : Type uR} [inst : Semiring R] {r : R → R → Prop} {motive : (a a_1 : R) → RingQuot.Rel r a a_1 → Prop} ⦃a b c : R⦄
  (a_1 : RingQuot.Rel r a b), RingQuot.Rel.below a_1 → motive a b a_1 → RingQuot.Rel.below ⋯

ctor RingQuot.Rel.below.mul_left E0 #

∀ {R : Type uR} [inst : Semiring R] {r : R → R → Prop} {motive : (a a_1 : R) → RingQuot.Rel r a a_1 → Prop} ⦃a b c : R⦄
  (a_1 : RingQuot.Rel r a b), RingQuot.Rel.below a_1 → motive a b a_1 → RingQuot.Rel.below ⋯

theorem RingQuot.mk.inj E1 #

∀ {R : Type uR} {inst : Semiring R} {r : R → R → Prop} {toQuot toQuot_1 : Quot (RingQuot.Rel r)},
  { toQuot := toQuot } = { toQuot := toQuot_1 } → toQuot = toQuot_1

ctor RingQuot.Rel.below.mul_right E0 #

∀ {R : Type uR} [inst : Semiring R] {r : R → R → Prop} {motive : (a a_1 : R) → RingQuot.Rel r a a_1 → Prop} ⦃a b c : R⦄
  (a_1 : RingQuot.Rel r b c), RingQuot.Rel.below a_1 → motive b c a_1 → RingQuot.Rel.below ⋯

def RingQuot.ctorIdx E1 #

{R : Type uR} → {inst : Semiring R} → {r : R → R → Prop} → RingQuot r → ℕ

inductive RingQuot.Rel E1 #

{R : Type uR} → [Semiring R] → (R → R → Prop) → R → R → Prop

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.

ctor RingQuot.Rel.of E0 #

∀ {R : Type uR} [inst : Semiring R] {r : R → R → Prop} ⦃x y : R⦄, r x y → RingQuot.Rel r x y

ctor RingQuot.Rel.add_left E0 #

∀ {R : Type uR} [inst : Semiring R] {r : R → R → Prop} ⦃a b c : R⦄, RingQuot.Rel r a b → RingQuot.Rel r (a + c) (b + c)

ctor RingQuot.Rel.mul_left E0 #

∀ {R : Type uR} [inst : Semiring R] {r : R → R → Prop} ⦃a b c : R⦄, RingQuot.Rel r a b → RingQuot.Rel r (a * c) (b * c)

ctor RingQuot.Rel.mul_right E0 #

∀ {R : Type uR} [inst : Semiring R] {r : R → R → Prop} ⦃a b c : R⦄, RingQuot.Rel r b c → RingQuot.Rel r (a * b) (a * c)

theorem RingQuot.Rel.add_right E1 #

∀ {R : Type uR} [inst : Semiring R] {r : R → R → Prop} ⦃a b c : R⦄, RingQuot.Rel r b c → RingQuot.Rel r (a + b) (a + c)

theorem RingQuot.Rel.neg E1 #

∀ {R : Type uR} [inst : Ring R] {r : R → R → Prop} ⦃a b : R⦄, RingQuot.Rel r a b → RingQuot.Rel r (-a) (-b)

theorem RingQuot.Rel.sub_left E1 #

∀ {R : Type uR} [inst : Ring R] {r : R → R → Prop} ⦃a b c : R⦄, RingQuot.Rel r a b → RingQuot.Rel r (a - c) (b - c)

theorem RingQuot.Rel.sub_right E1 #

∀ {R : Type uR} [inst : Ring R] {r : R → R → Prop} ⦃a b c : R⦄, RingQuot.Rel r b c → RingQuot.Rel r (a - b) (a - c)

theorem RingQuot.Rel.smul E1 #

∀ {S : Type uS} [inst : CommSemiring S] {A : Type uA} [inst_1 : Semiring A] [inst_2 : Algebra S A] {r : A → A → Prop}
  (k : S) ⦃a b : A⦄, RingQuot.Rel r a b → RingQuot.Rel r (k • a) (k • b)

def RingQuot.ringCon E1 #

{R : Type uR} → [inst : Semiring R] → (R → R → Prop) → RingCon R

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

theorem RingQuot.eqvGen_rel_eq E0 #

∀ {R : Type uR} [inst : Semiring R] (r : R → R → Prop), Relation.EqvGen (RingQuot.Rel r) = RingConGen.Rel r

structure RingQuot E1 #

{R : Type uR} → [Semiring R] → (R → R → Prop) → Type uR

The quotient of a ring by an arbitrary relation.

ctor RingQuot.mk E0 #

{R : Type uR} → [inst : Semiring R] → {r : R → R → Prop} → Quot (RingQuot.Rel r) → RingQuot r

abbrev RingQuot.toQuot E1 #

{R : Type uR} → [inst : Semiring R] → {r : R → R → Prop} → RingQuot r → Quot (RingQuot.Rel r)

def RingQuot.natCast E1 #

{R : Type uR} → [inst : Semiring R] → (r : R → R → Prop) → ℕ → RingQuot r

The natCast function for RingQuot.

instance RingQuot.instNatCast E0 #

{R : Type uR} → [inst : Semiring R] → (r : R → R → Prop) → NatCast (RingQuot r)

instance RingQuot.instZero E0 #

{R : Type uR} → [inst : Semiring R] → (r : R → R → Prop) → Zero (RingQuot r)

instance RingQuot.instOne E0 #

{R : Type uR} → [inst : Semiring R] → (r : R → R → Prop) → One (RingQuot r)

instance RingQuot.instAdd E0 #

{R : Type uR} → [inst : Semiring R] → (r : R → R → Prop) → Add (RingQuot r)

instance RingQuot.instMul E0 #

{R : Type uR} → [inst : Semiring R] → (r : R → R → Prop) → Mul (RingQuot r)

instance RingQuot.instNatPow E0 #

{R : Type uR} → [inst : Semiring R] → (r : R → R → Prop) → NatPow (RingQuot r)

instance RingQuot.instNeg E0 #

{R : Type uR} → [inst : Ring R] → (r : R → R → Prop) → Neg (RingQuot r)

instance RingQuot.instSub E0 #

{R : Type uR} → [inst : Ring R] → (r : R → R → Prop) → Sub (RingQuot r)

def RingQuot.smul E1 #

{R : Type uR} →
  [inst : Semiring R] →
    {S : Type uS} → [inst_1 : CommSemiring S] → (r : R → R → Prop) → [Algebra S R] → S → RingQuot r → RingQuot r

The • function for RingQuot.

instance RingQuot.instSMulOfAlgebra E0 #

{R : Type uR} →
  [inst : Semiring R] →
    {S : Type uS} → [inst_1 : CommSemiring S] → (r : R → R → Prop) → [Algebra S R] → SMul S (RingQuot r)

theorem RingQuot.zero_quot E1 #

∀ {R : Type uR} [inst : Semiring R] (r : R → R → Prop), { toQuot := Quot.mk (RingQuot.Rel r) 0 } = 0

theorem RingQuot.one_quot E1 #

∀ {R : Type uR} [inst : Semiring R] (r : R → R → Prop), { toQuot := Quot.mk (RingQuot.Rel r) 1 } = 1

theorem RingQuot.add_quot E1 #

∀ {R : Type uR} [inst : Semiring R] (r : R → R → Prop) {a b : R},
  { toQuot := Quot.mk (RingQuot.Rel r) a } + { toQuot := Quot.mk (RingQuot.Rel r) b } =
    { toQuot := Quot.mk (RingQuot.Rel r) (a + b) }

theorem RingQuot.mul_quot E1 #

∀ {R : Type uR} [inst : Semiring R] (r : R → R → Prop) {a b : R},
  { toQuot := Quot.mk (RingQuot.Rel r) a } * { toQuot := Quot.mk (RingQuot.Rel r) b } =
    { toQuot := Quot.mk (RingQuot.Rel r) (a * b) }

theorem RingQuot.pow_quot E1 #

∀ {R : Type uR} [inst : Semiring R] (r : R → R → Prop) {a : R} {n : ℕ},
  { toQuot := Quot.mk (RingQuot.Rel r) a } ^ n = { toQuot := Quot.mk (RingQuot.Rel r) (a ^ n) }

theorem RingQuot.neg_quot E1 #

∀ {R : Type uR} [inst : Ring R] (r : R → R → Prop) {a : R},
  -{ toQuot := Quot.mk (RingQuot.Rel r) a } = { toQuot := Quot.mk (RingQuot.Rel r) (-a) }

theorem RingQuot.sub_quot E1 #

∀ {R : Type uR} [inst : Ring R] (r : R → R → Prop) {a b : R},
  { toQuot := Quot.mk (RingQuot.Rel r) a } - { toQuot := Quot.mk (RingQuot.Rel r) b } =
    { toQuot := Quot.mk (RingQuot.Rel r) (a - b) }

theorem RingQuot.smul_quot E1 #

∀ {R : Type uR} [inst : Semiring R] {S : Type uS} [inst_1 : CommSemiring S] (r : R → R → Prop) [inst_2 : Algebra S R]
  {n : S} {a : R}, n • { toQuot := Quot.mk (RingQuot.Rel r) a } = { toQuot := Quot.mk (RingQuot.Rel r) (n • a) }

instance RingQuot.instIsScalarTower E0 #

∀ {R : Type uR} [inst : Semiring R] {S : Type uS} [inst_1 : CommSemiring S] {T : Type uT} (r : R → R → Prop)
  [inst_2 : CommSemiring T] [inst_3 : SMul S T] [inst_4 : Algebra S R] [inst_5 : Algebra T R] [IsScalarTower S T R],
  IsScalarTower S T (RingQuot r)

instance RingQuot.instSMulCommClass E0 #

∀ {R : Type uR} [inst : Semiring R] {S : Type uS} [inst_1 : CommSemiring S] {T : Type uT} (r : R → R → Prop)
  [inst_2 : CommSemiring T] [inst_3 : Algebra S R] [inst_4 : Algebra T R] [SMulCommClass S T R],
  SMulCommClass S T (RingQuot r)

instance RingQuot.instAddCommMonoid E0 #

{R : Type uR} → [inst : Semiring R] → (r : R → R → Prop) → AddCommMonoid (RingQuot r)

instance RingQuot.instMonoidWithZero E0 #

{R : Type uR} → [inst : Semiring R] → (r : R → R → Prop) → MonoidWithZero (RingQuot r)

instance RingQuot.instSemiring E0 #

{R : Type uR} → [inst : Semiring R] → (r : R → R → Prop) → Semiring (RingQuot r)

def RingQuot.intCast E1 #

{R : Type uR} → [inst : Ring R] → (r : R → R → Prop) → ℤ → RingQuot r

The intCast function for RingQuot.

instance RingQuot.instRing E0 #

{R : Type uR} → [inst : Ring R] → (r : R → R → Prop) → Ring (RingQuot r)

instance RingQuot.instCommSemiring E0 #

{R : Type uR} → [inst : CommSemiring R] → (r : R → R → Prop) → CommSemiring (RingQuot r)

instance RingQuot.instCommRing E0 #

{R : Type uR} → [inst : CommRing R] → (r : R → R → Prop) → CommRing (RingQuot r)

instance RingQuot.instInhabited E0 #

{R : Type uR} → [inst : Semiring R] → (r : R → R → Prop) → Inhabited (RingQuot r)

instance RingQuot.instAlgebra E0 #

{R : Type uR} →
  [inst : Semiring R] →
    {S : Type uS} → [inst_1 : CommSemiring S] → [Algebra S R] → (r : R → R → Prop) → Algebra S (RingQuot r)

def RingQuot.mkRingHom E1 #

{R : Type uR} → [inst : Semiring R] → (r : R → R → Prop) → R →+* RingQuot r

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

theorem RingQuot.mkRingHom_rel E1 #

∀ {R : Type uR} [inst : Semiring R] {r : R → R → Prop} {x y : R},
  r x y → (RingQuot.mkRingHom r) x = (RingQuot.mkRingHom r) y

theorem RingQuot.mkRingHom_surjective E1 #

∀ {R : Type uR} [inst : Semiring R] (r : R → R → Prop), Function.Surjective ⇑(RingQuot.mkRingHom r)

theorem RingQuot.ringQuot_ext_iff E0 #

∀ {R : Type uR} [inst : Semiring R] {T : Type uT} [inst_1 : NonAssocSemiring T] {r : R → R → Prop}
  {f g : RingQuot r →+* T}, f = g ↔ f.comp (RingQuot.mkRingHom r) = g.comp (RingQuot.mkRingHom r)

theorem RingQuot.ringQuot_ext E1 #

∀ {R : Type uR} [inst : Semiring R] {T : Type uT} [inst_1 : NonAssocSemiring T] {r : R → R → Prop}
  (f g : RingQuot r →+* T), f.comp (RingQuot.mkRingHom r) = g.comp (RingQuot.mkRingHom r) → f = g

def RingQuot.preLift E1 #

{R : Type uR} →
  [inst : Semiring R] →
    {T : Type uT} →
      [inst_1 : Semiring T] → {r : R → R → Prop} → {f : R →+* T} → (∀ ⦃x y : R⦄, r x y → f x = f y) → RingQuot r →+* T

def RingQuot.lift E1 #

{R : Type uR} →
  [inst : Semiring R] →
    {T : Type uT} →
      [inst_1 : Semiring T] → {r : R → R → Prop} → { f // ∀ ⦃x y : R⦄, r x y → f x = f y } ≃ (RingQuot r →+* T)

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

theorem RingQuot.lift_mkRingHom_apply E0 #

∀ {R : Type uR} [inst : Semiring R] {T : Type uT} [inst_1 : Semiring T] (f : R →+* T) {r : R → R → Prop}
  (w : ∀ ⦃x y : R⦄, r x y → f x = f y) (x : R), (RingQuot.lift ⟨f, w⟩) ((RingQuot.mkRingHom r) x) = f x

theorem RingQuot.lift_unique E1 #

∀ {R : Type uR} [inst : Semiring R] {T : Type uT} [inst_1 : Semiring T] (f : R →+* T) {r : R → R → Prop}
  (w : ∀ ⦃x y : R⦄, r x y → f x = f y) (g : RingQuot r →+* T),
  g.comp (RingQuot.mkRingHom r) = f → g = RingQuot.lift ⟨f, w⟩

def RingQuot.ringQuotToIdealQuotient E1 #

{B : Type uR} → [inst : CommRing B] → (r : B → B → Prop) → RingQuot r →+* B ⧸ Ideal.ofRel r

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

theorem RingQuot.ringQuotToIdealQuotient_apply E0 #

∀ {B : Type uR} [inst : CommRing B] (r : B → B → Prop) (x : B),
  (RingQuot.ringQuotToIdealQuotient r) ((RingQuot.mkRingHom r) x) = (Ideal.Quotient.mk (Ideal.ofRel r)) x

def RingQuot.idealQuotientToRingQuot E1 #

{B : Type uR} → [inst : CommRing B] → (r : B → B → Prop) → B ⧸ Ideal.ofRel r →+* RingQuot r

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

theorem RingQuot.idealQuotientToRingQuot_apply E0 #

∀ {B : Type uR} [inst : CommRing B] (r : B → B → Prop) (x : B),
  (RingQuot.idealQuotientToRingQuot r) ((Ideal.Quotient.mk (Ideal.ofRel r)) x) = (RingQuot.mkRingHom r) x

def RingQuot.ringQuotEquivIdealQuotient E1 #

{B : Type uR} → [inst : CommRing B] → (r : B → B → Prop) → RingQuot r ≃+* B ⧸ Ideal.ofRel r

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

def RingQuot.mkAlgHom E1 #

(S : Type uS) →
  [inst : CommSemiring S] →
    {A : Type uA} → [inst_1 : Semiring A] → [inst_2 : Algebra S A] → (s : A → A → Prop) → A →ₐ[S] RingQuot s

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

theorem RingQuot.mkAlgHom_coe E0 #

∀ (S : Type uS) [inst : CommSemiring S] {A : Type uA} [inst_1 : Semiring A] [inst_2 : Algebra S A] (s : A → A → Prop),
  ↑(RingQuot.mkAlgHom S s) = RingQuot.mkRingHom s

theorem RingQuot.mkAlgHom_rel E1 #

∀ (S : Type uS) [inst : CommSemiring S] {A : Type uA} [inst_1 : Semiring A] [inst_2 : Algebra S A] {s : A → A → Prop}
  {x y : A}, s x y → (RingQuot.mkAlgHom S s) x = (RingQuot.mkAlgHom S s) y

theorem RingQuot.mkAlgHom_surjective E1 #

∀ (S : Type uS) [inst : CommSemiring S] {A : Type uA} [inst_1 : Semiring A] [inst_2 : Algebra S A] (s : A → A → Prop),
  Function.Surjective ⇑(RingQuot.mkAlgHom S s)

theorem RingQuot.ringQuot_ext'_iff E0 #

∀ {S : Type uS} [inst : CommSemiring S] {A : Type uA} [inst_1 : Semiring A] [inst_2 : Algebra S A] {B : Type u₄}
  [inst_3 : Semiring B] [inst_4 : Algebra S B] {s : A → A → Prop} {f g : RingQuot s →ₐ[S] B},
  f = g ↔ f.comp (RingQuot.mkAlgHom S s) = g.comp (RingQuot.mkAlgHom S s)

theorem RingQuot.ringQuot_ext' E1 #

∀ (S : Type uS) [inst : CommSemiring S] {A : Type uA} [inst_1 : Semiring A] [inst_2 : Algebra S A] {B : Type u₄}
  [inst_3 : Semiring B] [inst_4 : Algebra S B] {s : A → A → Prop} (f g : RingQuot s →ₐ[S] B),
  f.comp (RingQuot.mkAlgHom S s) = g.comp (RingQuot.mkAlgHom S s) → f = g

def RingQuot.preLiftAlgHom E1 #

(S : Type uS) →
  [inst : CommSemiring S] →
    {A : Type uA} →
      [inst_1 : Semiring A] →
        [inst_2 : Algebra S A] →
          {B : Type u₄} →
            [inst_3 : Semiring B] →
              [inst_4 : Algebra S B] →
                {s : A → A → Prop} → {f : A →ₐ[S] B} → (∀ ⦃x y : A⦄, s x y → f x = f y) → RingQuot s →ₐ[S] B

def RingQuot.liftAlgHom E1 #

(S : Type uS) →
  [inst : CommSemiring S] →
    {A : Type uA} →
      [inst_1 : Semiring A] →
        [inst_2 : Algebra S A] →
          {B : Type u₄} →
            [inst_3 : Semiring B] →
              [inst_4 : Algebra S B] →
                {s : A → A → Prop} → { f // ∀ ⦃x y : A⦄, s x y → f x = f y } ≃ (RingQuot s →ₐ[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.

theorem RingQuot.liftAlgHom_mkAlgHom_apply E0 #

∀ (S : Type uS) [inst : CommSemiring S] {A : Type uA} [inst_1 : Semiring A] [inst_2 : Algebra S A] {B : Type u₄}
  [inst_3 : Semiring B] [inst_4 : Algebra S B] (f : A →ₐ[S] B) {s : A → A → Prop} (w : ∀ ⦃x y : A⦄, s x y → f x = f y)
  (x : A), ((RingQuot.liftAlgHom S) ⟨f, w⟩) ((RingQuot.mkAlgHom S s) x) = f x

theorem RingQuot.liftAlgHom_unique E1 #

∀ (S : Type uS) [inst : CommSemiring S] {A : Type uA} [inst_1 : Semiring A] [inst_2 : Algebra S A] {B : Type u₄}
  [inst_3 : Semiring B] [inst_4 : Algebra S B] (f : A →ₐ[S] B) {s : A → A → Prop} (w : ∀ ⦃x y : A⦄, s x y → f x = f y)
  (g : RingQuot s →ₐ[S] B), g.comp (RingQuot.mkAlgHom S s) = f → g = (RingQuot.liftAlgHom S) ⟨f, w⟩

def RingQuot.algEquivQuotAlgEquiv E1 #

{S : Type uS} →
  [inst : CommSemiring S] →
    {A : Type uA} →
      [inst_1 : Semiring A] →
        [inst_2 : Algebra S A] →
          {B : Type u₄} →
            [inst_3 : Semiring B] →
              [inst_4 : Algebra S B] →
                (f : A ≃ₐ[S] B) → (rel : A → A → Prop) → RingQuot rel ≃ₐ[S] RingQuot (Function.onFun rel ⇑f.symm)

If two S-algebras are S-equivalent and their quotients by a relation rel are defined, then their quotients are also S-equivalent.

(Special case of the third isomorphism theorem.)

def RingQuot.equivQuotEquiv E1 #

{A : Type uA} →
  [inst : Semiring A] →
    {B : Type u₄} →
      [inst_1 : Semiring B] →
        (f : A ≃+* B) → (rel : A → A → Prop) → RingQuot rel ≃+* RingQuot (Function.onFun rel ⇑f.symm)

If two (semi)rings are equivalent and their quotients by a relation rel are defined, then their quotients are also equivalent.

(Special case of algEquivQuotAlgEquiv when S = ℕ, which in turn is a special case of the third isomorphism theorem.)