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

48 declarations. Mathlib docs ยท Source

Internally-graded rings and algebras

This file defines the typeclass GradedAlgebra ๐’œ, for working with an algebra A that is internally graded by a collection of submodules ๐’œ : ฮน โ†’ Submodule R A. See the docstring of that typeclass for more information.

Main definitions

  • GradedRing ๐’œ: the typeclass, which is a combination of SetLike.GradedMonoid, and DirectSum.Decomposition ๐’œ.
  • GradedAlgebra ๐’œ: A convenience alias for GradedRing when ๐’œ is a family of submodules.
  • DirectSum.decomposeRingEquiv ๐’œ : A โ‰ƒโ‚[R] โจ i, ๐’œ i, a more bundled version of DirectSum.decompose ๐’œ.
  • DirectSum.decomposeAlgEquiv ๐’œ : A โ‰ƒโ‚[R] โจ i, ๐’œ i, a more bundled version of DirectSum.decompose ๐’œ.
  • GradedAlgebra.proj ๐’œ i is the linear map from A to its degree i : ฮน component, such that proj ๐’œ i x = decompose ๐’œ x i.

Implementation notes

For now, we do not have internally-graded semirings and internally-graded rings; these can be represented with ๐’œ : ฮน โ†’ Submodule โ„• A and ๐’œ : ฮน โ†’ Submodule โ„ค A respectively, since all Semirings are โ„•-algebras via Semiring.toNatAlgebra, and all Rings are โ„ค-algebras via Ring.toIntAlgebra.

Tags

graded algebra, graded ring, graded semiring, decomposition

theorem GradedRing.projZeroRingHom.congr_simp E1 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : Semiring A] [inst_1 : DecidableEq ฮน] [inst_2 : AddCommMonoid ฮน]
  [inst_3 : PartialOrder ฮน] [inst_4 : CanonicallyOrderedAdd ฮน] [inst_5 : SetLike ฯƒ A] [inst_6 : AddSubmonoidClass ฯƒ A]
  (๐’œ : ฮน โ†’ ฯƒ) [inst_7 : GradedRing ๐’œ], GradedRing.projZeroRingHom ๐’œ = GradedRing.projZeroRingHom ๐’œ

def GradedRing.ctorIdx E1 #

{ฮน : Type u_1} โ†’
  {A : Type u_3} โ†’
    {ฯƒ : Type u_4} โ†’
      {inst : DecidableEq ฮน} โ†’
        {inst_1 : AddMonoid ฮน} โ†’
          {inst_2 : Semiring A} โ†’
            {inst_3 : SetLike ฯƒ A} โ†’ {inst_4 : AddSubmonoidClass ฯƒ A} โ†’ {๐’œ : ฮน โ†’ ฯƒ} โ†’ GradedRing ๐’œ โ†’ โ„•

theorem GradedRing.projZeroRingHom'.congr_simp E1 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : Semiring A] [inst_1 : DecidableEq ฮน] [inst_2 : AddCommMonoid ฮน]
  [inst_3 : PartialOrder ฮน] [inst_4 : CanonicallyOrderedAdd ฮน] [inst_5 : SetLike ฯƒ A] [inst_6 : AddSubmonoidClass ฯƒ A]
  (๐’œ : ฮน โ†’ ฯƒ) [inst_7 : GradedRing ๐’œ], GradedRing.projZeroRingHom' ๐’œ = GradedRing.projZeroRingHom' ๐’œ

class GradedRing E3 #

{ฮน : Type u_1} โ†’
  {A : Type u_3} โ†’
    {ฯƒ : Type u_4} โ†’
      [DecidableEq ฮน] โ†’
        [AddMonoid ฮน] โ†’
          [inst : Semiring A] โ†’ [inst_1 : SetLike ฯƒ A] โ†’ [AddSubmonoidClass ฯƒ A] โ†’ (ฮน โ†’ ฯƒ) โ†’ Type (max u_1 u_3)

An internally-graded R-algebra A is one that can be decomposed into a collection of Submodule R As indexed by ฮน such that the canonical map A โ†’ โจ i, ๐’œ i is bijective and respects multiplication, i.e. the product of an element of degree i and an element of degree j is an element of degree i + j.

Note that the fact that A is internally-graded, GradedAlgebra ๐’œ, implies an externally-graded algebra structure DirectSum.GAlgebra R (fun i โ†ฆ โ†ฅ(๐’œ i)), which in turn makes available an Algebra R (โจ i, ๐’œ i) instance.

