If
X is a topological space and
G is an
R-
module where
R is a ring with unity, then there is a
cochain complex C whose
p-th term C^p is the set of all functions from X^{p+1} to
G with differential d\colon C^{p-1} \to C^{p} given by :df(x_0,\ldots,x_p)= \sum_i(-1)^if(x_0,\ldots,x_{i-1},x_{i+1},\ldots,x_p). The defined cochain complex C^*(X;G) does not rely on the topology of X. In fact, if X is a nonempty space, G\simeq H^*(C^*(X;G)) where G is a graded module whose only nontrivial module is G at degree 0. An element \varphi\in C^p(X) is said to be
locally zero if there is a covering \{U\} of X by open sets such that \varphi vanishes on any (p+1)-
tuple of X which lies in some element of \{U\} (i.e. \varphi vanishes on \bigcup_{U\in\{U\}}U^{p+1}). The subset of C^p(X) consisting of locally zero functions is a submodule, denote by C_0^p(X). C^*_0(X) = \{C_0^p(X),d\} is a cochain subcomplex of C^*(X) so we define a quotient cochain complex \bar{C}^*(X)=C^*(X)/C_0^*(X). The Alexander–Spanier cohomology groups \bar{H}^p(X,G) are defined to be the cohomology groups of \bar{C}^*(X).
Induced homomorphism Given a function f:X\to Y which is not necessarily continuous, there is an induced cochain map :f^\sharp:C^*(Y;G)\to C^*(X;G) defined by (f^\sharp\varphi)(x_0,...,x_p) = (\varphi f)(x_0,...,x_p),\ \varphi\in C^p(Y);\ x_0,...,x_p\in X If f is continuous, there is an induced cochain map :f^\sharp:\bar{C}^*(Y;G)\to\bar{C}^*(X;G)
Relative cohomology module If A is a subspace of X and i:A\hookrightarrow X is an
inclusion map, then there is an induced epimorphism i^\sharp:\bar{C}^*(X;G)\to \bar{C}^*(A;G). The kernel of i^\sharp is a cochain subcomplex of \bar{C}^*(X;G) which is denoted by \bar{C}^*(X,A;G). If C^*(X,A) denote the subcomplex of C^*(X) of functions \varphi that are locally zero on A, then \bar{C}^*(X,A) = C^*(X,A)/C^*_0(X). The
relative module is \bar{H}^*(X,A;G) is defined to be the cohomology module of \bar{C}^*(X,A;G). \bar{H}^q(X,A;G) is called the
Alexander cohomology module of (X,A) of degree q with coefficients G and this module satisfies all cohomology axioms. The resulting cohomology theory is called the
Alexander (or Alexander-Spanier) cohomology theory ==Cohomology theory axioms==