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 / V10. Commutative algebra II: valuations, Dedekind domains, local algebra

Mathlib.RingTheory.GradedAlgebra.TensorProduct

15 declarations. Mathlib docs ยท Source

Tensor product of graded algebra

In this file we show that if ๐’œ is a graded R-algebra, and S is any R-algebra, then S โŠ—[R] ๐’œ is a graded S-algebra with the grading fun i โ†ฆ (๐’œ i).baseChange S.

Implementation notes

We need to provide the shortcut instances afterwards for the grade zero because it is expensive to deduce via unification the function fun i โ†ฆ (๐’œ i).baseChange S.

theorem AlgHom.liftEquiv.congr_simp E1 #

โˆ€ (R : Type u_4) (S : Type u_5) (A : Type u_6) (B : Type u_7) [inst : CommSemiring R] [inst_1 : CommSemiring S]
  [inst_2 : Semiring A] [inst_3 : Semiring B] [inst_4 : Algebra R A] [inst_5 : Algebra S B] [inst_6 : Algebra R S]
  [inst_7 : Algebra R B] [inst_8 : IsScalarTower R S B], AlgHom.liftEquiv R S A B = AlgHom.liftEquiv R S A B

instance GradedAlgebra.baseChange E0 #

{ฮน : Type u_1} โ†’
  {R : Type u_2} โ†’
    {A : Type u_3} โ†’
      {S : Type u_4} โ†’
        [inst : CommSemiring R] โ†’
          [inst_1 : CommSemiring S] โ†’
            [inst_2 : Algebra R S] โ†’
              [inst_3 : DecidableEq ฮน] โ†’
                [inst_4 : AddMonoid ฮน] โ†’
                  [inst_5 : Semiring A] โ†’
                    [inst_6 : Algebra R A] โ†’
                      (๐’œ : ฮน โ†’ Submodule R A) โ†’ [GradedAlgebra ๐’œ] โ†’ GradedAlgebra fun i โ†ฆ Submodule.baseChange S (๐’œ i)

instance GradedAlgebra.instSemiringSubtypeTensorProductMemSubmoduleBaseChangeOfNat E0 #

{ฮน : Type u_1} โ†’
  {R : Type u_2} โ†’
    {A : Type u_3} โ†’
      {S : Type u_4} โ†’
        [inst : CommSemiring R] โ†’
          [inst_1 : CommSemiring S] โ†’
            [inst_2 : Algebra R S] โ†’
              [inst_3 : DecidableEq ฮน] โ†’
                [inst_4 : AddMonoid ฮน] โ†’
                  [inst_5 : Semiring A] โ†’
                    [inst_6 : Algebra R A] โ†’
                      (๐’œ : ฮน โ†’ Submodule R A) โ†’ [GradedAlgebra ๐’œ] โ†’ Semiring โ†ฅ(Submodule.baseChange S (๐’œ 0))

instance GradedAlgebra.instAlgebraSubtypeTensorProductMemSubmoduleBaseChangeOfNat E0 #

{ฮน : Type u_1} โ†’
  {R : Type u_2} โ†’
    {A : Type u_3} โ†’
      {S : Type u_4} โ†’
        [inst : CommSemiring R] โ†’
          [inst_1 : CommSemiring S] โ†’
            [inst_2 : Algebra R S] โ†’
              [inst_3 : DecidableEq ฮน] โ†’
                [inst_4 : AddMonoid ฮน] โ†’
                  [inst_5 : Semiring A] โ†’
                    [inst_6 : Algebra R A] โ†’
                      (๐’œ : ฮน โ†’ Submodule R A) โ†’ [inst_7 : GradedAlgebra ๐’œ] โ†’ Algebra S โ†ฅ(Submodule.baseChange S (๐’œ 0))

theorem GradedAlgebra.coe_algebraMap_apply E0 #