instance GradedRing.toGradedMonoid E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} {inst : DecidableEq ฮน} {inst_1 : AddMonoid ฮน} {inst_2 : Semiring A}
  {inst_3 : SetLike ฯƒ A} {inst_4 : AddSubmonoidClass ฯƒ A} {๐’œ : ฮน โ†’ ฯƒ} [self : GradedRing ๐’œ], SetLike.GradedMonoid ๐’œ

instance GradedRing.toDecomposition E0 #

{ฮน : Type u_1} โ†’
  {A : Type u_3} โ†’
    {ฯƒ : Type u_4} โ†’
      {inst : DecidableEq ฮน} โ†’
        {inst_1 : AddMonoid ฮน} โ†’
          {inst_2 : Semiring A} โ†’
            {inst_3 : SetLike ฯƒ A} โ†’
              {inst_4 : AddSubmonoidClass ฯƒ A} โ†’ {๐’œ : ฮน โ†’ ฯƒ} โ†’ [self : GradedRing ๐’œ] โ†’ DirectSum.Decomposition ๐’œ

ctor GradedRing.mk E0 #

{ฮน : Type u_1} โ†’
  {A : Type u_3} โ†’
    {ฯƒ : Type u_4} โ†’
      [inst : DecidableEq ฮน] โ†’
        [inst_1 : AddMonoid ฮน] โ†’
          [inst_2 : Semiring A] โ†’
            [inst_3 : SetLike ฯƒ A] โ†’
              [inst_4 : AddSubmonoidClass ฯƒ A] โ†’
                {๐’œ : ฮน โ†’ ฯƒ} โ†’
                  [toGradedMonoid : SetLike.GradedMonoid ๐’œ] โ†’
                    [toDecomposition : DirectSum.Decomposition ๐’œ] โ†’ GradedRing ๐’œ

def DirectSum.decomposeRingEquiv E1 #

{ฮน : Type u_1} โ†’
  {A : Type u_3} โ†’
    {ฯƒ : Type u_4} โ†’
      [inst : DecidableEq ฮน] โ†’
        [inst_1 : AddMonoid ฮน] โ†’
          [inst_2 : Semiring A] โ†’
            [inst_3 : SetLike ฯƒ A] โ†’
              [inst_4 : AddSubmonoidClass ฯƒ A] โ†’
                (๐’œ : ฮน โ†’ ฯƒ) โ†’ [inst_5 : GradedRing ๐’œ] โ†’ A โ‰ƒ+* DirectSum ฮน fun i โ†ฆ โ†ฅ(๐’œ i)

If A is graded by ฮน with degree i component ๐’œ i, then it is isomorphic as a ring to a direct sum of components.

theorem DirectSum.decompose_one E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : DecidableEq ฮน] [inst_1 : AddMonoid ฮน] [inst_2 : Semiring A]
  [inst_3 : SetLike ฯƒ A] [inst_4 : AddSubmonoidClass ฯƒ A] (๐’œ : ฮน โ†’ ฯƒ) [inst_5 : GradedRing ๐’œ],
  (DirectSum.decompose ๐’œ) 1 = 1

theorem DirectSum.decompose_symm_one E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : DecidableEq ฮน] [inst_1 : AddMonoid ฮน] [inst_2 : Semiring A]
  [inst_3 : SetLike ฯƒ A] [inst_4 : AddSubmonoidClass ฯƒ A] (๐’œ : ฮน โ†’ ฯƒ) [inst_5 : GradedRing ๐’œ],
  (DirectSum.decompose ๐’œ).symm 1 = 1

theorem DirectSum.decompose_mul E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : DecidableEq ฮน] [inst_1 : AddMonoid ฮน] [inst_2 : Semiring A]
  [inst_3 : SetLike ฯƒ A] [inst_4 : AddSubmonoidClass ฯƒ A] (๐’œ : ฮน โ†’ ฯƒ) [inst_5 : GradedRing ๐’œ] (x y : A),
  (DirectSum.decompose ๐’œ) (x * y) = (DirectSum.decompose ๐’œ) x * (DirectSum.decompose ๐’œ) y

theorem DirectSum.decompose_symm_mul E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : DecidableEq ฮน] [inst_1 : AddMonoid ฮน] [inst_2 : Semiring A]
  [inst_3 : SetLike ฯƒ A] [inst_4 : AddSubmonoidClass ฯƒ A] (๐’œ : ฮน โ†’ ฯƒ) [inst_5 : GradedRing ๐’œ]
  (x y : DirectSum ฮน fun i โ†ฆ โ†ฅ(๐’œ i)),
  (DirectSum.decompose ๐’œ).symm (x * y) = (DirectSum.decompose ๐’œ).symm x * (DirectSum.decompose ๐’œ).symm y

