Documentation

Mathlib.Algebra.Ring.FunLike

Ring instances for FunLike types #

In this file we define various instances related to ring for FunLike types. There are two different variants: either the multiplication is given by composition or it is pointwise multiplication.

Note that currently, these are not registered as instances, but only abbrevs to avoid long typeclass searches. See note [IsApply classes].

def FunLike.coeRingHom (F : Type u_1) {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [NonAssocSemiring F] [(a : α) → NonAssocSemiring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] :
F →+* (a : α) → β a

Coercion as a ring homomorphism.

Equations
  • FunLike.coeRingHom F = { toFun := fun (f : F) => ⇑f, map_one' := ⋯, map_mul' := ⋯, map_zero' := ⋯, map_add' := ⋯ }
Instances For
    @[simp]
    theorem FunLike.coeRingHom_apply {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [NonAssocSemiring F] [(a : α) → NonAssocSemiring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] (f : F) :
    (coeRingHom F) f = ⇑f
    theorem FunLike.coe_coeRingHom {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [NonAssocSemiring F] [(a : α) → NonAssocSemiring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] :
    @[simp]
    theorem FunLike.toMonoidHom_coeRingHom {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [NonAssocSemiring F] [(a : α) → NonAssocSemiring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] :
    ↑(coeRingHom F) = coeMonoidHom F α β
    @[simp]
    theorem FunLike.toAddMonoidHom_coeRingHom {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [NonAssocSemiring F] [(a : α) → NonAssocSemiring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] :
    @[simp]
    theorem FunLike.toMulHom_coeRingHom {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [NonAssocSemiring F] [(a : α) → NonAssocSemiring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] :
    ↑(coeRingHom F) = coeMulHom F α β
    @[simp]
    theorem FunLike.toAddHom_coeRingHom {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [NonAssocSemiring F] [(a : α) → NonAssocSemiring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] :
    ↑(coeRingHom F) = coeAddHom F α β
    def FunLike.evalRingHom (F : Type u_1) {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [NonAssocSemiring F] [(a : α) → NonAssocSemiring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] (x : α) :
    F →+* β x

    Evaluation as a ring homomorphism.

    Equations
    Instances For
      @[simp]
      theorem FunLike.evalRingHom_apply (F : Type u_1) {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [NonAssocSemiring F] [(a : α) → NonAssocSemiring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] (x : α) (x✝ : F) :
      (evalRingHom F x) x✝ = x✝ x
      @[simp]
      theorem FunLike.toMonoidHom_evalRingHom {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [NonAssocSemiring F] [(a : α) → NonAssocSemiring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] (x : α) :
      @[simp]
      theorem FunLike.toAddMonoidHom_evalRingHom {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [NonAssocSemiring F] [(a : α) → NonAssocSemiring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] (x : α) :
      @[simp]
      theorem FunLike.toMulHom_evalRingHom {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [NonAssocSemiring F] [(a : α) → NonAssocSemiring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] (x : α) :
      ↑(evalRingHom F x) = evalMulHom F x
      @[simp]
      theorem FunLike.toAddHom_evalRingHom {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [NonAssocSemiring F] [(a : α) → NonAssocSemiring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] (x : α) :
      ↑(evalRingHom F x) = evalAddHom F x
      @[reducible, inline]

      A FunLike type with (f * g) x = f (g x) is a Semiring.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        @[reducible, inline]

        A FunLike type with (f * g) x = f (g x) is a Ring.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem FunLike.leftDistribClass {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [(a : α) → Mul (β a)] [(a : α) → Add (β a)] [∀ (a : α), LeftDistribClass (β a)] [IsAddApply F] [IsMulApply F] :

          A FunLike type with (f * g) x = f x * g x has left distributivity if β does.

          theorem FunLike.rightDistribClass {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [(a : α) → Mul (β a)] [(a : α) → Add (β a)] [∀ (a : α), RightDistribClass (β a)] [IsAddApply F] [IsMulApply F] :

          A FunLike type with (f * g) x = f x * g x has right distributivity if β does.

          @[reducible, inline]
          abbrev FunLike.distrib {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [(a : α) → Distrib (β a)] [IsAddApply F] [IsMulApply F] :

          A FunLike type with (f * g) x = f x * g x is a Distrib if β is a Distrib.

          Equations
          Instances For
            @[reducible, inline]
            abbrev FunLike.hasDistribNeg {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Mul F] [Neg F] [(a : α) → Mul (β a)] [(a : α) → HasDistribNeg (β a)] [IsNegApply F] [IsMulApply F] :

            A FunLike type with (f * g) x = f x * g x is a HasDistribNeg if β is a HasDistribNeg.

            Equations
            Instances For
              @[reducible, inline]
              abbrev FunLike.addMonoidWithOne {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Zero F] [One F] [SMul ℕ F] [NatCast F] [(a : α) → AddMonoidWithOne (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsSMulApply ℕ F] [IsNatCastApply F] :

              A FunLike type with (f * g) x = f x * g x is an AddMonoidWithOne if β is an AddMonoidWithOne.

              Equations
              Instances For
                @[reducible, inline]
                abbrev FunLike.addCommMonoidWithOne {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Zero F] [One F] [SMul ℕ F] [NatCast F] [(a : α) → AddCommMonoidWithOne (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsSMulApply ℕ F] [IsNatCastApply F] :

                A FunLike type with (f * g) x = f x * g x is an AddCommMonoidWithOne if β is an AddCommMonoidWithOne.

                Equations
                Instances For
                  @[reducible, inline]
                  abbrev FunLike.addGroupWithOne {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Zero F] [One F] [Neg F] [Sub F] [SMul ℕ F] [SMul ℤ F] [NatCast F] [IntCast F] [(a : α) → AddGroupWithOne (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsNegApply F] [IsSubApply F] [IsSMulApply ℕ F] [IsSMulApply ℤ F] [IsNatCastApply F] [IsIntCastApply F] :

                  A FunLike type with (f * g) x = f x * g x is an AddGroupWithOne if β is an AddGroupWithOne.

                  Equations
                  Instances For
                    @[reducible, inline]
                    abbrev FunLike.addCommGroupWithOne {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Zero F] [One F] [Neg F] [Sub F] [SMul ℕ F] [SMul ℤ F] [NatCast F] [IntCast F] [(a : α) → AddCommGroupWithOne (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsNegApply F] [IsSubApply F] [IsSMulApply ℕ F] [IsSMulApply ℤ F] [IsNatCastApply F] [IsIntCastApply F] :

                    A FunLike type with (f * g) x = f x * g x is an AddCommGroupWithOne if β is an AddCommGroupWithOne.

                    Equations
                    Instances For
                      @[reducible, inline]
                      abbrev FunLike.nonUnitalNonAssocSemiring {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [Zero F] [SMul ℕ F] [(a : α) → NonUnitalNonAssocSemiring (β a)] [IsZeroApply F] [IsAddApply F] [IsMulApply F] [IsSMulApply ℕ F] :

                      A FunLike type with (f * g) x = f x * g x is a NonUnitalNonAssocSemiring if β is a NonUnitalNonAssocSemiring.

                      Equations
                      Instances For
                        @[reducible, inline]
                        abbrev FunLike.nonUnitalNonAssocCommSemiring {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [Zero F] [SMul ℕ F] [(a : α) → NonUnitalNonAssocCommSemiring (β a)] [IsZeroApply F] [IsAddApply F] [IsMulApply F] [IsSMulApply ℕ F] :

                        A FunLike type with (f * g) x = f x * g x is a NonUnitalNonAssocCommSemiring if β is a NonUnitalNonAssocCommSemiring.

                        Equations
                        Instances For
                          @[reducible, inline]
                          abbrev FunLike.nonUnitalSemiring {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [Zero F] [SMul ℕ F] [(a : α) → NonUnitalSemiring (β a)] [IsZeroApply F] [IsAddApply F] [IsMulApply F] [IsSMulApply ℕ F] :

                          A FunLike type with (f * g) x = f x * g x is a NonUnitalSemiring if β is a NonUnitalSemiring.

                          Equations
                          Instances For
                            @[reducible, inline]
                            abbrev FunLike.nonAssocSemiring {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [Zero F] [One F] [SMul ℕ F] [NatCast F] [(a : α) → NonAssocSemiring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] [IsSMulApply ℕ F] [IsNatCastApply F] :

                            A FunLike type with (f * g) x = f x * g x is a NonAssocSemiring if β is a NonAssocSemiring.

                            Equations
                            Instances For
                              @[reducible, inline]
                              abbrev FunLike.nonAssocCommSemiring {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [Zero F] [One F] [SMul ℕ F] [NatCast F] [(a : α) → NonAssocCommSemiring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] [IsSMulApply ℕ F] [IsNatCastApply F] :

                              A FunLike type with (f * g) x = f x * g x is a NonAssocCommSemiring if β is a NonAssocCommSemiring.

                              Equations
                              Instances For
                                @[reducible, inline]
                                abbrev FunLike.semiring {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [Zero F] [One F] [SMul ℕ F] [Pow F ℕ] [NatCast F] [(a : α) → Semiring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] [IsSMulApply ℕ F] [IsPowApply ℕ F] [IsNatCastApply F] :

                                A FunLike type with (f * g) x = f x * g x is a Semiring if β is a Semiring.

                                Equations
                                Instances For
                                  @[reducible, inline]
                                  abbrev FunLike.nonUnitalCommSemiring {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [Zero F] [SMul ℕ F] [(a : α) → NonUnitalCommSemiring (β a)] [IsZeroApply F] [IsAddApply F] [IsMulApply F] [IsSMulApply ℕ F] :

                                  A FunLike type with (f * g) x = f x * g x is a NonUnitalCommSemiring if β is a NonUnitalCommSemiring.

                                  Equations
                                  Instances For
                                    @[reducible, inline]
                                    abbrev FunLike.commSemiring {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [Zero F] [One F] [SMul ℕ F] [Pow F ℕ] [NatCast F] [(a : α) → CommSemiring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] [IsSMulApply ℕ F] [IsPowApply ℕ F] [IsNatCastApply F] :

                                    A FunLike type with (f * g) x = f x * g x is a CommSemiring if β is a CommSemiring.

                                    Equations
                                    Instances For
                                      @[reducible, inline]
                                      abbrev FunLike.nonUnitalNonAssocRing {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [Zero F] [Neg F] [Sub F] [SMul ℕ F] [SMul ℤ F] [(a : α) → NonUnitalNonAssocRing (β a)] [IsZeroApply F] [IsAddApply F] [IsMulApply F] [IsNegApply F] [IsSubApply F] [IsSMulApply ℕ F] [IsSMulApply ℤ F] :

                                      A FunLike type with (f * g) x = f x * g x is a NonUnitalNonAssocRing if β is a NonUnitalNonAssocRing.

                                      Equations
                                      Instances For
                                        @[reducible, inline]
                                        abbrev FunLike.nonUnitalNonAssocCommRing {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [Zero F] [Neg F] [Sub F] [SMul ℕ F] [SMul ℤ F] [(a : α) → NonUnitalNonAssocCommRing (β a)] [IsZeroApply F] [IsAddApply F] [IsMulApply F] [IsNegApply F] [IsSubApply F] [IsSMulApply ℕ F] [IsSMulApply ℤ F] :

                                        A FunLike type with (f * g) x = f x * g x is a NonUnitalNonAssocCommRing if β is a NonUnitalNonAssocCommRing.

                                        Equations
                                        Instances For
                                          @[reducible, inline]
                                          abbrev FunLike.nonUnitalRing {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [Zero F] [Neg F] [Sub F] [SMul ℕ F] [SMul ℤ F] [(a : α) → NonUnitalRing (β a)] [IsZeroApply F] [IsAddApply F] [IsMulApply F] [IsNegApply F] [IsSubApply F] [IsSMulApply ℕ F] [IsSMulApply ℤ F] :

                                          A FunLike type with (f * g) x = f x * g x is a NonUnitalRing if β is a NonUnitalRing.

                                          Equations
                                          Instances For
                                            @[reducible, inline]
                                            abbrev FunLike.nonAssocRing {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [Zero F] [One F] [Neg F] [Sub F] [SMul ℕ F] [SMul ℤ F] [NatCast F] [IntCast F] [(a : α) → NonAssocRing (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] [IsNegApply F] [IsSubApply F] [IsSMulApply ℕ F] [IsSMulApply ℤ F] [IsNatCastApply F] [IsIntCastApply F] :

                                            A FunLike type with (f * g) x = f x * g x is a NonAssocRing if β is a NonAssocRing.

                                            Equations
                                            Instances For
                                              @[reducible, inline]
                                              abbrev FunLike.nonAssocCommRing {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [Zero F] [One F] [Neg F] [Sub F] [SMul ℕ F] [SMul ℤ F] [NatCast F] [IntCast F] [(a : α) → NonAssocCommRing (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] [IsNegApply F] [IsSubApply F] [IsSMulApply ℕ F] [IsSMulApply ℤ F] [IsNatCastApply F] [IsIntCastApply F] :

                                              A FunLike type with (f * g) x = f x * g x is a NonAssocCommRing if β is a NonAssocCommRing.

                                              Equations
                                              Instances For
                                                @[reducible, inline]
                                                abbrev FunLike.ring {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [Zero F] [One F] [Neg F] [Sub F] [SMul ℕ F] [SMul ℤ F] [Pow F ℕ] [NatCast F] [IntCast F] [(a : α) → Ring (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] [IsNegApply F] [IsSubApply F] [IsSMulApply ℕ F] [IsSMulApply ℤ F] [IsPowApply ℕ F] [IsNatCastApply F] [IsIntCastApply F] :

                                                A FunLike type with (f * g) x = f x * g x is a Ring if β is a Ring.

                                                Equations
                                                Instances For
                                                  @[reducible, inline]
                                                  abbrev FunLike.nonUnitalCommRing {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [Zero F] [Neg F] [Sub F] [SMul ℕ F] [SMul ℤ F] [(a : α) → NonUnitalCommRing (β a)] [IsZeroApply F] [IsAddApply F] [IsMulApply F] [IsNegApply F] [IsSubApply F] [IsSMulApply ℕ F] [IsSMulApply ℤ F] :

                                                  A FunLike type with (f * g) x = f x * g x is a NonUnitalCommRing if β is a NonUnitalCommRing.

                                                  Equations
                                                  Instances For
                                                    @[reducible, inline]
                                                    abbrev FunLike.commRing {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Add F] [Mul F] [Zero F] [One F] [Neg F] [Sub F] [SMul ℕ F] [SMul ℤ F] [Pow F ℕ] [NatCast F] [IntCast F] [(a : α) → CommRing (β a)] [IsZeroApply F] [IsOneApply F] [IsAddApply F] [IsMulApply F] [IsNegApply F] [IsSubApply F] [IsSMulApply ℕ F] [IsSMulApply ℤ F] [IsPowApply ℕ F] [IsNatCastApply F] [IsIntCastApply F] :

                                                    A FunLike type with (f * g) x = f x * g x is a CommRing if β is a CommRing.

                                                    Equations
                                                    Instances For