Comodule (source code)

= Comodule
{title2=$(M,\rho)$}
{wiki}

A right comodule over a <coalgebra> $(C,\Delta,\varepsilon)$ over a <commutative ring> $k$ is a $k$-<module> $M$ with a <coaction> $\rho:M\to M\otimes_kC$ satisfying
$$
(\rho\otimes1)\rho=(1\otimes\Delta)\rho,\qquad (1\otimes\varepsilon)\rho=1_M,
$$
using the canonical tensor identifications. In <Sweedler notation>, $\rho(m)=\sum m_{(0)}\otimes m_{(1)}$. The equations are the reversed-arrow counterparts of <associativity> and the unit law for an algebra <module>.<Tensor Categories by Pavel Etingof and others>[Section 1.9, Definition 1.9.2, with tensor factors reversed for right comodules]{ref}

For the <group algebra> coalgebra $kG$ with $\Delta(g)=g\otimes g$, a <direct sum> $M=\bigoplus_{g\in G}M_g$ gives a right comodule by $\rho(m_g)=m_g\otimes g$. Conversely, expanding a <coaction> in the <basis> of <group> elements recovers this <direct sum> decomposition. Thus comodules over this coalgebra encode a decomposition indexed by $G$, whereas <modules> over the same <group algebra> encode a <group representation>. More generally, the definition extends to <comonoids> in a <monoidal category> whenever the relevant tensor action is specified.