def GradedRing.proj E3 #

{ฮน : Type u_1} โ†’
  {A : Type u_3} โ†’
    {ฯƒ : Type u_4} โ†’
      [inst : DecidableEq ฮน] โ†’
        [inst_1 : AddMonoid ฮน] โ†’
          [inst_2 : Semiring A] โ†’
            [inst_3 : SetLike ฯƒ A] โ†’ [inst_4 : AddSubmonoidClass ฯƒ A] โ†’ (๐’œ : ฮน โ†’ ฯƒ) โ†’ [GradedRing ๐’œ] โ†’ ฮน โ†’ A โ†’+ A

The projection maps of a graded ring

theorem GradedRing.proj_apply E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : DecidableEq ฮน] [inst_1 : AddMonoid ฮน] [inst_2 : Semiring A]
  [inst_3 : SetLike ฯƒ A] [inst_4 : AddSubmonoidClass ฯƒ A] (๐’œ : ฮน โ†’ ฯƒ) [inst_5 : GradedRing ๐’œ] (i : ฮน) (r : A),
  (GradedRing.proj ๐’œ i) r = โ†‘(((DirectSum.decompose ๐’œ) r) i)

theorem GradedRing.proj_recompose E1 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : DecidableEq ฮน] [inst_1 : AddMonoid ฮน] [inst_2 : Semiring A]
  [inst_3 : SetLike ฯƒ A] [inst_4 : AddSubmonoidClass ฯƒ A] (๐’œ : ฮน โ†’ ฯƒ) [inst_5 : GradedRing ๐’œ]
  (a : DirectSum ฮน fun i โ†ฆ โ†ฅ(๐’œ i)) (i : ฮน),
  (GradedRing.proj ๐’œ i) ((DirectSum.decompose ๐’œ).symm a) =
    (DirectSum.decompose ๐’œ).symm ((DirectSum.of (fun i โ†ฆ โ†ฅ(๐’œ i)) i) (a i))

theorem GradedRing.mem_support_iff E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : DecidableEq ฮน] [inst_1 : AddMonoid ฮน] [inst_2 : Semiring A]
  [inst_3 : SetLike ฯƒ A] [inst_4 : AddSubmonoidClass ฯƒ A] (๐’œ : ฮน โ†’ ฯƒ) [inst_5 : GradedRing ๐’œ]
  [inst_6 : (i : ฮน) โ†’ (x : โ†ฅ(๐’œ i)) โ†’ Decidable (x โ‰  0)] (r : A) (i : ฮน),
  i โˆˆ DFinsupp.support ((DirectSum.decompose ๐’œ) r) โ†” (GradedRing.proj ๐’œ i) r โ‰  0

theorem DirectSum.coe_decompose_mul_add_of_left_mem E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : DecidableEq ฮน] [inst_1 : Semiring A] [inst_2 : SetLike ฯƒ A]
  [inst_3 : AddSubmonoidClass ฯƒ A] (๐’œ : ฮน โ†’ ฯƒ) {i j : ฮน} [inst_4 : AddLeftCancelMonoid ฮน] [inst_5 : GradedRing ๐’œ]
  {a b : A}, a โˆˆ ๐’œ i โ†’ โ†‘(((DirectSum.decompose ๐’œ) (a * b)) (i + j)) = a * โ†‘(((DirectSum.decompose ๐’œ) b) j)

theorem DirectSum.coe_decompose_mul_add_of_right_mem E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : DecidableEq ฮน] [inst_1 : Semiring A] [inst_2 : SetLike ฯƒ A]
  [inst_3 : AddSubmonoidClass ฯƒ A] (๐’œ : ฮน โ†’ ฯƒ) {i j : ฮน} [inst_4 : AddRightCancelMonoid ฮน] [inst_5 : GradedRing ๐’œ]
  {a b : A}, b โˆˆ ๐’œ j โ†’ โ†‘(((DirectSum.decompose ๐’œ) (a * b)) (i + j)) = โ†‘(((DirectSum.decompose ๐’œ) a) i) * b

theorem DirectSum.decompose_mul_add_left E1 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : DecidableEq ฮน] [inst_1 : Semiring A] [inst_2 : SetLike ฯƒ A]
  [inst_3 : AddSubmonoidClass ฯƒ A] (๐’œ : ฮน โ†’ ฯƒ) {i j : ฮน} [inst_4 : AddLeftCancelMonoid ฮน] [inst_5 : GradedRing ๐’œ]
  (a : โ†ฅ(๐’œ i)) {b : A},
  ((DirectSum.decompose ๐’œ) (โ†‘a * b)) (i + j) = GradedMonoid.GMul.mul a (((DirectSum.decompose ๐’œ) b) j)

