# Graded ring

In mathematics, in particular abstract algebra, a graded ring is a ring such that the underlying additive group is a direct sum of abelian groups $R_{i}$ such that ⁠$R_{i}R_{j}\subseteq R_{i+j}$⁠. The index set is usually the set of nonnegative integers or the set of integers, but can be any monoid. The direct sum decomposition is usually referred to as gradation or grading.
A graded module is defined similarly (see below for the precise definition). It generalizes graded vector spaces. A graded module that is also a graded ring is called a graded algebra. A graded ring could also be viewed as a graded ⁠$\mathbb {Z}$⁠-algebra.
The associativity is not important (in fact not used at all) in the definition of a graded ring; hence, the notion applies to non-associative algebras as well; e.g., one can consider a graded Lie algebra.

## First properties

Generally, the index set of a graded ring is assumed to be the set of nonnegative integers, unless otherwise explicitly specified. This is the case in this article.
A graded ring is a ring that is decomposed into a direct sum
    $R=\bigoplus _{n=0}^{\infty }R_{n}=R_{0}\oplus R_{1}\oplus R_{2}\oplus \cdots$
of additive groups, such that
    $R_{m}R_{n}\subseteq R_{m+n}$
for all nonnegative integers $m$ and ⁠$n$⁠.
A nonzero element of $R_{n}$ is said to be homogeneous of degree ⁠$n$⁠. By definition of a direct sum, every nonzero element $a$ of $R$ can be uniquely written as a sum $a=a_{0}+a_{1}+\cdots +a_{n}$ where each $a_{i}$ is either 0 or homogeneous of degree ⁠$i$⁠. The nonzero $a_{i}$ are the homogeneous components of ⁠$a$⁠.
Some basic properties are:
* $R_{0}$ is a subring of ⁠$R$⁠; in particular, the multiplicative identity $1$ is a homogeneous element of degree zero.
* For any $n$, $R_{n}$ is a two-sided ⁠$R_{0}$⁠-module, and the direct sum decomposition is a direct sum of ⁠$R_{0}$⁠-modules.
* $R$ is an associative ⁠$R_{0}$⁠-algebra.
An ideal $I\subseteq R$ is homogeneous, if for every ⁠$a\in I$⁠, the homogeneous components of $a$ also belong to ⁠$I$⁠. (Equivalently, if it is a graded submodule of ⁠$R$⁠; see § Graded module.) The intersection of a homogeneous ideal $I$ with $R_{n}$ is an ⁠$R_{0}$⁠-submodule of $R_{n}$ called the homogeneous part of degree $n$ of ⁠$I$⁠. A homogeneous ideal is the direct sum of its homogeneous parts.
If $I$ is a two-sided homogeneous ideal in ⁠$R$⁠, then $R/I$ is also a graded ring, decomposed as
    $R/I=\bigoplus _{n=0}^{\infty }R_{n}/I_{n},$
where $I_{n}$ is the homogeneous part of degree $n$ of ⁠$I$⁠.

## Basic examples

* Any (non-graded) ring R can be given a gradation by letting ⁠$R_{0}=R$⁠, and $R_{i}=0$ for i ≠ 0. This is called the trivial gradation on R.
* The polynomial ring $R=k[t_{1},\ldots ,t_{n}]$ is graded by degree: it is a direct sum of $R_{i}$ consisting of homogeneous polynomials of degree i.
* Let S be the set of all nonzero homogeneous elements in a graded integral domain R. Then the localization of R with respect to S is a $\mathbb {Z}$-graded ring.
* If I is an ideal in a commutative ring R, then ⨁$_{n=0}$$^∞$I$^n$/I$^{n+1}${\textstyle \bigoplus _{n=0}^{\infty }I^{n}/I^{n+1}} is a graded ring called the associated graded ring of R along I; geometrically, it is the coordinate ring of the normal cone along the subvariety defined by I.
* Let X be a topological space, H$^i$(X; R) the ith cohomology group with coefficients in a ring R. Then H$^*$(X; R), the cohomology ring of X with coefficients in R, is a graded ring whose underlying group is ⨁$_{i=0}$$^∞$H$^i$(X;R){\textstyle \bigoplus _{i=0}^{\infty }H^{i}(X;R)} with the multiplicative structure given by the cup product.

## Graded module

The corresponding idea in module theory is that of a graded module, namely a left module M over a graded ring R such that
    $M=\bigoplus _{i\in \mathbb {N} }M_{i},$
