Let \mathfrak{g} be a Lie algebra over a
field k, with a left action on the \mathfrak{g}-module M. The elements of the
Chevalley–Eilenberg complex : \mathrm{Hom}_k(\Lambda^\bullet\mathfrak{g},M) are called cochains from \mathfrak{g} to M. A homogeneous n-cochain from \mathfrak{g} to M is thus an alternating k-multilinear function f\colon\Lambda^n\mathfrak{g}\to M. When \mathfrak{g} is finitely generated as
vector space, the Chevalley–Eilenberg complex is
canonically isomorphic to the
tensor product M \otimes \Lambda^{\bullet}\mathfrak{g}^*, where \mathfrak{g}^*denotes the
dual vector space of \mathfrak{g}. The Lie bracket [\cdot,\cdot]\colon \Lambda^2 \mathfrak{g} \rightarrow \mathfrak{g} on \mathfrak{g} induces a
transpose application d^{(1)}_{\mathfrak{g}} \colon \mathfrak{g}^* \rightarrow \Lambda^2 \mathfrak{g}^* by duality. The latter is sufficient to define a derivation d_{\mathfrak{g}} of the complex of cochains from \mathfrak{g} to k by extending d_{\mathfrak{g}}^{(1)}according to the graded Leibniz rule. It follows from the
Jacobi identity that d_{\mathfrak{g}} satisfies d_{\mathfrak{g}}^2 = 0 and is in fact a differential. In this setting, k is viewed as a trivial \mathfrak{g}-module while k \sim \Lambda^0\mathfrak{g}^* \subseteq \mathrm{Ker}(d_{\mathfrak{g}}) may be thought of as constants. In general, let \gamma \in \mathrm{Hom}(\mathfrak{g}, \operatorname{End} M) denote the left action of \mathfrak{g} on M and regard it as an application d_\gamma^{(0)} \colon M \rightarrow M \otimes \mathfrak{g}^*. The Chevalley–Eilenberg differential d is then the unique derivation extending d_\gamma^{(0)} and d_{\mathfrak{g}}^{(1)} according to the
graded Leibniz rule, the nilpotency condition d^2 = 0 following from the Lie algebra homomorphism from \mathfrak{g} to \operatorname{End} M and the Jacobi identity in \mathfrak{g}. Explicitly, the differential of the n-cochain f is the (n+1)-cochain df given by: :\begin{align} (d f)\left(x_1, \ldots, x_{n+1}\right) = &\sum_i (-1)^{i+1}x_i\, f\left(x_1, \ldots, \hat x_i, \ldots, x_{n+1}\right) + \\ &\sum_{i where the caret signifies omitting that argument. When G is a
real Lie group with Lie algebra \mathfrak{g}, the Chevalley–Eilenberg complex may also be canonically identified with the space of left-invariant forms with values in M, denoted by \Omega^{\bullet}(G,M)^G. The Chevalley–Eilenberg differential may then be thought of as a restriction of the covariant derivative on the trivial
fiber bundle G \times M \rightarrow G, equipped with the equivariant
connection \tilde{\gamma} \in \Omega^1(G, \operatorname{End} M) associated with the left action \gamma \in \mathrm{Hom}(\mathfrak{g}, \operatorname{End} M) of \mathfrak{g} on M. In the particular case where M = k = \mathbb{R} is equipped with the trivial action of \mathfrak{g}, the Chevalley–Eilenberg differential coincides with the restriction of the
de Rham differential on \Omega^{\bullet}(G) to the subspace of left-invariant differential forms. ==Cohomology in small dimensions==