theorem DirectSum.decompose_mul_add_right E1 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : DecidableEq ฮน] [inst_1 : Semiring A] [inst_2 : SetLike ฯƒ A]
  [inst_3 : AddSubmonoidClass ฯƒ A] (๐’œ : ฮน โ†’ ฯƒ) {i j : ฮน} [inst_4 : AddRightCancelMonoid ฮน] [inst_5 : GradedRing ๐’œ]
  {a : A} (b : โ†ฅ(๐’œ j)),
  ((DirectSum.decompose ๐’œ) (a * โ†‘b)) (i + j) = GradedMonoid.GMul.mul (((DirectSum.decompose ๐’œ) a) i) b

theorem DirectSum.coe_decompose_mul_of_left_mem_zero E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : DecidableEq ฮน] [inst_1 : Semiring A] [inst_2 : SetLike ฯƒ A]
  [inst_3 : AddSubmonoidClass ฯƒ A] (๐’œ : ฮน โ†’ ฯƒ) {j : ฮน} [inst_4 : AddMonoid ฮน] [inst_5 : GradedRing ๐’œ] {a b : A},
  a โˆˆ ๐’œ 0 โ†’ โ†‘(((DirectSum.decompose ๐’œ) (a * b)) j) = a * โ†‘(((DirectSum.decompose ๐’œ) b) j)

theorem DirectSum.coe_decompose_mul_of_right_mem_zero E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : DecidableEq ฮน] [inst_1 : Semiring A] [inst_2 : SetLike ฯƒ A]
  [inst_3 : AddSubmonoidClass ฯƒ A] (๐’œ : ฮน โ†’ ฯƒ) {i : ฮน} [inst_4 : AddMonoid ฮน] [inst_5 : GradedRing ๐’œ] {a b : A},
  b โˆˆ ๐’œ 0 โ†’ โ†‘(((DirectSum.decompose ๐’œ) (a * b)) i) = โ†‘(((DirectSum.decompose ๐’œ) a) i) * b

abbrev GradedAlgebra E1 #

{ฮน : Type u_1} โ†’
  {R : Type u_2} โ†’
    {A : Type u_3} โ†’
      [DecidableEq ฮน] โ†’
        [AddMonoid ฮน] โ†’
          [inst : CommSemiring R] โ†’
            [inst_1 : Semiring A] โ†’ [inst_2 : Algebra R A] โ†’ (ฮน โ†’ Submodule R A) โ†’ Type (max u_1 u_3)

A special case of GradedRing with ฯƒ = Submodule R A. This is useful both because it can avoid typeclass search, and because it provides a more concise name.

abbrev GradedAlgebra.ofAlgHom E1 #

{ฮน : Type u_1} โ†’
  {R : Type u_2} โ†’
    {A : Type u_3} โ†’
      [inst : DecidableEq ฮน] โ†’
        [inst_1 : AddMonoid ฮน] โ†’
          [inst_2 : CommSemiring R] โ†’
            [inst_3 : Semiring A] โ†’
              [inst_4 : Algebra R A] โ†’
                (๐’œ : ฮน โ†’ Submodule R A) โ†’
                  [inst_5 : SetLike.GradedMonoid ๐’œ] โ†’
                    (decompose : A โ†’โ‚[R] DirectSum ฮน fun i โ†ฆ โ†ฅ(๐’œ i)) โ†’
                      (DirectSum.coeAlgHom ๐’œ).comp decompose = AlgHom.id R A โ†’
                        (โˆ€ (i : ฮน) (x : โ†ฅ(๐’œ i)), decompose โ†‘x = (DirectSum.of (fun i โ†ฆ โ†ฅ(๐’œ i)) i) x) โ†’ GradedAlgebra ๐’œ

A helper to construct a GradedAlgebra when the SetLike.GradedMonoid structure is already available. This makes the left_inv condition easier to prove, and phrases the right_inv condition in a way that allows custom @[ext] lemmas to apply.

See note [reducible non-instances].

instance instGradedAlgebraRestrictScalars E0 #

