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.

@[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
      @[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 α β] [Neg F] [Mul 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 α β] [Zero F] [One F] [Add 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.addGroupWithOne {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Zero F] [One F] [Add 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.nonUnitalNonAssocSemiring {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Zero F] [Add F] [Mul 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.nonUnitalSemiring {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Zero F] [Add F] [Mul 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 α β] [Zero F] [One F] [Add F] [Mul 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.semiring {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Zero F] [One F] [Add F] [Mul 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 α β] [Zero F] [Add F] [Mul 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 α β] [Zero F] [One F] [Add F] [Mul 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 α β] [Zero F] [Add F] [Neg F] [Sub F] [Mul 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.nonUnitalRing {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Zero F] [Add F] [Neg F] [Sub F] [Mul 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 α β] [Zero F] [One F] [Add F] [Neg F] [Sub F] [Mul 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.ring {F : Type u_1} {α : Type u_2} {β : α → Type u_4} [DFunLike F α β] [Zero F] [One F] [Add F] [Neg F] [Sub F] [Mul 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 α β] [Zero F] [Add F] [Neg F] [Sub F] [Mul 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 α β] [Zero F] [One F] [Add F] [Neg F] [Sub F] [Mul 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
                                      @[reducible, inline]
                                      abbrev FunLike.isScalarTowerSelf {F : Type u_1} {α : Type u_2} {R : Type u_3} {β : α → Type u_4} [SMul R F] [NonUnitalNonAssocSemiring F] [(a : α) → NonUnitalNonAssocSemiring (β a)] [(a : α) → SMul R (β a)] [DFunLike F α β] [IsMulApply F] [IsSMulApply R F] [∀ (a : α), IsScalarTower R (β a) (β a)] :

                                      A FunLike type with (f * g) x = f x * g x is an R-scalar tower if β is an R-scalar tower.

                                      Equations
                                      • ⋯ = ⋯
                                      Instances For
                                        @[reducible, inline]
                                        abbrev FunLike.smulCommClassSelf {F : Type u_1} {α : Type u_2} {R : Type u_3} {β : α → Type u_4} [SMul R F] [NonUnitalNonAssocSemiring F] [(a : α) → NonUnitalNonAssocSemiring (β a)] [(a : α) → SMul R (β a)] [DFunLike F α β] [IsMulApply F] [IsSMulApply R F] [∀ (a : α), SMulCommClass R (β a) (β a)] :

                                        A FunLike type with (f * g) x = f x * g x has commutative R-scalar multiplication if β has commutative R-scalar multiplication.

                                        Equations
                                        • ⋯ = ⋯
                                        Instances For