and
    $R_{i}M_{j}\subseteq M_{i+j}$
for every i and j.
Examples:
* A graded vector space is an example of a graded module over a field (with the field having trivial grading).
* A graded ring is a graded module over itself. An ideal in a graded ring is homogeneous if and only if it is a graded submodule. The annihilator of a graded module is a homogeneous ideal.
* Given an ideal I in a commutative ring R and an R-module M, the direct sum $\bigoplus _{n=0}^{\infty }I^{n}M/I^{n+1}M$ is a graded module over the associated graded ring ⨁$_0$$^∞$I$^n$/I$^{n+1}${\textstyle \bigoplus _{0}^{\infty }I^{n}/I^{n+1}}.
A morphism $f:N\to M$ of graded modules, called a graded morphism or graded homomorphism , is a homomorphism of the underlying modules that respects grading; i.e., ⁠$f(N_{i})\subseteq M_{i}$⁠. A graded submodule is a submodule that is a graded module in own right and such that the set-theoretic inclusion is a morphism of graded modules. Explicitly, a graded module N is a graded submodule of M if and only if it is a submodule of M and satisfies ⁠$N_{i}=N\cap M_{i}$⁠. The kernel and the image of a morphism of graded modules are graded submodules.
Remark: To give a graded morphism from a graded ring to another graded ring with the image lying in the center is the same as to give the structure of a graded algebra to the latter ring.
Given a graded module $M$, the $\ell$-twist of $M$ is a graded module defined by $M(\ell )_{n}=M_{n+\ell }$ (cf. Serre's twisting sheaf in algebraic geometry).
Let M and N be graded modules. If $f\colon M\to N$ is a morphism of modules, then f is said to have degree d if $f(M_{n})\subseteq N_{n+d}$. An exterior derivative of differential forms in differential geometry is an example of such a morphism having degree 1.

## Invariants of graded modules

Given a graded module M over a commutative graded ring R, one can associate the formal power series ⁠$P(M,t)\in \mathbb {Z} [\![t]\!]$⁠:
    $P(M,t)=\sum \ell (M_{n})t^{n}$
(assuming $\ell (M_{n})$ are finite.) It is called the Hilbert–Poincaré series of M.
A graded module is said to be finitely generated if the underlying module is finitely generated. The generators may be taken to be homogeneous (by replacing the generators by their homogeneous parts.)
Suppose R is a polynomial ring ⁠$k[x_{0},\dots ,x_{n}]$⁠, k a field, and M a finitely generated graded module over it. Then the function $n\mapsto \dim _{k}M_{n}$ is called the Hilbert function of M. The function coincides with the integer-valued polynomial for large n called the Hilbert polynomial of M.

## Graded algebra

An associative algebra A over a ring R is a graded algebra if it is graded as a ring.
In the usual case where the ring R is not graded (in particular if R is a field), it is given the trivial grading (every element of R is of degree 0). Thus, $R\subseteq A_{0}$ and the graded pieces $A_{i}$ are R-modules.
In the case where the ring R is also a graded ring, then one requires that
    $R_{i}A_{j}\subseteq A_{i+j}$
In other words, we require A to be a graded left module over R.
Examples of graded algebras are common in mathematics:
* Polynomial rings. The homogeneous elements of degree n are exactly the homogeneous polynomials of degree n.
* The tensor algebra $T^{\bullet }V$ of a vector space V. The homogeneous elements of degree n are the tensors of order n, ⁠$T^{n}V$⁠.
* The exterior algebra $\textstyle \bigwedge \nolimits ^{\bullet }V$ and the symmetric algebra $S^{\bullet }V$ are also graded algebras.
* The cohomology ring $H^{\bullet }$ in any cohomology theory is also graded, being the direct sum of the cohomology groups ⁠$H^{n}$⁠.
Graded algebras are much used in commutative algebra and algebraic geometry, homological algebra, and algebraic topology. One example is the close relationship between homogeneous polynomials and projective varieties (cf. Homogeneous coordinate ring.)

## G-graded rings and algebras

The above definitions have been generalized to rings graded using any monoid G as an index set. A G-graded ring R is a ring with a direct sum decomposition
    $R=\bigoplus _{i\in G}R_{i}$
such that
    $R_{i}R_{j}\subseteq R_{i\cdot j}.$
Elements of R that lie inside $R_{i}$ for some $i\in G$ are said to be homogeneous of grade i.
The previously defined notion of "graded ring" now becomes the same thing as an $\mathbb {N}$-graded ring, where $\mathbb {N}$ is the monoid of natural numbers under addition. The definitions for graded modules and algebras can also be extended this way replacing the indexing set $\mathbb {N}$ with any monoid G.
Remarks:
* If we do not require that the ring have an identity element, semigroups may replace monoids.
Examples:
* A group naturally grades the corresponding group ring; similarly, monoid rings are graded by the corresponding monoid.
* An (associative) superalgebra is another term for a $\mathbb {Z} _{2}$-graded algebra. Examples include Clifford algebras. Here the homogeneous elements are either of degree 0 (even) or 1 (odd).

### Anticommutativity

Some graded rings (or algebras) are endowed with an anticommutative structure. This notion requires a homomorphism of the monoid of the gradation into the additive monoid of $\mathbb {Z} /2\mathbb {Z}$, the field with two elements. Specifically, a signed monoid consists of a pair $(\Gamma ,\varepsilon )$ where $\Gamma$ is a monoid and $\varepsilon \colon \Gamma \to \mathbb {Z} /2\mathbb {Z}$ is a homomorphism of additive monoids. An anticommutative $\Gamma$-graded ring is a ring A graded with respect to $\Gamma$ such that:
    $xy=(-1)^{\varepsilon (\deg x)\varepsilon (\deg y)}yx,$
for all homogeneous elements x and y.

### Examples

* An exterior algebra is an example of an anticommutative algebra, graded with respect to the structure $(\mathbb {Z} ,\varepsilon )$ where $\varepsilon \colon \mathbb {Z} \to \mathbb {Z} /2\mathbb {Z}$ is the quotient map.
* A supercommutative algebra (sometimes called a skew-commutative associative ring) is the same thing as an anticommutative $(\mathbb {Z} ,\varepsilon )$-graded algebra, where $\varepsilon$ is the identity map of the additive structure of ⁠$\mathbb {Z} /2\mathbb {Z}$⁠.

## Graded monoid

Intuitively, a graded monoid is the subset of a graded ring, ⨁$_{n∈N0}$R$_n${\textstyle \bigoplus _{n\in \mathbb {N} _{0}}R_{n}}, generated by the $R_{n}$'s, without using the additive part. That is, the set of elements of the graded monoid is $\bigcup _{n\in \mathbb {N} _{0}}R_{n}$.
Formally, a graded monoid is a monoid $(M,\cdot )$, with a gradation function $\phi :M\to \mathbb {N} _{0}$ such that $\phi (m\cdot m')=\phi (m)+\phi (m')$. Note that the gradation of $1_{M}$ is necessarily 0. Some authors request furthermore that $\phi (m)\neq 0$ when m is not the identity.
Assuming the gradations of non-identity elements are non-zero, the number of elements of gradation n is at most $g^{n}$ where g is the cardinality of a generating set G of the monoid. Therefore the number of elements of gradation n or less is at most $n+1$ (for $g=1$) or (g$^{n+1}$−1)/g−1 {\textstyle {\frac {g^{n+1}-1}{g-1}}} else. Indeed, each such element is the product of at most n elements of G, and only (g$^{n+1}$−1)/g−1 {\textstyle {\frac {g^{n+1}-1}{g-1}}} such products exist. Similarly, the identity element can not be written as the product of two non-identity elements. That is, there is no unit divisor in such a graded monoid.

### Power series indexed by a graded monoid

These notions allow us to extend the notion of power series ring. Instead of the indexing family being $\mathbb {N}$, the indexing family could be any graded monoid, assuming that the number of elements of degree n is finite, for each integer n.
More formally, let $(K,+_{K},\times _{K})$ be an arbitrary semiring and $(R,\cdot ,\phi )$ a graded monoid. Then $K\langle \langle R\rangle \rangle$ denotes the semiring of power series with coefficients in K indexed by R. Its elements are functions from R to K. The sum of two elements $s,s'\in K\langle \langle R\rangle \rangle$ is defined pointwise, it is the function sending $m\in R$ to $s(m)+_{K}s'(m)$, and the product is the function sending $m\in R$ to the infinite sum $\sum _{p,q\in R \atop p\cdot q=m}s(p)\times _{K}s'(q)$. This sum is correctly defined (i.e., finite) because, for each m, there are only a finite number of pairs (p, q) such that pq = m.

### Free monoid

In formal language theory, given an alphabet A, the free monoid of words over A can be considered as a graded monoid, where the gradation of a word is its length.