{ฮน : Type u_1} โ†’
  {R : Type u_2} โ†’
    {A : Type u_3} โ†’
      [inst : DecidableEq ฮน] โ†’
        [inst_1 : AddMonoid ฮน] โ†’
          [inst_2 : CommSemiring R] โ†’
            [inst_3 : Semiring A] โ†’
              [inst_4 : Algebra R A] โ†’
                (๐’œ : ฮน โ†’ Submodule R A) โ†’
                  (Rโ‚€ : Type u_5) โ†’
                    [inst_5 : CommSemiring Rโ‚€] โ†’
                      [inst_6 : Algebra Rโ‚€ R] โ†’
                        [inst_7 : Algebra Rโ‚€ A] โ†’
                          [inst_8 : IsScalarTower Rโ‚€ R A] โ†’
                            [i : GradedAlgebra ๐’œ] โ†’ GradedAlgebra fun x โ†ฆ Submodule.restrictScalars Rโ‚€ (๐’œ x)

def DirectSum.decomposeAlgEquiv E1 #

{ฮน : Type u_1} โ†’
  {R : Type u_2} โ†’
    {A : Type u_3} โ†’
      [inst : DecidableEq ฮน] โ†’
        [inst_1 : AddMonoid ฮน] โ†’
          [inst_2 : CommSemiring R] โ†’
            [inst_3 : Semiring A] โ†’
              [inst_4 : Algebra R A] โ†’
                (๐’œ : ฮน โ†’ Submodule R A) โ†’ [inst_5 : GradedAlgebra ๐’œ] โ†’ A โ‰ƒโ‚[R] DirectSum ฮน fun i โ†ฆ โ†ฅ(๐’œ i)

If A is graded by ฮน with degree i component ๐’œ i, then it is isomorphic as an algebra to a direct sum of components.

theorem DirectSum.decomposeAlgEquiv_apply E0 #

โˆ€ {ฮน : Type u_1} {R : Type u_2} {A : Type u_3} [inst : DecidableEq ฮน] [inst_1 : AddMonoid ฮน] [inst_2 : CommSemiring R]
  [inst_3 : Semiring A] [inst_4 : Algebra R A] (๐’œ : ฮน โ†’ Submodule R A) [inst_5 : GradedAlgebra ๐’œ] (a : A),
  (DirectSum.decomposeAlgEquiv ๐’œ) a = (DirectSum.decompose ๐’œ) a

theorem DirectSum.decomposeAlgEquiv_symm_apply E0 #

โˆ€ {ฮน : Type u_1} {R : Type u_2} {A : Type u_3} [inst : DecidableEq ฮน] [inst_1 : AddMonoid ฮน] [inst_2 : CommSemiring R]
  [inst_3 : Semiring A] [inst_4 : Algebra R A] (๐’œ : ฮน โ†’ Submodule R A) [inst_5 : GradedAlgebra ๐’œ]
  (a : DirectSum ฮน fun i โ†ฆ โ†ฅ(๐’œ i)), (DirectSum.decomposeAlgEquiv ๐’œ).symm a = (DirectSum.decompose ๐’œ).symm a

theorem DirectSum.decompose_algebraMap E0 #

โˆ€ {ฮน : Type u_1} {R : Type u_2} {A : Type u_3} [inst : DecidableEq ฮน] [inst_1 : AddMonoid ฮน] [inst_2 : CommSemiring R]
  [inst_3 : Semiring A] [inst_4 : Algebra R A] (๐’œ : ฮน โ†’ Submodule R A) [inst_5 : GradedAlgebra ๐’œ] (r : R),
  (DirectSum.decompose ๐’œ) ((algebraMap R A) r) = (algebraMap R (DirectSum ฮน fun i โ†ฆ โ†ฅ(๐’œ i))) r

theorem DirectSum.decompose_symm_algebraMap E0 #

โˆ€ {ฮน : Type u_1} {R : Type u_2} {A : Type u_3} [inst : DecidableEq ฮน] [inst_1 : AddMonoid ฮน] [inst_2 : CommSemiring R]
  [inst_3 : Semiring A] [inst_4 : Algebra R A] (๐’œ : ฮน โ†’ Submodule R A) [inst_5 : GradedAlgebra ๐’œ] (r : R),
  (DirectSum.decompose ๐’œ).symm ((algebraMap R (DirectSum ฮน fun i โ†ฆ โ†ฅ(๐’œ i))) r) = (algebraMap R A) r

def GradedAlgebra.proj E1 #

{ฮน : Type u_1} โ†’
  {R : Type u_2} โ†’
    {A : Type u_3} โ†’
      [inst : DecidableEq ฮน] โ†’
        [inst_1 : AddMonoid ฮน] โ†’
          [inst_2 : CommSemiring R] โ†’
            [inst_3 : Semiring A] โ†’ [inst_4 : Algebra R A] โ†’ (๐’œ : ฮน โ†’ Submodule R A) โ†’ [GradedAlgebra ๐’œ] โ†’ ฮน โ†’ A โ†’โ‚—[R] A