โˆ€ {ฮน : Type u_1} {R : Type u_2} {A : Type u_3} {S : Type u_4} [inst : CommSemiring R] [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [inst_3 : DecidableEq ฮน] [inst_4 : AddMonoid ฮน] [inst_5 : Semiring A] [inst_6 : Algebra R A]
  (๐’œ : ฮน โ†’ Submodule R A) [inst_7 : GradedAlgebra ๐’œ] (s : S),
  โ†‘((algebraMap S โ†ฅ(Submodule.baseChange S (๐’œ 0))) s) = s โŠ—โ‚œ[R] 1

instance GradedAlgebra.instCommSemiringSubtypeTensorProductMemSubmoduleBaseChangeOfNat E0 #

{ฮน : Type u_1} โ†’
  {R : Type u_2} โ†’
    {A : Type u_3} โ†’
      {S : Type u_4} โ†’
        [inst : CommSemiring R] โ†’
          [inst_1 : CommSemiring S] โ†’
            [inst_2 : Algebra R S] โ†’
              [inst_3 : DecidableEq ฮน] โ†’
                [inst_4 : AddMonoid ฮน] โ†’
                  [inst_5 : CommSemiring A] โ†’
                    [inst_6 : Algebra R A] โ†’
                      (๐’œ : ฮน โ†’ Submodule R A) โ†’ [GradedAlgebra ๐’œ] โ†’ CommSemiring โ†ฅ(Submodule.baseChange S (๐’œ 0))

instance GradedAlgebra.instAlgebraSubtypeTensorProductMemSubmoduleBaseChangeOfNat_1 E0 #

{ฮน : Type u_1} โ†’
  {R : Type u_2} โ†’
    {A : Type u_3} โ†’
      {S : Type u_4} โ†’
        [inst : CommSemiring R] โ†’
          [inst_1 : CommSemiring S] โ†’
            [inst_2 : Algebra R S] โ†’
              [inst_3 : DecidableEq ฮน] โ†’
                [inst_4 : AddCommMonoid ฮน] โ†’
                  [inst_5 : CommSemiring A] โ†’
                    [inst_6 : Algebra R A] โ†’
                      (๐’œ : ฮน โ†’ Submodule R A) โ†’
                        [inst_7 : GradedAlgebra ๐’œ] โ†’ Algebra (โ†ฅ(Submodule.baseChange S (๐’œ 0))) (TensorProduct R S A)

theorem GradedAlgebra.algebraMap_apply E0 #

โˆ€ {ฮน : Type u_1} {R : Type u_2} {A : Type u_3} {S : Type u_4} [inst : CommSemiring R] [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [inst_3 : DecidableEq ฮน] [inst_4 : AddCommMonoid ฮน] [inst_5 : CommSemiring A]
  [inst_6 : Algebra R A] (๐’œ : ฮน โ†’ Submodule R A) [inst_7 : GradedAlgebra ๐’œ] (x : โ†ฅ(Submodule.baseChange S (๐’œ 0))),
  (algebraMap (โ†ฅ(Submodule.baseChange S (๐’œ 0))) (TensorProduct R S A)) x = โ†‘x

instance GradedAlgebra.instRingSubtypeTensorProductMemSubmoduleBaseChangeOfNat E0 #

{ฮน : Type u_1} โ†’
  {R : Type u_2} โ†’
    {A : Type u_3} โ†’
      {S : Type u_4} โ†’
        [inst : CommSemiring R] โ†’
          [inst_1 : CommRing S] โ†’
            [inst_2 : Algebra R S] โ†’
              [inst_3 : DecidableEq ฮน] โ†’
                [inst_4 : AddMonoid ฮน] โ†’
                  [inst_5 : Semiring A] โ†’
                    [inst_6 : Algebra R A] โ†’
                      (๐’œ : ฮน โ†’ Submodule R A) โ†’ [GradedAlgebra ๐’œ] โ†’ Ring โ†ฅ(Submodule.baseChange S (๐’œ 0))

instance GradedAlgebra.instCommRingSubtypeTensorProductMemSubmoduleBaseChangeOfNat E0 #

{ฮน : Type u_1} โ†’
  {R : Type u_2} โ†’
    {A : Type u_3} โ†’
      {S : Type u_4} โ†’
        [inst : CommSemiring R] โ†’
          [inst_1 : CommRing S] โ†’
            [inst_2 : Algebra R S] โ†’
              [inst_3 : DecidableEq ฮน] โ†’
                [inst_4 : AddCommMonoid ฮน] โ†’
                  [inst_5 : CommSemiring A] โ†’
                    [inst_6 : Algebra R A] โ†’
                      (๐’œ : ฮน โ†’ Submodule R A) โ†’ [GradedAlgebra ๐’œ] โ†’ CommRing โ†ฅ(Submodule.baseChange S (๐’œ 0))

def GradedAlgHom.liftEquiv E1 #

{ฮน : Type u_1} โ†’
  {R : Type u_2} โ†’
    {S : Type u_3} โ†’
      {A : Type u_4} โ†’
        {B : Type u_5} โ†’
          [inst : DecidableEq ฮน] โ†’
            [inst_1 : AddMonoid ฮน] โ†’
              [inst_2 : CommSemiring R] โ†’
                [inst_3 : CommSemiring S] โ†’
                  [inst_4 : Semiring A] โ†’
                    [inst_5 : Semiring B] โ†’
                      [inst_6 : Algebra R A] โ†’
                        [inst_7 : Algebra S B] โ†’
                          (๐’œ : ฮน โ†’ Submodule R A) โ†’
                            (โ„ฌ : ฮน โ†’ Submodule S B) โ†’
                              [inst_8 : GradedAlgebra ๐’œ] โ†’
                                [inst_9 : GradedAlgebra โ„ฌ] โ†’
                                  [inst_10 : Algebra R S] โ†’
                                    [inst_11 : Algebra R B] โ†’
                                      [inst_12 : IsScalarTower R S B] โ†’
                                        (๐’œ โ†’โ‚แต[R] fun x โ†ฆ Submodule.restrictScalars R (โ„ฌ x)) โ‰ƒ
                                          ((fun x โ†ฆ Submodule.baseChange S (๐’œ x)) โ†’โ‚แต[S] โ„ฌ)

A map from the base change of a graded algebra is the same as a map to the scalar restriction.

In category-theoretical terms, this is an adjunction between:

  1. ๐’œ โ†ฆ (๐’œ ยท |>.baseChange S), a functor from Graded R-Algebra to Graded S-Algebra; and:
  2. โ„ฌ โ†ฆ (โ„ฌ ยท |>.restrictScalars R), a functor from Graded S-Algebra to Graded R-Algebra.

theorem GradedAlgHom.liftEquiv_tmul E0 #

โˆ€ {ฮน : Type u_1} {R : Type u_2} {S : Type u_3} {A : Type u_4} {B : Type u_5} [inst : DecidableEq ฮน]
  [inst_1 : AddMonoid ฮน] [inst_2 : CommSemiring R] [inst_3 : CommSemiring S] [inst_4 : Semiring A] [inst_5 : Semiring B]
  [inst_6 : Algebra R A] [inst_7 : Algebra S B] {๐’œ : ฮน โ†’ Submodule R A} {โ„ฌ : ฮน โ†’ Submodule S B}
  [inst_8 : GradedAlgebra ๐’œ] [inst_9 : GradedAlgebra โ„ฌ] [inst_10 : Algebra R S] [inst_11 : Algebra R B]
  [inst_12 : IsScalarTower R S B] (f : ๐’œ โ†’โ‚แต[R] fun x โ†ฆ Submodule.restrictScalars R (โ„ฌ x)) (r : S) (x : A),
  ((GradedAlgHom.liftEquiv ๐’œ โ„ฌ) f) (r โŠ—โ‚œ[R] x) = r โ€ข f x

theorem GradedAlgHom.liftEquiv_symm_apply E0 #

โˆ€ {ฮน : Type u_1} {R : Type u_2} {S : Type u_3} {A : Type u_4} {B : Type u_5} [inst : DecidableEq ฮน]
  [inst_1 : AddMonoid ฮน] [inst_2 : CommSemiring R] [inst_3 : CommSemiring S] [inst_4 : Semiring A] [inst_5 : Semiring B]
  [inst_6 : Algebra R A] [inst_7 : Algebra S B] {๐’œ : ฮน โ†’ Submodule R A} {โ„ฌ : ฮน โ†’ Submodule S B}
  [inst_8 : GradedAlgebra ๐’œ] [inst_9 : GradedAlgebra โ„ฌ] [inst_10 : Algebra R S] [inst_11 : Algebra R B]
  [inst_12 : IsScalarTower R S B] (f : (fun x โ†ฆ Submodule.baseChange S (๐’œ x)) โ†’โ‚แต[S] โ„ฌ) (x : A),
  ((GradedAlgHom.liftEquiv ๐’œ โ„ฌ).symm f) x = f (1 โŠ—โ‚œ[R] x)

def GradedAlgHom.includeRight E1 #

{ฮน : Type u_1} โ†’
  {R : Type u_2} โ†’
    (S : Type u_3) โ†’
      {A : Type u_4} โ†’
        [inst : DecidableEq ฮน] โ†’
          [inst_1 : AddMonoid ฮน] โ†’
            [inst_2 : CommSemiring R] โ†’
              [inst_3 : CommSemiring S] โ†’
                [inst_4 : Semiring A] โ†’
                  [inst_5 : Algebra R A] โ†’
                    (๐’œ : ฮน โ†’ Submodule R A) โ†’
                      [inst_6 : GradedAlgebra ๐’œ] โ†’
                        [inst_7 : Algebra R S] โ†’
                          ๐’œ โ†’โ‚แต[R] fun x โ†ฆ Submodule.restrictScalars R (Submodule.baseChange S (๐’œ x))

Graded version of Algebra.TensorProduct.includeRight, i.e. the inclusion from a graded R-algebra ๐’œ to its base change to S and then restricted back to R. (The restriction does not change the actual sets).

In categorical terms, this is the unit of the adjunction GradedAlgHom.liftEquiv.

theorem GradedAlgHom.includeRight_apply E0 #

โˆ€ {ฮน : Type u_1} {R : Type u_2} (S : Type u_3) {A : Type u_4} [inst : DecidableEq ฮน] [inst_1 : AddMonoid ฮน]
  [inst_2 : CommSemiring R] [inst_3 : CommSemiring S] [inst_4 : Semiring A] [inst_5 : Algebra R A]
  {๐’œ : ฮน โ†’ Submodule R A} [inst_6 : GradedAlgebra ๐’œ] [inst_7 : Algebra R S] (x : A),
  (GradedAlgHom.includeRight S ๐’œ) x = 1 โŠ—โ‚œ[R] x