Documentation

Mathlib.RingTheory.Congruence

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 #

TODO #

structure RingCon (R : Type u_1) [Add R] [Mul R] extends Con :
Type u_1

A congruence relation on a type with an addition and multiplication is an equivalence relation which preserves both.

Instances For
    @[reducible]
    abbrev RingCon.toAddCon {R : Type u_1} [Add R] [Mul R] (self : RingCon R) :

    The induced additive congruence from a RingCon.

    Equations
    Instances For
      inductive RingConGen.Rel {R : Type u_2} [Add R] [Mul R] (r : RRProp) :
      RRProp

      The inductively defined smallest ring congruence relation containing a given binary relation.

      Instances For
        def ringConGen {R : Type u_2} [Add R] [Mul R] (r : RRProp) :

        The inductively defined smallest ring congruence relation containing a given binary relation.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          instance RingCon.instFunLikeRingConForAllProp {R : Type u_2} [Add R] [Mul R] :
          FunLike (RingCon R) R fun x => RProp

          A coercion from a congruence relation to its underlying binary relation.

          Equations
          • RingCon.instFunLikeRingConForAllProp = { coe := fun c => Setoid.r, coe_injective' := (_ : ∀ (x y : RingCon R), (fun c => Setoid.r) x = (fun c => Setoid.r) yx = y) }
          theorem RingCon.rel_eq_coe {R : Type u_2} [Add R] [Mul R] (c : RingCon R) :
          Setoid.r = c
          @[simp]
          theorem RingCon.toCon_coe_eq_coe {R : Type u_2} [Add R] [Mul R] (c : RingCon R) :
          c.toCon = c
          theorem RingCon.refl {R : Type u_2} [Add R] [Mul R] (c : RingCon R) (x : R) :
          c x x
          theorem RingCon.symm {R : Type u_2} [Add R] [Mul R] (c : RingCon R) {x : R} {y : R} :
          c x yc y x
          theorem RingCon.trans {R : Type u_2} [Add R] [Mul R] (c : RingCon R) {x : R} {y : R} {z : R} :
          c x yc y zc x z
          theorem RingCon.add {R : Type u_2} [Add R] [Mul R] (c : RingCon R) {w : R} {x : R} {y : R} {z : R} :
          c w xc y zc (w + y) (x + z)
          theorem RingCon.mul {R : Type u_2} [Add R] [Mul R] (c : RingCon R) {w : R} {x : R} {y : R} {z : R} :
          c w xc y zc (w * y) (x * z)
          instance RingCon.instInhabitedRingCon {R : Type u_2} [Add R] [Mul R] :
          Equations
          • RingCon.instInhabitedRingCon = { default := ringConGen EmptyRelation }
          @[simp]
          theorem RingCon.rel_mk {R : Type u_2} [Add R] [Mul R] {s : Con R} {h : ∀ {w x y z : R}, Setoid.r w xSetoid.r y zSetoid.r (w + y) (x + z)} {a : R} {b : R} :
          { toCon := s, add' := h } a b Setoid.r a b
          def RingCon.Quotient {R : Type u_2} [Add R] [Mul R] (c : RingCon R) :
          Type u_2

          Defining the quotient by a congruence relation of a type with addition and multiplication.

          Equations
          Instances For
            def RingCon.toQuotient {R : Type u_2} [Add R] [Mul R] {c : RingCon R} (r : R) :

            The morphism into the quotient by a congruence relation

            Equations
            Instances For
              instance RingCon.instCoeTCQuotient {R : Type u_2} [Add R] [Mul R] (c : RingCon R) :

              Coercion from a type with addition and multiplication to its quotient by a congruence relation.

              See Note [use has_coe_t].

              Equations
              instance RingCon.instDecidableEqQuotient {R : Type u_2} [Add R] [Mul R] (c : RingCon R) [_d : (a b : R) → Decidable (c a b)] :

              The quotient by a decidable congruence relation has decidable equality.

              Equations
              @[simp]
              theorem RingCon.quot_mk_eq_coe {R : Type u_2} [Add R] [Mul R] (c : RingCon R) (x : R) :
              Quot.mk (c) x = x
              @[simp]
              theorem RingCon.eq {R : Type u_2} [Add R] [Mul R] (c : RingCon R) {a : R} {b : R} :
              a = b c a b

              Two elements are related by a congruence relation c iff they are represented by the same element of the quotient by c.

              Basic notation #

              The basic algebraic notation, 0, 1, +, *, -, ^, descend naturally under the quotient

              @[simp]
              theorem RingCon.coe_add {R : Type u_2} [Add R] [Mul R] (c : RingCon R) (x : R) (y : R) :
              ↑(x + y) = x + y
              @[simp]
              theorem RingCon.coe_mul {R : Type u_2} [Add R] [Mul R] (c : RingCon R) (x : R) (y : R) :
              ↑(x * y) = x * y
              @[simp]
              theorem RingCon.coe_zero {R : Type u_2} [AddZeroClass R] [Mul R] (c : RingCon R) :
              0 = 0
              @[simp]
              theorem RingCon.coe_one {R : Type u_2} [Add R] [MulOneClass R] (c : RingCon R) :
              1 = 1
              instance RingCon.instSMulQuotientToMul {α : Type u_1} {R : Type u_2} [Add R] [MulOneClass R] [SMul α R] [IsScalarTower α R R] (c : RingCon R) :
              Equations
              @[simp]
              theorem RingCon.coe_smul {α : Type u_1} {R : Type u_2} [Add R] [MulOneClass R] [SMul α R] [IsScalarTower α R R] (c : RingCon R) (a : α) (x : R) :
              ↑(a x) = a x
              @[simp]
              theorem RingCon.coe_neg {R : Type u_2} [AddGroup R] [Mul R] (c : RingCon R) (x : R) :
              ↑(-x) = -x
              @[simp]
              theorem RingCon.coe_sub {R : Type u_2} [AddGroup R] [Mul R] (c : RingCon R) (x : R) (y : R) :
              ↑(x - y) = x - y
              @[simp]
              theorem RingCon.coe_zsmul {R : Type u_2} [AddGroup R] [Mul R] (c : RingCon R) (z : ) (x : R) :
              ↑(z x) = z x
              @[simp]
              theorem RingCon.coe_nsmul {R : Type u_2} [AddMonoid R] [Mul R] (c : RingCon R) (n : ) (x : R) :
              ↑(n x) = n x
              @[simp]
              theorem RingCon.coe_pow {R : Type u_2} [Add R] [Monoid R] (c : RingCon R) (x : R) (n : ) :
              ↑(x ^ n) = x ^ n
              @[simp]
              theorem RingCon.coe_nat_cast {R : Type u_2} [AddMonoidWithOne R] [Mul R] (c : RingCon R) (n : ) :
              n = n
              @[simp]
              theorem RingCon.coe_int_cast {R : Type u_2} [AddGroupWithOne R] [Mul R] (c : RingCon R) (n : ) :
              n = n
              Equations

              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
              • 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
              • 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
              • 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
              • 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.

              The natural homomorphism from a ring to its quotient by a congruence relation.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For