The projection maps of graded algebra

theorem GradedAlgebra.proj_apply E0 #

โˆ€ {ฮน : Type u_1} {R : Type u_2} {A : Type u_3} [inst : DecidableEq ฮน] [inst_1 : AddMonoid ฮน] [inst_2 : CommSemiring R]
  [inst_3 : Semiring A] [inst_4 : Algebra R A] (๐’œ : ฮน โ†’ Submodule R A) [inst_5 : GradedAlgebra ๐’œ] (i : ฮน) (r : A),
  (GradedAlgebra.proj ๐’œ i) r = โ†‘(((DirectSum.decompose ๐’œ) r) i)

theorem GradedAlgebra.proj_recompose E1 #

โˆ€ {ฮน : Type u_1} {R : Type u_2} {A : Type u_3} [inst : DecidableEq ฮน] [inst_1 : AddMonoid ฮน] [inst_2 : CommSemiring R]
  [inst_3 : Semiring A] [inst_4 : Algebra R A] (๐’œ : ฮน โ†’ Submodule R A) [inst_5 : GradedAlgebra ๐’œ]
  (a : DirectSum ฮน fun i โ†ฆ โ†ฅ(๐’œ i)) (i : ฮน),
  (GradedAlgebra.proj ๐’œ i) ((DirectSum.decompose ๐’œ).symm a) =
    (DirectSum.decompose ๐’œ).symm ((DirectSum.of (fun i โ†ฆ โ†ฅ(๐’œ i)) i) (a i))

theorem GradedAlgebra.mem_support_iff E0 #

โˆ€ {ฮน : Type u_1} {R : Type u_2} {A : Type u_3} [inst : DecidableEq ฮน] [inst_1 : AddMonoid ฮน] [inst_2 : CommSemiring R]
  [inst_3 : Semiring A] [inst_4 : Algebra R A] (๐’œ : ฮน โ†’ Submodule R A) [inst_5 : GradedAlgebra ๐’œ]
  [inst_6 : DecidableEq A] (r : A) (i : ฮน),
  i โˆˆ DFinsupp.support ((DirectSum.decompose ๐’œ) r) โ†” (GradedAlgebra.proj ๐’œ i) r โ‰  0

def GradedRing.projZeroRingHom E1 #

{ฮน : Type u_1} โ†’
  {A : Type u_3} โ†’
    {ฯƒ : Type u_4} โ†’
      [inst : Semiring A] โ†’
        [inst_1 : DecidableEq ฮน] โ†’
          [inst_2 : AddCommMonoid ฮน] โ†’
            [inst_3 : PartialOrder ฮน] โ†’
              [CanonicallyOrderedAdd ฮน] โ†’
                [inst_5 : SetLike ฯƒ A] โ†’ [inst_6 : AddSubmonoidClass ฯƒ A] โ†’ (๐’œ : ฮน โ†’ ฯƒ) โ†’ [GradedRing ๐’œ] โ†’ A โ†’+* A

If A is graded by a canonically ordered additive monoid, then the projection map x โ†ฆ xโ‚€ is a ring homomorphism.

theorem GradedRing.projZeroRingHom_apply E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : Semiring A] [inst_1 : DecidableEq ฮน] [inst_2 : AddCommMonoid ฮน]
  [inst_3 : PartialOrder ฮน] [inst_4 : CanonicallyOrderedAdd ฮน] [inst_5 : SetLike ฯƒ A] [inst_6 : AddSubmonoidClass ฯƒ A]
  (๐’œ : ฮน โ†’ ฯƒ) [inst_7 : GradedRing ๐’œ] (a : A), (GradedRing.projZeroRingHom ๐’œ) a = โ†‘(((DirectSum.decompose ๐’œ) a) 0)

def GradedRing.projZeroRingHom' E1 #

{ฮน : Type u_1} โ†’
  {A : Type u_3} โ†’
    {ฯƒ : Type u_4} โ†’
      [inst : Semiring A] โ†’
        [inst_1 : DecidableEq ฮน] โ†’
          [inst_2 : AddCommMonoid ฮน] โ†’
            [inst_3 : PartialOrder ฮน] โ†’
              [CanonicallyOrderedAdd ฮน] โ†’
                [inst_5 : SetLike ฯƒ A] โ†’
                  [inst_6 : AddSubmonoidClass ฯƒ A] โ†’ (๐’œ : ฮน โ†’ ฯƒ) โ†’ [inst_7 : GradedRing ๐’œ] โ†’ A โ†’+* โ†ฅ(๐’œ 0)

The ring homomorphism from A to ๐’œ 0 sending every a : A to aโ‚€.

theorem GradedRing.coe_projZeroRingHom'_apply E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : Semiring A] [inst_1 : DecidableEq ฮน] [inst_2 : AddCommMonoid ฮน]
  [inst_3 : PartialOrder ฮน] [inst_4 : CanonicallyOrderedAdd ฮน] [inst_5 : SetLike ฯƒ A] [inst_6 : AddSubmonoidClass ฯƒ A]
  (๐’œ : ฮน โ†’ ฯƒ) [inst_7 : GradedRing ๐’œ] (a : A), โ†‘((GradedRing.projZeroRingHom' ๐’œ) a) = (GradedRing.projZeroRingHom ๐’œ) a

theorem GradedRing.projZeroRingHom'_apply_coe E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : Semiring A] [inst_1 : DecidableEq ฮน] [inst_2 : AddCommMonoid ฮน]
  [inst_3 : PartialOrder ฮน] [inst_4 : CanonicallyOrderedAdd ฮน] [inst_5 : SetLike ฯƒ A] [inst_6 : AddSubmonoidClass ฯƒ A]
  (๐’œ : ฮน โ†’ ฯƒ) [inst_7 : GradedRing ๐’œ] (a : โ†ฅ(๐’œ 0)), (GradedRing.projZeroRingHom' ๐’œ) โ†‘a = a

theorem GradedRing.projZeroRingHom'_surjective E1 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : Semiring A] [inst_1 : DecidableEq ฮน] [inst_2 : AddCommMonoid ฮน]
  [inst_3 : PartialOrder ฮน] [inst_4 : CanonicallyOrderedAdd ฮน] [inst_5 : SetLike ฯƒ A] [inst_6 : AddSubmonoidClass ฯƒ A]
  (๐’œ : ฮน โ†’ ฯƒ) [inst_7 : GradedRing ๐’œ], Function.Surjective โ‡‘(GradedRing.projZeroRingHom' ๐’œ)

The ring homomorphism GradedRing.projZeroRingHom' ๐’œ is surjective.

theorem DirectSum.coe_decompose_mul_of_left_mem_of_not_le E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : Semiring A] [inst_1 : DecidableEq ฮน] [inst_2 : AddCommMonoid ฮน]
  [inst_3 : PartialOrder ฮน] [CanonicallyOrderedAdd ฮน] [inst_5 : SetLike ฯƒ A] [inst_6 : AddSubmonoidClass ฯƒ A]
  (๐’œ : ฮน โ†’ ฯƒ) [inst_7 : GradedRing ๐’œ] {a b : A} {n i : ฮน}, a โˆˆ ๐’œ i โ†’ ยฌi โ‰ค n โ†’ โ†‘(((DirectSum.decompose ๐’œ) (a * b)) n) = 0

theorem DirectSum.coe_decompose_mul_of_right_mem_of_not_le E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : Semiring A] [inst_1 : DecidableEq ฮน] [inst_2 : AddCommMonoid ฮน]
  [inst_3 : PartialOrder ฮน] [CanonicallyOrderedAdd ฮน] [inst_5 : SetLike ฯƒ A] [inst_6 : AddSubmonoidClass ฯƒ A]
  (๐’œ : ฮน โ†’ ฯƒ) [inst_7 : GradedRing ๐’œ] {a b : A} {n i : ฮน}, b โˆˆ ๐’œ i โ†’ ยฌi โ‰ค n โ†’ โ†‘(((DirectSum.decompose ๐’œ) (a * b)) n) = 0

theorem DirectSum.coe_decompose_mul_of_left_mem_of_le E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : Semiring A] [inst_1 : DecidableEq ฮน] [inst_2 : AddCommMonoid ฮน]
  [inst_3 : PartialOrder ฮน] [CanonicallyOrderedAdd ฮน] [inst_5 : SetLike ฯƒ A] [inst_6 : AddSubmonoidClass ฯƒ A]
  (๐’œ : ฮน โ†’ ฯƒ) [inst_7 : GradedRing ๐’œ] {a b : A} {n i : ฮน} [inst_8 : Sub ฮน] [OrderedSub ฮน] [AddLeftReflectLE ฮน],
  a โˆˆ ๐’œ i โ†’ i โ‰ค n โ†’ โ†‘(((DirectSum.decompose ๐’œ) (a * b)) n) = a * โ†‘(((DirectSum.decompose ๐’œ) b) (n - i))

theorem DirectSum.coe_decompose_mul_of_right_mem_of_le E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : Semiring A] [inst_1 : DecidableEq ฮน] [inst_2 : AddCommMonoid ฮน]
  [inst_3 : PartialOrder ฮน] [CanonicallyOrderedAdd ฮน] [inst_5 : SetLike ฯƒ A] [inst_6 : AddSubmonoidClass ฯƒ A]
  (๐’œ : ฮน โ†’ ฯƒ) [inst_7 : GradedRing ๐’œ] {a b : A} {n i : ฮน} [inst_8 : Sub ฮน] [OrderedSub ฮน] [AddLeftReflectLE ฮน],
  b โˆˆ ๐’œ i โ†’ i โ‰ค n โ†’ โ†‘(((DirectSum.decompose ๐’œ) (a * b)) n) = โ†‘(((DirectSum.decompose ๐’œ) a) (n - i)) * b

theorem DirectSum.coe_decompose_mul_of_left_mem E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : Semiring A] [inst_1 : DecidableEq ฮน] [inst_2 : AddCommMonoid ฮน]
  [inst_3 : PartialOrder ฮน] [CanonicallyOrderedAdd ฮน] [inst_5 : SetLike ฯƒ A] [inst_6 : AddSubmonoidClass ฯƒ A]
  (๐’œ : ฮน โ†’ ฯƒ) [inst_7 : GradedRing ๐’œ] {a b : A} {i : ฮน} [inst_8 : Sub ฮน] [OrderedSub ฮน] [AddLeftReflectLE ฮน] (n : ฮน)
  [inst_11 : Decidable (i โ‰ค n)],
  a โˆˆ ๐’œ i โ†’ โ†‘(((DirectSum.decompose ๐’œ) (a * b)) n) = if i โ‰ค n then a * โ†‘(((DirectSum.decompose ๐’œ) b) (n - i)) else 0

theorem DirectSum.coe_decompose_mul_of_right_mem E0 #

โˆ€ {ฮน : Type u_1} {A : Type u_3} {ฯƒ : Type u_4} [inst : Semiring A] [inst_1 : DecidableEq ฮน] [inst_2 : AddCommMonoid ฮน]
  [inst_3 : PartialOrder ฮน] [CanonicallyOrderedAdd ฮน] [inst_5 : SetLike ฯƒ A] [inst_6 : AddSubmonoidClass ฯƒ A]
  (๐’œ : ฮน โ†’ ฯƒ) [inst_7 : GradedRing ๐’œ] {a b : A} {i : ฮน} [inst_8 : Sub ฮน] [OrderedSub ฮน] [AddLeftReflectLE ฮน] (n : ฮน)
  [inst_11 : Decidable (i โ‰ค n)],
  b โˆˆ ๐’œ i โ†’ โ†‘(((DirectSum.decompose ๐’œ) (a * b)) n) = if i โ‰ค n then โ†‘(((DirectSum.decompose ๐’œ) a) (n - i)) * b else 0

def DirectSum.IsInternal.coeAlgEquiv E1 #

{R : Type u_5} โ†’
  [inst : CommSemiring R] โ†’
    {A : Type u_6} โ†’
      [inst_1 : Semiring A] โ†’
        [inst_2 : Algebra R A] โ†’
          {ฮน : Type u_7} โ†’
            [inst_3 : DecidableEq ฮน] โ†’
              [inst_4 : AddMonoid ฮน] โ†’
                {M : ฮน โ†’ Submodule R A} โ†’
                  [inst_5 : SetLike.GradedMonoid M] โ†’ DirectSum.IsInternal M โ†’ (DirectSum ฮน fun i โ†ฆ โ†ฅ(M i)) โ‰ƒโ‚[R] A

The canonical isomorphism of an internal direct sum with the ambient algebra

def DirectSum.IsInternal.gradedAlgebra E1 #

{R : Type u_5} โ†’
  [inst : CommSemiring R] โ†’
    {A : Type u_6} โ†’
      [inst_1 : Semiring A] โ†’
        [inst_2 : Algebra R A] โ†’
          {ฮน : Type u_7} โ†’
            [inst_3 : DecidableEq ฮน] โ†’
              [inst_4 : AddMonoid ฮน] โ†’
                {M : ฮน โ†’ Submodule R A} โ†’ [SetLike.GradedMonoid M] โ†’ DirectSum.IsInternal M โ†’ GradedAlgebra M

Given an R-algebra A and a family ฮน โ†’ Submodule R A of submodules parameterized by an additive monoid ฮน and satisfying SetLike.GradedMonoid M (essentially, is multiplicative) such that DirectSum.IsInternal M (A is the direct sum of the M i), we endow A with the structure of a graded algebra. The submodules are the homogeneous parts.