% Complex Analytic and Differential Geometry, Chapter IV
% J.-P. Demailly, Universit\'e de Grenoble I, Saint Martin d'H\`eres, France

\input analgeom.mac

\def\stimes{\mathop{\kern0.7pt
\vrule height 0.4pt depth 0pt width 5pt\kern-5pt
\vrule height 5.4pt depth -5pt width 5pt\kern-5pt
\vrule height 5.4pt depth 0pt width 0.4pt\kern6pt
\vrule height 5.4pt depth 0pt width 0.4pt\kern-6.5pt
\raise0.3pt\hbox{$\times$}\kern-0.7pt}\nolimits}
\def\lraww{\mathrel{\rlap{$\longrightarrow$}\kern-1pt\longrightarrow}}
\def\hookdown{\big\downarrow\kern-25pt
\raise6.3pt\hbox{$\scriptscriptstyle\cap$}}
\def\begarrow{\smash{\kern-0.5pt\vrule height-1.6pt depth2pt width4pt}}

\def\topdim{{\rm topdim}\,}
\def\Tor{{\rm Tor}}
\def\Ext{{\rm Ext}}
\def\pr{{\rm pr}}
\def\bu{\bullet}

\titlea{Chapter IV}{\newline Sheaf Cohomology and Spectral Sequences}

\begpet
One of the main topics of this book is the computation of various
cohomology groups arising in algebraic geometry.  The theory of
sheaves provides a general framework in which many cohomology theories
can be treated in a unified way.  The cohomology theory of sheaves will
be constructed here by means of Godement's simplicial flabby resolution. 
However, we have emphasized the analogy with Alexander-Spanier
cochains in order to give a simple definition of the cup product.  In
this way, all the basic properties of cohomology groups (long exact
sequences, Mayer Vietoris exact sequence, Leray's theorem, relations
with Cech cohomology, De Rham-Weil isomorphism theorem) can be derived
in a very elementary way from the definitions.  Spectral sequences and
hypercohomology groups are then introduced, with two principal examples
in view: the Leray spectral sequence and the Hodge-Fr\"olicher spectral
sequence.  The basic results concerning cohomology groups with constant
or locally constant coefficients (invariance by homotopy, Poincar\'e
duality, Leray-Hirsch theorem) are also included, in order to present a
self-contained approach of algebraic topology. 
\endpet

\titleb{1.}{Basic Results of Homological Algebra}
Let us first recall briefly some standard notations and results of homological
algebra that will be used systematically in the sequel.
Let $R$ be a commutative ring with unit.
A {\it differential module} $(K,d)$ is a $R$-module $K$ together with
an endomorphism $d:K\to K$, called the {\it differential}, such that 
$d\circ d=0$. The modules of {\it cycles} and of {\it boundaries} of $K$ are
defined respectively by
$$Z(K)=\ker d,~~~~B(K)=\Im d.\leqno(1.1)$$
Our hypothesis $d\circ d=0$ implies $B(K)\subset Z(K)$.
The {\it homology group} of $K$ is by definition the quotient module
$$H(K)=Z(K)/B(K).\leqno(1.2)$$
A {\it morphism of differential modules} $\varphi:K\lra L$ is a
$R$-homomorphism $\varphi:K\lra L$ such that $d\circ\varphi=
\varphi\circ d\,;$ here we denote by the same symbol $d$ the differentials
of $K$ and $L$. It is then clear that $\varphi\big(Z(K)\big)\subset Z(L)$
and $\varphi\big(B(K)\big)\subset B(L)$. Therefore, we get
an induced morphism on homology groups, denoted
$$H(\varphi):H(K)\lra H(L).\leqno(1.3)$$
It is easily seen that $H$ is a functor, i.e.\ $H(\psi\circ\varphi)=
H(\psi)\circ H(\varphi)$. We say that two morphisms $\varphi,\psi:K\lra L$
are {\it homotopic} if there exists a $R$-linear map $h:K\lra L$ such that
$$d\circ h+h\circ d=\psi-\varphi.\leqno(1.4)$$
Then $h$ is said to be a {\it homotopy} between $\varphi$
and $\psi$. For every cocycle $z\in Z(K)$, we infer
$\psi(z)-\varphi(z)=dh(z)$, hence the maps
$H(\varphi)$ and $H(\psi)$ coincide. The module $K$
itself is said to be homotopic to $0$ if $\Id_{K}$ is
homotopic to $0\,$; then $H(K)=0$.

\begstat{(1.5) Snake lemma} Let 
$$0\lra K\buildo\varphi\over\lra L\buildo\psi
\over\lra M\lra 0$$
be a short exact sequence of morphisms of differential modules.
Then there exists a homomorphism $\partial:H(M)\lra H(K)$, called the
connecting homomorphism, and a homology exact sequence
$$\eqalign{
&H(K)\buildo H(\varphi)\over
{\relbar\joinrel\relbar\joinrel\longrightarrow}H(L)
\buildo H(\psi)\over
{\relbar\joinrel\relbar\joinrel\longrightarrow}H(M)\cr
&~~~~\raise2pt\hbox{$\nwarrow$}\kern-4pt
\buildo{\displaystyle\partial}\over{\hbox to 105pt{\hrulefill}}
\kern-4pt\raise2pt\hbox{$\swarrow$}\cr}$$
Moreover, to any commutative diagram of short exact sequences
$$\cmalign{
0\lra&K \lra&L \lra&M \lra 0\cr
&\big\downarrow&\big\downarrow&\big\downarrow\cr
0\lra&\wt K \lra&\wt L \lra&\wt M \lra 0\cr}$$
is associated a commutative diagram of homology exact sequences
$$\cmalign{
&H(K)\lra&H(L)\lra&H(M)\buildo
\partial\over\lra&H(K)\lra\cdots\cr
&~~~\big\downarrow&~~~\big\downarrow&~~~\big\downarrow&~~~\big\downarrow\cr
&H(\wt K)\lra&H(\wt L)\lra&H(\wt M)\buildo
\partial\over\lra&H(\wt K)\lra\cdots.\cr}$$
\endstat

\begproof{} We first define the connecting homomorphism $\partial$~:
let $m\in Z(M)$ represent a given cohomology class $\{m\}$
in $H(M)$. Then
$$\partial\{m\}=\{k\}\in H(K)$$
is the class of any element $k\in\varphi^{-1}d\psi^{-1}(m)$, as obtained
through the following construction:
$$\cmalign{
&&l\in L&\buildo{\displaystyle\psi}\over{\mapstex 24 }&~~m\in M\cr
&&~~\buildo{\begarrow}\over{\Big\downarrow}~d~~&&~~~
\buildo{\begarrow}\over{\Big\downarrow}~d\cr
\hfill k\in K~~&\buildo{\displaystyle\varphi}
\over{\mapstex 24 }~~&dl\in L&
\buildo{\displaystyle\psi}\over{\mapstex 24 }&~~0\in M.\cr}$$
The element $l$ is chosen to be a preimage of $m$ by the surjective map
$\psi$~; as $\psi(dl)=d(m)=0$, there exists 
a unique element $k\in K$ such that $\varphi(k)=dl$.
The element $k$ is actually a cocycle in $Z(K)$ because
$\varphi$ is injective and
$$\varphi(dk)=d\varphi(k)=
d(dl)=0~~\Longrightarrow~~dk=0.$$
The map $\partial$ will be well defined if we show that the cohomology
class $\{k\}$ depends only on $\{m\}$ and not on the choices made for
the representatives $m$ and~$l$. Consider another representative
$m'=m+dm_1$. Let $l_1\in L$ such that $\psi(l_1)=m_1$. Then $l$
has to be replaced by an element $l'\in L$ such that
$$\psi(l')=m+dm_1=\psi(l+dl_1).$$
It follows that $l'=l+dl_1+\varphi(k_1)$
for some $k_1\in K$, hence
$$dl'=dl+d\varphi(k_1)=\varphi(k)+\varphi(dk_1)=\varphi(k'),$$
therefore $k'=k+dk_1$ and $k'$ has the same cohomology 
class as $k$.

Now, let us show that $\ker\partial=\Im H(\psi)$.
If $\{m\}$ is in the image of $H(\psi)$, we can take
$m=\psi(l)$ with $dl=0$, thus $\partial\{m\}=0$.
Conversely, if $\partial\{m\}=\{k\}=0$, we have $k=dk_1$ for some
$k_1\in K$, hence $dl=\varphi(k)=d\varphi(k_1)$,
$z:=l-\varphi(k_1)\in Z(L)$ and $m=\psi(l)=\psi(z)$
is in $\Im H(\psi)$. We leave the verification of the
other equalities $\Im H(\varphi)=\ker H(\psi)$,
$\Im\partial=\ker H(\varphi)$ and of the commutation
statement to the reader.\qed
\endproof

In most applications, the differential modules come with a natural
$\bbbz$-grading. A homological complex is a graded differential module
$K_\bu=\bigoplus_{q\in\bbbz}K_q$ together with a differential $d$ of
degree $-1$, i.e.\ $d=\bigoplus d_q$ with $d_q:K_q\lra K_{q-1}$ and
$d_{q-1}\circ d_q=0$. Similarly, a cohomological complex is a
graded differential module $K^\bu=\bigoplus_{q\in\bbbz}K^q$ with
differentials $d^q:K^q\lra K^{q+1}$ such that $d^{q+1}\circ d^q=0$
(superscripts are always used instead of subscripts in that case).
The corresponding (co)cycle, (co)boundary and (co)homology modules
inherit a natural $\bbbz$-grading. In the case of cohomology, say, these
modules will be denoted
$$Z^\bu(K^\bu)=\bigoplus Z^q(K^\bu),~~
B^\bu(K^\bu)=\bigoplus B^q(K^\bu),~~H^\bu(K^\bu)=\bigoplus H^q(K^\bu).$$
Unless otherwise stated, morphisms of complexes are assumed to be of
degree $0$, i.e.\ of the form $\varphi^\bu=\bigoplus\varphi^q$ with
$\varphi^q:K^q\lra L^q$. Any short exact sequence
$$0\lra K^\bu\buildo\varphi^\bu\over\lra L^\bu\buildo\psi^\bu
\over\lra M^\bu\lra 0$$
gives rise to a corresponding {\it long exact sequence} of cohomology groups
$$H^q(K^\bu)\buildo H^q(\varphi^\bu)\over
{\relbar\joinrel\relbar\joinrel\lra}H^q(L^\bu)\buildo H^q(\psi^\bu)\over
{\relbar\joinrel\relbar\joinrel\lra}H^q(M^\bu)
\buildo\partial^q\over\lra H^{q+1}(K^\bu)\buildo H^{q+1}(\varphi^\bu)\over
{\relbar\joinrel\relbar\joinrel\lra\cdots}\leqno(1.6)$$
and there is a similar homology long exact sequence with a connecting
homomorphism $\partial_q$ of degree $-1$. When dealing with commutative
diagrams of such sequences, the following simple lemma is often useful;
the proof consists in a straightforward diagram chasing.

\begstat{(1.7) Five lemma} Consider a commutative diagram of 
$R$-modules
$$\cmalign{
&A_1\hfill\lra&A_2\hfill\lra&A_3\hfill\lra&A_4\hfill\lra&A_5\cr
&\big\downarrow\varphi_1&\big\downarrow\varphi_2&\big\downarrow\varphi_3
&\big\downarrow\varphi_4&\big\downarrow\varphi_5\cr
&B_1\hfill\lra&B_2\hfill\lra&B_3\hfill\lra&B_4\hfill\lra&B_5\cr}$$
where the rows are exact sequences. If $\varphi_2$ and $\varphi_4$
are injective and $\varphi_1$ surjective, then $\varphi_3$ is
injective. If $\varphi_2$ and $\varphi_4$ is surjective and $\varphi_5$
injective, then $\varphi_3$ is surjective. In particular, $\varphi_3$
is an isomorphism as soon as $\varphi_1,\varphi_2,\varphi_4,\varphi_5$
are isomorphisms.
\endstat

\titleb{2.}{The Simplicial Flabby Resolution of a Sheaf}
Let $X$ be a topological space and let $\cA$ be a sheaf of abelian groups
on~$X$ (see \S~II-2 for the definition). All the sheaves appearing in
the sequel are assumed implicitly to be sheaves of {\it abelian groups},
unless otherwise stated. The first useful notion is that of resolution.

\begstat{(2.1) Definition} A $($cohomological$)$ resolution of $\cA$ is a
differential complex of sheaves $(\cL^\bu,d)$ with
$\cL^q=0$, $d^q=0$ for $q<0$, such that there is an exact sequence
$$0\lra\cA\buildo j\over\lra\cL^0\buildo d^0\over\lra\cL^1\lra\cdots
\lra\cL^q\buildo d^q\over\lra\cL^{q+1}\lra\cdots~.$$
If $\varphi:\cA\lra\cB$ is a morphism of sheaves
and $(\cM^\bu,d)$ a resolution of~$\cB$, a morphism of resolutions
$\varphi^\bu:\cL^\bu\lra\cM^\bu$ is a commutative diagram
$$\cmalign{
0\lra&\cA\buildo j\over\lra&\cL^0\hfill\buildo d^0\over\lra&\cL^1\hfill\lra\cdots
\lra&\cL^q\hfill\buildo d^q\over\lra&\cL^{q+1}\hfill\lra&\cdots\cr
&\kern-1.7pt\big\downarrow\varphi&\big\downarrow\varphi^0
&\big\downarrow\varphi^1&\big\downarrow\varphi^q
&\big\downarrow\varphi^{q+1}&\cr
0\lra&\cB\hfill\buildo j\over\lra&\cM^0\buildo d^0\over\lra&\cM^1\lra\cdots
\lra&\cM^q\buildo d^q\over\lra&\cM^{q+1}\hfill\lra&\cdots~.\cr}$$
\endstat

\begstat{(2.2) Example} \rm Let $X$ be a differentiable manifold and $\cE^q$ 
the sheaf of germs of $\ci$ differential forms of degree $q$
with real values. The exterior derivative $d$ defines a
resolution $(\cE^\bu,d)$ of the sheaf $\bbbr$ of locally constant functions
with real values. In fact Poincar\'e's lemma asserts that $d$ is
locally exact in degree $q\ge 1$, and it is clear that the sections of
$\ker d^0$ on connected open sets are constants.\qed
\endstat

In the sequel, we will be interested by special resolutions in which the 
sheaves $\cL^q$ have no local ``rigidity''. For that purpose, we introduce
flabby sheaves, which have become a standard tool in sheaf theory
since the publication of Godement's book (Godement 1957).

\begstat{(2.3) Definition} A sheaf $\cF$ is called flabby if for every open 
subset $U$ of $X$, the restriction map $\cF(X)\lra\cF(U)$
is onto, i.e.\ if every section of $\cF$ on $U$ can be extended to $X$.
\endstat

Let $\pi:\cA\lra X$ be a sheaf on $X$.  We denote by $\cA^{[0]}$
the sheaf of germs of sections $X\lra\cA$ which are {\it not necessarily
continuous}.  In other words, $\cA^{[0]}(U)$ is the set of all maps
$f:U\lra\cA$ such that $f(x)\in\cA_x$ for all $x\in U$, or equivalently
$\cA^{[0]}(U)=\prod_{x\in U}\cA_x$.  It is clear that $\cA^{[0]}$ is
flabby and there is a canonical injection
$$j:\cA\lra\cA^{[0]}$$
defined as follows: to any $s\in\cA_x$ we associate the germ
$\wt s\in\cA^{[0]}_x$ equal to the
continuous section $y\longmapsto\wt s(y)$ near $x$ such that 
$\wt s(x)=s$. In the sequel we merely denote 
$\wt s:y\longmapsto s(y)$ for simplicity. The sheaf
$\cA^{[0]}$ is called the {\it canonical flabby sheaf} associated to
$\cA$. We define inductively 
$$\cA^{[q]}=(\cA^{[q-1]})^{[0]}.$$ 
The stalk $\cA^{[q]}_x$ can be considered as the set of equivalence classes of
maps $f:X^{q+1}\lra\cA$ such that $f(x_0\ld x_q)\in\cA_{x_q}$, with two such
maps identified if they coincide on a set of the form
$$x_0\in V,~~~x_1\in V(x_0),~~\ldots~,~~~x_q\in V(x_0\ld x_{q-1}),
\leqno(2.4)$$
where $V$ is an open neighborhood of $x$ and $V(x_0\ld x_j)$ an open
neighborhood of $x_j$, depending on $x_0\ld x_j$. This is 
easily seen by induction on~$q$, if we identify a map $f:X^{q+1}\to\cA$
to the map $X\to\cA^{[q-1]}$, $x_0\mapsto f_{x_0}$ such that
$f_{x_0}(x_1\ld x_q)=f(x_0,x_1\ld x_q)$. Similarly,
$\cA^{[q]}(U)$ is the set of equivalence classes of functions
$X^{q+1}\ni(x_0\ld x_q)\longmapsto f(x_0\ld x_q)\in\cA_{x_q}$,
with two such functions identified if they coincide on a set of the form
$$x_0\in U,~~~x_1\in V(x_0),~~\ldots~,~~~x_q\in V(x_0\ld x_{q-1}).
\leqno(2.4')$$
Here, we may of course suppose $V(x_0\ld x_{q-1})\subset\ldots\subset
V(x_0,x_1)\subset V(x_0)\subset U$. We define a differential 
$d^q:\cA^{[q]}\lra\cA^{[q+1]}$ by
$$\leqalignno{
&(d^qf)(x_0\ld x_{q+1})=&(2.5)\cr
&\sum_{0\le j\le q}(-1)^jf(x_0\ld\wh{x_j}\ld x_{q+1})
+(-1)^{q+1}f(x_0\ld x_q)(x_{q+1}).\cr}$$
The meaning of the last term is to be understood as follows:
the element $s=f(x_0\ld x_q)$ is a germ in $\cA_{x_q}$, therefore $s$
defines a continuous section $x_{q+1}\mapsto s(x_{q+1})$ of $\cA$ in a
neighborhood $V(x_0\ld x_q)$ of $x_q$. In low degrees, we have the 
formulas
$$\leqalignno{
(js)(x_0)&=s(x_0),~~~s\in\cA_x,\cr
(d^0f)(x_0,x_1)&=f(x_1)-f(x_0)(x_1),~~~f\in\cA^{[0]}_x,&(2.6)\cr
(d^1f)(x_0,x_1,x_2)&=f(x_1,x_2)-f(x_0,x_2)+f(x_0,x_1)(x_2),
~~~f\in\cA^{[1]}_x.\cr}$$

\begstat{(2.7) Theorem {\rm (Godement 1957)}} The complex
$(\cA^{[\bu]},d)$ is a resolution of the sheaf $\cA$, called the 
simplicial flabby resolution of $\cA$.
\endstat

\begproof{} For $s\in\cA_x$, the associated continuous germ obviously
satisfies\break $s(x_0)(x_1)=s(x_1)$
for $x_0\in V$, $x_1\in V(x_0)$ small enough.
The reader will easily infer from this that $d^0\circ j=0$ and
$d^{q+1}\circ d^q=0$. In order to verify that
$(\cA^{[\bu]},d)$ is a resolution of $\cA$, we show that the complex
$$\cdots\lra 0\lra\cA_x\buildo j\over\lra\cA^{[0]}_x\buildo d^0\over\lra
\cdots\lra\cA^{[q]}_x\buildo d^q\over\lra\cA^{[q+1]}_x\lra\cdots$$
is homotopic to zero for every point $x\in X$. Set $\cA^{[-1]}=\cA$,
$d^{-1}=j$ and
$$\cmalign{
&h^0~:~~\cA^{[0]}_x\lra\cA_x,~~~~&h^0(f)=f(x)\in\cA_x,\cr
&h^q~:~~\cA^{[q]}_x\lra\cA^{[q-1]}_x,~~~~&h^q(f)(x_0\ld x_{q-1})=
f(x,x_0\ld x_{q-1}).\cr}$$
A straightforward computation shows that
$(h^{q+1}\circ d^q+d^{q-1}\circ h^q)(f)=f$ for all $q\in\bbbz$ and $f\in
\cA^{[q]}_x$.\qed
\endproof

If $\varphi:\cA\lra\cB$ is a sheaf morphism, it is clear that $\varphi$
induces a morphism of resolutions
$$\varphi^{[\bu]}:\cA^{[\bu]}\lra\cB^{[\bu]}.\leqno(2.8)$$
For every short exact sequence $\cA\to\cB\to\cC$ of sheaves,
we get a corresponding short exact sequence of sheaf complexes
$$\cA^{[\bu]}\lra\cB^{[\bu]}\lra\cC^{[\bu]}.\leqno(2.9)$$

\titleb{3.}{Cohomology Groups with Values in a Sheaf}
\titlec{3.A.}{Definition and Functorial Properties}
If $\pi:\cA\to X$ is a sheaf of abelian groups, the {\it cohomology groups} of
$\cA$ on $X$ are (in a vague sense) algebraic invariants 
which describe the rigidity properties of the global sections of $\cA$. 

\begstat{(3.1) Definition} For every $q\in\bbbz$, the $q$-th cohomology 
group of $X$ with values in $\cA$ is
$$\eqalign{
H^q(X&,\cA)=H^q\big(\cA^{[\bu]}(X)\big)=\cr
&=\ker\big(d^q:\cA^{[q]}(X)\to\cA^{[q+1]}(X)\big)/
  \Im(d^{q-1}:\cA^{[q-1]}(X)\to\cA^{[q]}(X)\big)\cr}$$
with the convention $\cA^{[q]}=0$, $d^q=0$, $H^q(X,\cA)=0$ when $q<0$.
\endstat

For any subset $S\subset X$, we denote by $\cA_{\restriction S}$
the {\it restriction} of $\cA$ to $S$, i.e.\ the sheaf
$\cA_{\restriction S}=\pi^{-1}(S)$ equipped with the projection
$\pi_{\restriction S}$ onto $S$. Then we write $H^q(S,
\cA_{\restriction S})=H^q(S,\cA)$ for simplicity.
When $U$ is open, we see that $(\cA^{[q]})_{\restriction U}$ coincides with
$(\cA_{\restriction U})^{[q]}$, thus we have $H^q(U,\cA)=
H^q\big(\cA^{[\bu]}(U)\big)$.
It is easy to show that every exact sequence of sheaves 
$0\to\cA\to\cL^0\to\cL^1$ induces an exact sequence
$$0\lra\cA(X)\lra\cL^0(X)\lra\cL^1(X).\leqno(3.2)$$
If we apply this to $\cL^q=\cA^{[q]}$, $q=0,1$, we conclude that
$$H^0(X,\cA)=\cA(X).\leqno(3.3)$$

Let $\varphi:\cA\lra\cB$ be a sheaf morphism; (2.8) shows that there is
an induced morphism
$$H^q(\varphi):H^{q}(X,\cA)\lra H^q(X,\cB)\leqno(3.4)$$
on cohomology groups. Let $0\to\cA\to\cB\to\cC\to 0$ be an exact sequence 
of sheaves. Then we have an exact sequence of {\it groups}
$$0\lra\cA^{[0]}(X)\lra\cB^{[0]}(X)\lra\cC^{[0]}(X)\lra0$$
because $\cA^{[0]}(X)=\prod_{x\in X}\cA_x$. Similarly, (2.9) yields
for every $q$ an exact sequence of {\it groups}
$$0\lra\cA^{[q]}(X)\lra\cB^{[q]}(X)\lra\cC^{[q]}(X)\lra0.$$
If we take (3.3) into account, the snake lemma implies:

\begstat{(3.5) Theorem} To any exact sequence of sheaves
$0\to\cA\to\cB\to\cC\to 0$ is associated a long exact sequence of
cohomology groups
$$\cmalign{
~~~0&\lra~~\cA(X)&\lra~~\cB(X)&\lra~~\cC(X)&\lra~~H^1(X,\cA)&\lra\cdots\cr
\cdots&\lra H^q(X,\cA)&\lra H^q(X,\cB)&\lra H^q(X,\cC)&\lra H^{q+1}(X,\cA)
&\lra\cdots.\cr}$$
\endstat

\begstat{(3.6) Corollary} Let $\cB\to\cC$ be a surjective sheaf morphism and
let $\cA$ be its kernel. If $H^1(X,\cA)=0$, then $\cB(X)\lra\cC(X)$
is surjective.\qed
\endstat

\titlec{3.B.}{Exact Sequence Associated to a Closed Subset}
Let $S$ be a closed subset of $X$ and $U=X\ssm S$. For any 
sheaf $\cA$ on $X$, the presheaf
$$\Omega\longmapsto\cA(S\cap\Omega),~~~\Omega\subset X~~\hbox{\rm open}$$
with the obvious restriction maps satisfies axioms (II-$2.4')$ and
(II-$2.4'')$, so it defines a sheaf on $X$ which we denote by $\cA^S$.
This sheaf should not be confused with the restriction sheaf 
$\cA_{\restriction S}$, which is a sheaf on $S$. We easily find
$$(\cA^S)_x=\cA_x~~~\hbox{\rm if}~~x\in S,~~~(\cA^S)_x=0~~~\hbox{\rm if}~~x\in U.
\leqno(3.7)$$
Observe that these relations would completely fail if $S$ were not closed.
The restriction morphism $f\mapsto f_{\restriction S}$ induces a surjective
sheaf morphism $\cA\to\cA^S$. We let $\cA_U$ be its kernel,
so that we have the relations
$$(\cA_U)_x=0~~~\hbox{\rm if}~~x\in S,~~~(\cA_U)_x=\cA_x~~~\hbox{\rm if}~~x\in U.
\leqno(3.8)$$
From the definition, we obtain in particular
$$\cA^S(X)=\cA(S),~~~\cA_U(X)=\{\hbox{\rm sections of}~\cA(X)~
\hbox{\rm vanishing on}~S\}.\leqno(3.9)$$
Theorem 3.5 applied to the exact sequence $0\to\cA_U\to\cA\to\cA^S\to 0$ 
on $X$ gives a long exact sequence
$$\cmalign{
0&\lra~~\cA_U(X)&\lra~~\cA(X)&\lra~~\cA(S)&\lra~~H^1(X,\cA_U)&\cdots\cr
&\lra H^q(X,\cA_U)&\lra H^q(X,\cA)&\lra H^q(X,\cA^S)&\lra H^{q+1}(X,\cA_U)
&\cdots\cr}\leqno(3.9)$$

\titlec{3.C.}{Mayer-Vietoris Exact Sequence}
Let $U_1$, $U_2$ be open subsets of $X$ and $U=U_1\cup U_2$, $V=U_1\cap U_2$.
For any sheaf $\cA$ on $X$ and any $q$ we have an exact sequence
$$0\lra\cA^{[q]}(U)\lra\cA^{[q]}(U_1)\oplus\cA^{[q]}(U_2)\lra
\cA^{[q]}(V)\lra 0$$
where the injection is given by $f\longmapsto(f_{\restriction U_1},
f_{\restriction U_2})$ and the surjection by
$(g_1,g_2)\longmapsto g_{2\restriction V}-g_{1\restriction V}$~; 
the surjectivity of this map follows immediately from the fact that $\cA^{[q]}$
is flabby. An application of the snake lemma yields:

\begstat{(3.11) Theorem} For any sheaf $\cA$ on $X$ and any open sets 
$U_1,U_2\subset X$, set $U=U_1\cup U_2$, $V=U_1\cap U_2$. Then
there is an exact sequence
$$H^q(U,\cA)\lra H^q(U_1,\cA)\oplus H^q(U_2,\cA)\lra H^q(V,\cA)
\lra H^{q+1}(U,\cA)\cdots\eqno\square$$
\endstat

\titleb{4.}{Acyclic Sheaves}
Given a sheaf $\cA$ on $X$, it is usually very important to decide
whether the cohomology groups $H^q(U,\cA)$ vanish for $q\ge 1$, and if
this is the case, for which type of open sets~$U$. Note that one cannot
expect to have $H^0(U,\cA)=0$ in general, since a sheaf always has
local sections.

\begstat{(4.1) Definition} A sheaf $\cA$ is said to be acyclic on an open
subset $U$ if $H^q(U,\cA)=0$ for $q\ge 1$.
\endstat

\titlec{4.A.}{Case of Flabby Sheaves}
We are going to show that flabby sheaves are acyclic. First we need the
following simple result.

\begstat{(4.2) Proposition} Let $\cA$ be a sheaf with the following
property: for every section $f$ of $\cA$ on an open subset $U\subset X$
and every point $x\in X$, there exists a neighborhood $\Omega$ of $x$
and a section $h\in\cA(\Omega)$ such that $h=f$ on $U\cap\Omega$.  Then
$\cA$ is flabby.
\endstat

A consequence of this proposition is that flabbiness is a local property: 
a sheaf $\cA$ is flabby on $X$ if and only if it is flabby
on a neighborhood of every point of $X$.

\begproof{} Let $f\in\cA(U)$ be given. Consider the set of pairs $(v,V)$
where $v$ in $\cB(V)$ is an extension of $f$ on an open subset $V\supset U$.
This set is inductively ordered, so there exists a maximal extension
$(v,V)$ by Zorn's lemma. The assumption shows that $V$ must be
equal to $X$.\qed
\endproof

\begstat{(4.3) Proposition} Let $0\lra\cA\buildo j\over\lra\cB\buildo p
\over\lra\cC\lra 0$ be an exact sequence of sheaves. If $\cA$ is flabby, the
sequence of groups
$$0\lra\cA(U)\buildo j\over\lra\cB(U)\buildo p\over\lra\cC(U)\lra 0$$
is exact for every open set $U$. If $\cA$ and $\cB$ are flabby, then
$\cC$ is flabby.
\endstat

\begproof{} Let $g\in\cC(U)$ be given. Consider the set $E$ of pairs $(v,V)$
where $V$ is an open subset of $U$ and $v\in\cB(V)$ is such that $p(v)=g$
on $V$. It is clear that $E$ is inductively ordered, so
$E$ has a maximal element $(v,V)$, and we will prove
that $V=U$. Otherwise, let $x\in U\ssm V$ and let $h$ be a section
of $\cB$ in a neighborhood of $x$ such that $p(h_x)=g_x$. Then
$p(h)=g$ on a neighborhood $\Omega$ of $x$, thus $p(v-h)=0$ on 
$V\cap\Omega$ and $v-h=j(u)$ with $u\in\cA(V\cap\Omega)$. If $\cA$ is
flabby, $u$ has an extension $\wt u\in\cA(X)$ and we can define 
a section $w\in\cB(V\cup\Omega)$ such that $p(w)=g$ by
$$w=v~~\hbox{\rm on}~~V,~~~~w=h+j(\wt u)~~\hbox{\rm on}~~\Omega,$$
contradicting the maximality of $(v,V)$.
Therefore $V=U$, $v\in\cB(U)$ and $p(v)=g$ on $U$. The first statement is
proved. If $\cB$ is also flabby, $v$ has an extension $\wt v\in\cB(X)$ and
$\wt g=p(\wt v)\in\cC(X)$ is an extension of $g$. Hence $\cC$ is 
flabby.\qed
\endproof

\begstat{(4.4) Theorem} A flabby sheaf $\cA$ is acyclic on all open sets
$U\subset X$.
\endstat

\begproof{} Let $\cZ^q=\ker\big(d^q:\cA^{[q]}\to\cA^{[q+1]}\big)$. Then 
$\cZ^0=\cA$ and we have an exact sequence of sheaves
$$0\lra\cZ^q\lra\cA^{[q]}\buildo d^q\over\lra\cZ^{q+1}\lra 0$$
because $\Im d^q=\ker d^{q+1}=\cZ^{q+1}$. Proposition 4.3 implies by
induction on $q$ that all sheaves $\cZ^q$ are flabby, and yields exact
sequences
$$0\lra\cZ^q(U)\lra\cA^{[q]}(U)\buildo d^q\over\lra\cZ^{q+1}(U)\lra 0.$$
For $q\ge 1$, we find therefore
$$\eqalign{
\ker\big(d^q:\cA^{[q]}(U)\to\cA^{[q+1]}(U)\big)&=\cZ^q(U)\cr
&=\Im\big(d^{q-1}:\cA^{[q-1]}(U)\to\cA^{[q]}(U)\big),\cr}$$
that is, $H^q(U,\cA)=H^q\big(\cA^{[\bu]}(U)\big)=0$.\qed
\endproof

\titlec{4.B.}{Soft Sheaves over Paracompact Spaces}
We now discuss another general situation which produces acyclic sheaves.
Recall that a topological space $X$ is said to be {\it paracompact} 
if $X$ is Hausdorff and if every open covering of $X$ has a
locally finite refinement. For instance, it is well known that every metric
space is paracompact. A paracompact space $X$ is always {\it normal}\/;
in particular, for any locally finite open covering $(U_\alpha)$ of $X$ there 
exists an open covering $(V_\alpha)$ such that $\ovl V_\alpha\subset 
U_\alpha$. We will also need another closely related concept.

\begstat{(4.5) Definition} We say that a subspace $S$ is strongly 
paracompact in $X$ if $S$ is Hausdorff and if the following property is
satisfied: for every covering $(U_\alpha)$ of $S$ by open sets in $X$, 
there exists another such covering $(V_\beta)$ and a neighborhood $W$ of $S$
such that each set $W\cap\ovl V_\beta$ is contained in some $U_\alpha$, 
and such that every point of $S$ has a neighborhood intersecting only 
finitely many sets $V_\beta$.
\endstat

It is clear that a strongly paracompact subspace $S$ is itself paracompact.
Conversely, the following result is easy to check:

\begstat{(4.6) Lemma} A subspace $S$ is strongly paracompact in $X$ as soon as 
one of the following situations occurs:
\medskip
\item{\rm a)} $X$ is paracompact and $S$ is closed;
\smallskip
\item{\rm b)} $S$ has a fundamental family of paracompact neighborhoods 
in $X\,$;
\smallskip
\item{\rm c)} $S$ is paracompact and has a neighborhood homeomorphic
to some product $S\times T$, in which $S$ is embedded as a slice 
$S\times\{t_0\}$.\qed
\endstat

\begstat{(4.7) Theorem} Let $\cA$ be a sheaf on $X$ and $S$ a strongly
paracompact subspace of $X$. Then every section $f$ of $\cA$ on $S$ 
can be extended to a section of $\cA$ on some open neighborhood 
$\Omega$ of $\cA$.
\endstat

\begproof{} Let $f\in\cA(S)$. For every point $z\in S$ there exists
an open neighborhood $U_z$ and a section $\smash{\wt f}_z\in\cA(U_z)$ such that 
$\smash{\wt f}_z(z)=f(z)$. After shrinking $U_z$,
we may assume that $\smash{\wt f}_z$ and $f$ coincide on $S\cap U_z$.
Let $(V_\alpha)$ be an open covering of $S$ that is locally finite near $S$ 
and $W$ a neighborhood of $S$ such that 
$W\cap\ovl V_\alpha\subset U_{z(\alpha)}$ (Def.\ 4.5). We let
$$\Omega=\big\{x\in W\cap\bigcup V_\alpha\,;\,
\smash{\wt f}_{z(\alpha)}(x)=\smash{\wt f}_{z(\beta)}(x),~\forall
\alpha,\beta~\hbox{\rm with~}x\in\ovl V_\alpha\cap\ovl V_\beta\big\}.$$
Then $(\Omega\cap V_\alpha)$ is an open covering of $\Omega$ and all
pairs of sections $\smash{\wt f}_{z(\alpha)}$ coincide in pairwise
intersections.  Thus there exists a section $F$ of $\cA$ on $\Omega$
which is equal to $\smash{\wt f}_{z(\alpha)}$ on $\Omega\cap V_\alpha$. 
It remains only to show that $\Omega$ is a neighborhood of $S$.  Let
$z_0\in S$.  There exists a neighborhood $U'$ of $z_0$ which meets only
finitely many sets $V_{\alpha_1}\ld V_{\alpha_p}$.  After shrinking
$U'$, we may keep only those $V_{\alpha_l}$ such that $z_0\in\ovl
V_{\alpha_l}$.  The sections $\smash{\wt f}_{z(\alpha_l)}$ coincide at
$z_0$, so they coincide on some neighborhood $U''$ of this point. 
Hence $W\cap U''\subset\Omega$, so $\Omega$ is a neighborhood of
$S$.\qed
\endproof

\begstat{(4.8) Corollary} If $X$ is paracompact, every section $f\in\cA(S)$ 
defined on a closed set $S$ extends to a neighborhood $\Omega$ of
$S$.\qed
\endstat

\begstat{(4.9) Definition} A sheaf $\cA$ on $X$ is said to be soft if 
every section $f$ of $\cA$ on a closed set $S$ can be extended to $X$,
i.e.\ if the restriction map $\cA(X)\lra\cA(S)$ is onto for
every closed set $S$.
\endstat

\begstat{(4.10) Example} \rm On a paracompact space, every flabby sheaf 
$\cA$ is soft: this is a consequence of Cor.\ 4.8.
\endstat

\begstat{(4.11) Example} \rm On a paracompact space, the Tietze-Urysohn extension 
theorem shows that the sheaf $\cC_X$ of germs of continuous functions on $X$
is a soft sheaf of rings. However, observe that $\cC_X$ is not flabby 
as soon as $X$ is not discrete.
\endstat

\begstat{(4.12) Example} \rm If $X$ is a paracompact differentiable manifold, the 
sheaf $\cE_X$ of germs of $\ci$ functions on $X$ is a soft sheaf of 
rings.\qed
\endstat

Until the end of this section, we assume that $X$ is a {\it paracompact 
topo\-lo\-gical space}. We first show that softness is a local property.

\begstat{(4.13) Proposition} A sheaf $\cA$ is soft on $X$ if and only if
it is soft in a neighborhood of every point $x\in X$.
\endstat

\begproof{} If $\cA$ is soft on $X$, it is soft on any closed neighborhood
of a given point. Conversely, let $(U_\alpha)_{\alpha\in I}$ be a locally 
finite open covering of $X$ which refine some covering by neighborhoods 
on which $\cA$ is soft. Let $(V_\alpha)$ be a finer covering such that 
$\ovl V_\alpha\subset U_\alpha$, and $f\in\cA(S)$ be a section of $\cA$ 
on a closed subset $S$ of $X$. We consider the set $E$ of pairs $(g,J)$, 
where $J\subset I$ and where $g$ is a section over 
$F_J:=S\cup\bigcup_{\alpha\in J}\ovl V_\alpha$, such that $g=f$ on $S$.
As the family $(\ovl V_\alpha)$ is locally finite, a section of $\cA$
over $F_J$ is continuous as soon it is continuous on $S$ and on each 
$\ovl V_\alpha$. Then $(f,\emptyset)\in E$ and $E$ is 
inductively ordered by the relation
$$(g',J')\lra(g'',J'')~~~\hbox{\rm if}~~J'\subset J''~~\hbox{\rm and}~~
g'=g''~~\hbox{\rm on}~~F_{J'}$$
No element $(g,J)$, $J\ne I$, can be maximal: the assumption shows
that $\smash{g_{\restriction F_J\cap\ovl V_\alpha}}$ has an extension to 
$\ovl V_\alpha$, thus such a $g$ has an extension to $F_{J\cup\{\alpha\}}$
for any $\alpha\notin J$. Hence $E$ has a maximal element $(g,I)$ 
defined on $F_I=X$.\qed
\endproof

\begstat{(4.14) Proposition} Let $0\to\cA\to\cB\to\cC\to 0$ be an exact 
sequence of sheaves. If $\cA$ is soft, the map $\cB(S)\to\cC(S)$ is onto 
for any closed subset $S$ of $X$. If $\cA$ and $\cB$ are soft, 
then $\cC$ is soft.
\endstat

By the above inductive method, this result can be proved in a way
similar to its analogue for flabby sheaves. We therefore obtain:

\begstat{(4.15) Theorem} On a paracompact space, a soft sheaf is acyclic
on all closed subsets.\qed
\endstat

\begstat{(4.16) Definition} The {\it support} of a section 
$f\in\cA(X)$ is defined by 
$$\Supp\,f=\big\{x\in X\,;\,f(x)\ne 0\big\}.$$
\endstat

$\Supp\,f$ is always a closed set: as $\cA\to X$ is a local 
homeomorphism, the equality $f(x)=0$ implies $f=0$ in a neighborhood of $x$.

\begstat{(4.17) Theorem} Let $(U_\alpha)_{\alpha\in I}$ be an open covering of
$X$.  If $\cA$ is soft and $f\in\cA(X)$, there exists a partition of $f$
subordinate to $(U_\alpha)$, i.e.\ a family of sections
$f_\alpha\in\cA(X)$ such that $(\Supp\,f_\alpha)$ is locally finite,
$\Supp\,f_\alpha\subset U_\alpha$ and $\sum f_\alpha=f$ on $X$.
\endstat

\begproof{} Assume first that $(U_\alpha)$ is locally finite.
There exists an open covering $(V_\alpha)$ such that
$\ovl V_\alpha\subset U_\alpha$. Let $(f_\alpha)_{\alpha\in J}$, 
$J\subset I$, be a maximal family of sections $f_\alpha\in\cA(X)$ such 
that $\Supp\,f_\alpha\subset U_\alpha$ and $\sum_{\alpha\in J}f_\alpha=f$
on $S=\bigcup_{\alpha\in J}\ovl V_\alpha$. If $J\ne I$ and $\beta\in
I\ssm J$, there exists a section $f_\beta\in\cA(X)$ such that
$$f_\beta=0~~~\hbox{\rm on}~~X\ssm U_\beta~~~\hbox{\rm and}~~~
f_\beta=f-\sum_{\alpha\in J}f_\alpha~~~\hbox{\rm on}~~S\cup\ovl V_\beta$$
because $(X\ssm U_\beta)\cup S\cup\ovl V_\beta$ is closed and
$f-\sum f_\alpha=0$ on $(X\ssm U_\alpha)\cap S$. This is a contradiction
unless $J=I$.

In general, let $(V_j)$ be a locally finite refinement
of $(U_\alpha)$, such that $V_j\subset U_{\rho(j)}$, and let
$(f'_j)$ be a partition of $f$ subordinate to $(V_j)$. Then
$f_\alpha=\sum_{j\in\rho^{-1}(\alpha)}f'_j$ is
the required partition of $f$.\qed
\endproof

Finally, we discuss a special situation which occurs very often in 
practice. Let $\cR$ be a sheaf of commutative rings on $X$~; the rings
$\cR_x$ are supposed to have a unit element. Assume that $\cA$ is
a sheaf of modules over $\cR$. It is clear that $\cA^{[0]}$
is a $\cR^{[0]}$-module, and thus also a $\cR$-module. Therefore
all sheaves $\cA^{[q]}$ are $\cR$-modules and the cohomology groups
$H^q(U,\cA)$ have a natural structure of $\cR(U)$-module.

\begstat{(4.18) Lemma} If $\cR$ is soft, every sheaf $\cA$ of $\cR$-modules
is soft.
\endstat

\begproof{} Every section $f\in\cA(S)$ defined on a closed set $S$
has an extension to some open neighborhood $\Omega$. Let $\psi\in\cR(X)$
be such that $\psi=1$ on $S$ and $\psi=0$ on $X\ssm\Omega$.
Then $\psi f$, defined as $0$ on $X\ssm\Omega$, is an extension of 
$f$ to~$X$.\qed
\endproof

\begstat{(4.19) Corollary} Let $\cA$ be a sheaf of $\cE_X$-modules
on a paracompact differentiable manifold $X$. Then
$H^q(X,\cA)=0$ for all $q\ge 1$.
\endstat

\titleb{5.}{\v Cech Cohomology}
\titlec{5.A.}{Definitions}
In many important circumstances, cohomology groups with values 
in a sheaf $\cA$ can be computed by means of the complex of \v Cech cochains,
which is directly related to the spaces of sections of $\cA$ on sufficiently 
fine coverings of $X$. This more concrete approach was historically the first
one used to define sheaf cohomology (Leray 1950, Cartan 1950); 
however \v Cech cohomology does not always coincide with the ``good" 
cohomology on non paracompact spaces. Let $\cU=(U_\alpha)_{\alpha\in I}$ be
an open covering of $X$. For the sake of simplicity, we denote
$$U_{\alpha_0\alpha_1\ldots\alpha_q}=U_{\alpha_0}\cap U_{\alpha_1}\cap
\ldots\cap U_{\alpha_q}.$$
The group $C^q(\cU,\cA)$ of {\it \v Cech $q$-cochains} is the set
of families 
$$c=(c_{\alpha_0\alpha_1\ldots\alpha_q})\in\prod_{(\alpha_0,\ldots,\alpha_q)
\in I^{q+1}}\cA(U_{\alpha_0\alpha_1\ldots\alpha_q}).$$
The group structure on $C^q(\cU,\cA)$ is the obvious one deduced from the
addition law on sections of $\cA$. The {\it \v Cech differential}
$\delta^q:C^q(\cU,\cA)\lra C^{q+1}(\cU,\cA)$ is defined by the formula
$$(\delta^qc)_{\alpha_0\ldots\alpha_{q+1}}=
\sum_{0\le j\le q+1}(-1)^j\,c_{\alpha_0\ldots\wh{\alpha_j}\ldots\alpha_{q+1}\;
\restriction U_{\alpha_0\ldots\alpha_{q+1}}},\leqno(5.1)$$
and we set $C^q(\cU,\cA)=0$, $\delta^q=0$ for $q<0$. In degrees $0$ and 
$1$, we get for example
$$\leqalignno{
&q=0,~~~c=(c_\alpha),~~~\hfill(\delta^0c)_{\alpha\beta}
=c_\beta-c_{\alpha\;\restriction U_{\alpha\beta}},&(5.2)\cr
&q=1,~~~c=(c_{\alpha\beta}),~~~(\delta^1c)_{\alpha\beta\gamma}
=c_{\beta\gamma}-c_{\alpha\gamma}+c_{\alpha\beta\;
\restriction U_{\alpha\beta\gamma}}.&(5.2')\cr}$$
Easy verifications left to the reader show that $\delta^{q+1}\circ\delta^q=0$.
We get therefore a cochain complex $\big(C^\bu(\cU,\cA),\delta\big)$, called 
the {\it complex of \v Cech cochains} relative to the covering $\cU$.

\begstat{(5.3) Definition} The \v Cech cohomology group of $\cA$ relative
to $\cU$ is
$$\check H^q(\cU,\cA)=H^q\big(C^\bu(\cU,\cA)\big).$$
\endstat

Formula (5.2) shows that the set of \v Cech $0$-cocycles is the set of
families $(c_\alpha)\in\prod\cA(U_\alpha)$ such that $c_\beta=c_\alpha$
on $U_\alpha\cap U_\beta$. Such a family defines in a unique way a global
section $f\in\cA(X)$ with $f_{\restriction U_\alpha}=c_\alpha$. Hence
$$\check H^0(\cU,\cA)=\cA(X).\leqno(5.4)$$
Now, let $\cV=(V_\beta)_{\beta\in J}$ be another open covering of $X$
that is finer than $\cU$~; this means that there exists a map $\rho:J\to I$
such that $V_\beta\subset U_{\rho(\beta)}$ for every $\beta\in J$. Then
we can define a morphism $\rho^\bu:C^\bu(\cU,\cA)\lra C^\bu(\cV,\cA)$ by
$$(\rho^q c)_{\beta_0\ldots\beta_q}=c_{\rho(\beta_0)\ldots\rho(\beta_q)\;
\restriction V_{\beta_0\ldots\beta_q}}~;\leqno(5.5)$$
the commutation property $\delta\rho^\bu=\rho^\bu\delta$ is immediate.
If $\rho':J\to I$ is another refinement map such that $V_\beta\subset
U_{\rho'(\beta)}$ for all $\beta$, the morphisms $\rho^\bu$, 
$\rho^{\prime\bu}$ are homotopic. To see this, we define a map 
$h^q:C^q(\cU,\cA)\lra C^{q-1}(\cV,\cA)$ by
$$(h^q c)_{\beta_0\ldots\beta_{q-1}}=\sum_{0\le j\le q-1}(-1)^j
c_{\rho(\beta_0)\ldots\rho(\beta_j)\rho'(\beta_j)\ldots\rho'(\beta_{q-1})\;
\restriction V_{\beta_0\ldots\beta_{q-1}}}.$$
The homotopy identity $\delta^{q-1}\circ h^q+h^{q+1}\circ\delta^q=
\rho^{\prime q}-\rho^q$ is easy to verify. Hence
$\rho^\bu$ and $\rho^{\prime\bu}$ induce a map depending only on 
$\cU$, $\cV$~:
$$H^q(\rho^\bu)=H^q(\rho^{\prime\bu})~:~~\check H^q(\cU,\cA)\lra
\check H^q(\cV,\cA).\leqno(5.6)$$

Now, we want to define a {\it direct limit} $\check H^q(X,\cA)$
of the groups $\check H^q(\cU,\cA)$ by means of the refinement mappings 
$(5.6)$. In order to avoid set theoretic difficulties, the coverings
used in this definition will be considered as subsets of the power set
$\cP(X)$, so that the collection of all coverings becomes actually a set.

\begstat{(5.7) Definition} The \v Cech cohomology group
$\check H^q(X,\cA)$ is the direct limit
$$\check H^q(X,\cA)=\lim_{\displaystyle\,\lra\atop\scriptstyle\cU}
~~\check H^q(\cU,\cA)$$
when $\cU$ runs over the collection of all open coverings of $X$.
Explicitly, this means that the elements of $\check H^q(X,\cA)$ are the
equivalence classes in the disjoint union of the groups $\check 
H^q(\cU,\cA)$, with an element in $\check H^q(\cU,\cA)$ and another in 
$\check H^q(\cV,\cA)$ identified if their images in $\check H^q(\cW,\cA)$
coincide for some refinement $\cW$ of the coverings $\cU$ and $\cV$.
\endstat

If $\varphi:\cA\to\cB$ is a sheaf morphism, we have an obvious induced 
morphism $\varphi^\bu:C^\bu(\cU,\cA)\lra C^\bu(\cU,\cB)$, and therefore
we find a morphism
$$H^q(\varphi^\bu):\check H^q(\cU,\cA)\lra\check H^q(\cU,\cB).$$
Let $0\to\cA\to\cB\to\cC\to 0$ be an exact sequence of sheaves. We have an
exact sequence of groups
$$0\lra C^q(\cU,\cA)\lra C^q(\cU,\cB)\lra C^q(\cU,\cC),\leqno(5.8)$$
but in general the last map is not surjective, because every section in
$\cC(U_{\alpha_0\ld\alpha_q})$ need not have a lifting in 
$\cB(U_{\alpha_0\ld\alpha_q})$. The image of $C^\bu(\cU,\cB)$ in
$C^\bu(\cU,\cC)$ will be denoted $C^\bu_\cB(\cU,\cC)$ and called the
complex of {\it liftable cochains} of $\cC$ in $\cB$. By construction, 
the sequence
$$0\lra C^q(\cU,\cA)\lra C^q(\cU,\cB)\lra C^q_\cB(\cU,\cC)\lra 0\leqno(5.9)$$
is exact, thus we get a corresponding long exact sequence of cohomology
$$\check H^q(\cU,\cA)\lra\check H^q(\cU,\cB)\lra\check H^q_\cB(\cU,\cC)
\lra\check H^{q+1}(\cU,\cA)\lra\cdots.\leqno(5.10)$$
If $\cA$ is flabby, Prop.\ 4.3 shows that we have
$C^q_\cB(\cU,\cC)=C^q(\cU,\cC)$, hence $\check H^q_\cB(\cU,\cC)=
\check H^q(\cU,\cC)$.

\begstat{(5.11) Proposition} Let $\cA$ be a sheaf on $X$.
Assume that either
\medskip
\item{\rm a)} $\cA$ is flabby, or~$:$
\medskip
\item{\rm b)} $X$ is paracompact and $\cA$ is a sheaf of modules over a 
soft sheaf of rings $\cR$ on $X$.
\medskip
\noindent Then $\check H^q(\cU,\cA)=0$ for every $q\ge 1$ and every open 
covering $\cU=(U_\alpha)_{\alpha\in I}$ of~$X$.
\endstat

\begproof{} b) Let $(\psi_\alpha)_{\alpha\in I}$ be a partition of unity in $\cR$
subordinate to $\cU$ (Prop.\ 4.17). We define a map 
$h^q:C^q(\cU,\cA)\lra C^{q-1}(\cU,\cA)$ by
$$(h^qc)_{\alpha_0\ldots\alpha_{q-1}}=\sum_{\nu\in I}\psi_\nu\,
c_{\nu\alpha_0\ldots\alpha_{q-1}}\leqno(5.12)$$
where $\psi_\nu\,c_{\nu\alpha_0\ldots\alpha_{q-1}}$ is extended by $0$ on
$U_{\alpha_0\ldots\alpha_{q-1}}\cap\complement U_\nu$. It is clear that
$$(\delta^{q-1}h^qc)_{\alpha_0\ldots\alpha_q}=\sum_{\nu\in I}
\psi_\nu\big(c_{\alpha_0\ldots\alpha_q}-(\delta^qc)_{\nu\alpha_0\ldots\alpha_q}
\big),$$
i.e.\ $\delta^{q-1}h^q+h^{q+1}\delta^q=\Id$. Hence $\delta^q c=0$ implies
$\delta^{q-1}h^qc=c$ if $q\ge1$.
\medskip
\noindent{a)} First we show that the result is true for the sheaf $\cA^{[0]}$.
One can find a family
of sets $L_\nu\subset U_\nu$ such that $(L_\nu)$ is a 
partition of $X$. If $\psi_\nu$ is the characteristic func\-tion of $L_\nu$, 
Formula (5.12) makes sense for any cochain $c\in C^q(\cU,\cA^{[0]})$ 
because $\cA^{[0]}$ is a module over the ring $\bbbz^{[0]}$ of germs of
arbitrary functions $X\to\bbbz$. Hence $\check H^q(\cU,\cA^{[0]})=0$
for $q\ge 1$. We shall prove this property for all flabby sheaves by 
induction on $q$. Consider the exact sequence
$$0\lra\cA\lra\cA^{[0]}\lra\cC\lra 0$$
where $\cC=\cA^{[0]}/\cA$. By the remark after (5.10), we have exact
sequences
$$\eqalign{
&\cA^{[0]}(X)\lra\cC(X)\lra\check H^1(\cU,\cA)\lra\check H^1(\cU,\cA^{[0]})=0,\cr
&\check H^q(\cU,\cC)\lra\check H^{q+1}(\cU,\cA)\lra\check H^{q+1}(\cU,\cA^{[0]})
=0.\cr}$$
Then $\cA^{[0]}(X)\lra\cC(X)$ is surjective by Prop.\ 4.3, thus
$\check H^1(\cU,\cA)=0$. By 4.3 again, $\cC$ is flabby; the induction
hypothesis $\check H^q(\cU,\cC)=0$ implies that
$\check H^{q+1}(\cU,\cA)=0$.\qed
\endproof

\titlec{5.B.}{Leray's Theorem for Acyclic Coverings}
We first show the existence of a natural morphism from \v Cech cohomology to
ordinary cohomology. Let $\cU=(U_\alpha)_{\alpha\in I}$ be a covering of
$X$. Select a map $\lambda:X\to I$ such that $x\in U_{\lambda(x)}$ for
every $x\in X$. To every cochain $c\in C^q(\cU,\cA)$ we associate the
section $\lambda^qc=f\in\cA^{[q]}(X)$ such that
$$f(x_0\ld x_q)=c_{\lambda(x_0)\ldots\lambda(x_q)}(x_q)\in\cA_{x_q}~;
\leqno(5.13)$$
note that the right hand side is well defined as soon as
$$x_0\in X,~~~x_1\in U_{\lambda(x_0)},~~\ldots~,~~~x_q\in 
U_{\lambda(x_0)\ldots\lambda(x_{q-1})}.$$
A comparison of (2.5) and (5.13) immediately shows that the section of
$\cA^{[q+1]}(X)$ associated to $\delta^qc$ is
$$\sum_{0\le j\le q+1}(-1)^j\,c_{\lambda(x_0)\ldots\wh{\lambda(x_j)}\ldots
\lambda(x_{q+1})}(x_{q+1})=(d^qf)(x_0\ld x_{q+1}).$$
In this way we get a morphism of complexes
$\lambda^\bu:C^\bu(\cU,\cA)\lra\cA^{[\bu]}(X)$. There is a corresponding
morphism
$$H^q(\lambda^\bu):\check H^q(\cU,\cA)\lra H^q(X,\cA).\leqno(5.14)$$
If $\cV=(V_\beta)_{\beta\in J}$ is a refinement of $\cU$ such that
$V_\beta\subset U_{\rho(\beta)}$ and $x\in V_{\mu(x)}$ for all
$x,\beta$, we get a commutative diagram
$$\eqalign{
\check H^q(&\cU,\cA)\buildo H^q(\rho^\bu)\over
{\relbar\joinrel\relbar\joinrel\relbar\joinrel\lra}\check H^q(\cV,\cA)\cr
{\scriptstyle H^q(\lambda^\bu)}
&\searrow\qquad\qquad\qquad\swarrow{\scriptstyle H^q(\mu^\bu)}\cr
&\qquad H^q(X,\cA)\cr}$$
with $\lambda=\rho\circ\mu$.  In particular, (5.6) shows that the map
$H^q(\lambda^\bu)$ in (5.14) does not depend on the choice of
$\lambda$~: if $\lambda'$ is another choice, then $H^q(\lambda^\bu)$ and
$H^q(\lambda^{\prime\bu})$ can be both factorized through the group 
$\check H^q(\cV,\cA)$ with $V_x=U_{\lambda(x)}\cap U_{\lambda'(x)}$
and $\mu=\Id_X$.
By the universal property of direct limits, we get an induced morphism
$$\check H^q(X,\cA)\lra H^q(X,\cA).\leqno(5.15)$$
Let $0\to\cA\to\cB\to\cC\to 0$ be an exact sequence of sheaves. There is a
commutative diagram
$$\cmalign{
0&\lra C^\bu(\cU,\cA)&\lra C^\bu(\cU,\cB)&\lra C^\bu_\cB(\cU,\cC)&\lra 0\cr
&\qquad\quad~\big\downarrow&\qquad\quad~\big\downarrow
&\qquad\quad~\big\downarrow&\cr
0&\lra\cA^{[\bu]}(X)&\lra\cB^{[\bu]}(X)&\lra\cC^{[\bu]}(X)&\lra 0\cr}$$
where the vertical arrows are given by the morphisms $\lambda^\bu$. We
obtain therefore a commutative diagram
$$\cmalign{
&\kern-10pt\check H^q(\cU,\cA)&\lra\check H^q(\cU,\cB)&\lra\check
H^q_\cB(\cU,\cC)&\lra\check H^{q+1}(\cU,\cA)&\lra\check H^{q+1}(\cU,\cB)\cr
&\quad\big\downarrow&\qquad\quad~~\big\downarrow&\qquad\quad~~
\big\downarrow&\qquad\quad~~~\big\downarrow&\qquad\quad~~~\big\downarrow\cr
&\kern-10pt H^q(X,\cA)&\lra H^q(X,\cB)&\lra H^q(X,\cC)&\lra
H^{q+1}(X,\cA)&\lra H^{q+1}(X,\cB).\cr}\leqno(5.16)$$

\begstat{(5.17) Theorem {\rm(Leray)}} Assume that
$$H^s(U_{\alpha_0\ldots\alpha_t},\cA)=0$$
for all indices $\alpha_0\ld\alpha_t$ and $s\ge 1$. Then {\rm(5.14)}
gives an isomorphism $\check H^q(\cU,\cA)\simeq H^q(X,\cA)$.
\endstat

We say that the covering $\cU$ is {\it acyclic} (with respect to $\cA$) if
the hypo\-thesis of Th.~5.17 is satisfied. Leray's theorem asserts
that the cohomology groups of $\cA$ on $X$ can be computed by means of an
arbitrary acyclic covering (if such a covering exists), without using the
direct limit procedure.

\begproof{} By induction on $q$, the result being obvious for $q=0$. 
Consider the exact sequence $0\to\cA\to\cB\to\cC\to 0$ with
$\cB=\cA^{[0]}$ and $\cC=\cA^{[0]}/\cA$.  As $\cB$ is acyclic, the
hypothesis on $\cA$ and the long exact sequence of cohomology imply
$H^s(U_{\alpha_0\ldots\alpha_t},\cC)=0$ for $s\ge 1$, $t\ge 0$. 
Moreover $C^\bu_\cB(\cU,\cC)=C^\bu(\cU,\cC)$ thanks to Cor.\ 3.6.
The induction hypothesis in degree $q$ and diagram (5.16) give
$$\cmalign{
&\check H^q(\cU,\cB)&\lra\check H^q(\cU,\cC)&\lra\check H^{q+1}(\cU,\cA)&\lra 0\cr
&\quad~~\big\downarrow\simeq&\qquad\quad~~\big\downarrow\simeq
&\qquad\quad~~~\big\downarrow&\cr
&H^q(X,\cB)&\lra H^q(X,\cC)&\lra H^{q+1}(X,\cA)&\lra 0,\cr}$$
hence $\check H^{q+1}(\cU,\cA)\lra H^{q+1}(X,\cA)$ is also an
isomorphism.\qed
\endproof

\begstat{(5.18) Remark} \rm The morphism $H^1(\lambda^\bu):\check H^1(\cU,\cA)\lra
H^1(X,\cA)$ is always injective. Indeed, we have a commutative diagram 
$$\cmalign{
&\check H^0(\cU,\cB)&\lra\check H^0_\cB(\cU,\cC)&\lra\check H^1(\cU,\cA)
&\lra 0\cr
&\quad~~\big\downarrow =&\qquad\quad~~\hookdown
&\qquad\quad~~\big\downarrow&\cr
&H^0(X,\cB)&\lra H^0(X,\cC)&\lra H^1(X,\cA)&\lra 0,\cr}$$
where $\check H^0_\cB(\cU,\cC)$ is the subspace of $\cC(X)=H^0(X,\cC)$
consisting of sections which can be lifted in $\cB$ over each $U_\alpha$.
As a consequence, the refinement mappings
$$H^1(\rho^\bu):\check H^1(\cU,\cA)\lra\check H^1(\cV,\cA)$$
are also injective.\qed
\endstat

\titlec{5.C.}{\v Cech Cohomology on Paracompact Spaces}
We will prove here that \v Cech cohomology theory coincides with 
the ordinary one on paracompact spaces.

\begstat{(5.19) Proposition} Assume that $X$ is paracompact. If
$$0\lra\cA\lra\cB\lra\cC\lra 0$$
is an exact sequence of sheaves, there is an exact sequence
$$\check H^q(X,\cA)\lra \check H^q(X,\cB)\lra \check H^q(X,\cC)\lra \check
H^{q+1}(X,\cA)\lra\cdots$$
which is the direct limit of the exact sequences {\rm(5.10)} over all
coverings~$\cU$.
\endstat

\begproof{} We have to show that the natural map
$$\lim_{\displaystyle\lra}~~\check H^q_\cB(\cU,\cC)\lra
\lim_{\displaystyle\lra}~~\check H^q(\cU,\cC)$$
is an isomorphism. This follows easily from the following lemma,
which says essentially that every cochain in $\cC$ becomes liftable
in $\cB$ after a refinement of the covering.
\endproof

\begstat{(5.20) Lifting lemma} Let $\cU=(U_\alpha)_{\alpha\in I}$
be an open covering of $X$ and $c\in C^q(\cU,\cC)$.  If $X$ is paracompact,
there exists a finer covering $\cV=(V_\beta)_{\beta\in J}$ and a
refinement map $\rho:J\to I$ such that $\rho^q c\in
C^q_\cB(\cV,\cC)$.
\endstat

\begproof{} Since $\cU$ admits a locally finite refinement, we may assume that
$\cU$ itself is locally finite. There exists an open covering 
$\cW=(W_\alpha)_{\alpha\in I}$ of $X$ such that $\ovl W_\alpha\subset U_\alpha$.
For every point $x\in X$, we can select an open neighborhood $V_x$
of $x$ with the following properties:
\medskip
\noindent{a)} if $x\in W_\alpha$, then $V_x\subset W_\alpha$~;
\medskip
\noindent{b)} if $x\in U_\alpha$ or if $V_x\cap W_\alpha\ne\emptyset$, 
then $V_x\subset U_\alpha$~;
\medskip
\noindent{c)}$\,$ if $x\in U_{\alpha_0\ldots\alpha_q}$, then 
$c_{\alpha_0\ldots\alpha_q}\in C^q(U_{\alpha_0\ldots\alpha_q},\cC)$
admits a lifting in $\cB(V_x)$.
\medskip
\noindent Indeed, a) (resp. c)) can be achieved because $x$ belongs to only 
finitely many sets $W_\alpha$ (resp. $U_\alpha$), and so only finitely many sections
of $\cC$ have to be lifted in $\cB$. b) can be achieved because $x$ 
has a neighborhood $V'_x$ that meets only finitely many sets $U_\alpha$~; 
then we take
$$V_x\subset V'_x\cap\bigcap_{U_\alpha\ni x}U_\alpha\cap
\bigcap_{U_\alpha\not\ni x}(V'_x\ssm\ovl W_\alpha).$$
Choose $\rho:X\to I$ such that $x\in W_{\rho(x)}$ for every $x$. Then 
a) implies $V_x\subset W_{\rho(x)}$, so $\cV=(V_x)_{x\in X}$ is finer than 
$\cU$, and $\rho$ defines a refinement map. 
If $V_{x_0\ldots x_q}\ne\emptyset$, we have
$$V_{x_0}\cap W_{\rho(x_j)}\supset V_{x_0}\cap V_{x_j}\ne\emptyset~~~
\hbox{\rm for}~~0\le j\le q,$$
thus $V_{x_0}\subset U_{\rho(x_0)\ldots\rho(x_q)}$ by b).
Now, c) implies that the section $c_{\rho(x_0)\ldots\rho(x_q)}$ admits a
lifting in $\cB(V_{x_0})$, and in particular in $\cB(V_{x_0\ldots x_q})$.
Therefore $\rho^qc$ is liftable in $\cB$.\qed
\endproof

\begstat{(5.21) Theorem} If $X$ is a paracompact space, the canonical morphism
\hbox{$\check H^q(X,\cA)\simeq H^q(X,\cA)$} is an isomorphism.
\endstat

\begproof{} Argue by induction on $q$ as in Leray's theorem, with the \v Cech
coho\-mology exact sequence over $\cU$ replaced by its direct limit
in~(5.16).\qed
\endproof

In the next chapters, we will be concerned only by paracompact spaces,
and most often in fact by manifolds that are either compact or countable
at infinity. In these cases, we will not distinguish $H^q(X,\cA)$ and 
$\check H^q(X,\cA)$.

\titlec{5.D.}{Alternate \v Cech Cochains}
For explicit calculations, it is sometimes useful to consider
a slightly modified \v Cech complex which has the advantage of producing
much smaller cochain groups. If $\cA$ is a
sheaf and $\cU=(U_\alpha)_{\alpha\in I}$ an open covering of $X$,
we let $AC^q(\cU,\cA)\subset C^q(\cU,\cA)$
be the subgroup of {\it alternate \v Cech cochains}, consisting
of \v Cech cochains $c=(c_{\alpha_0\ldots\alpha_q})$ such that
$$\left\{\eqalign{
c_{\alpha_0\ldots\alpha_q}&=0\phantom{(\sigma)\,c_{\alpha_0\ldots\alpha_q},}
~~~\hbox{\rm if}~~\alpha_i=\alpha_j,~~i\ne j,\cr
c_{\alpha_{\sigma(0)}\ldots\alpha_{\sigma(q)}}&=\varepsilon(\sigma)
\,c_{\alpha_0\ldots\alpha_q}\cr}\right.\leqno(5.22)$$
for any permutation $\sigma$ of $\{1\ld q\}$ of signature
$\varepsilon(\sigma)$.
Then the \v Cech differential (5.1) of an alternate cochain is still
alternate, so $AC^\bu(\cU,\cA)$ is a subcomplex of $C^\bu(\cU,\cA)$.
We are going to show that the inclusion induces an isomorphism in
cohomology:
$$H^q\big(AC^\bu(\cU,\cA)\big)\simeq H^q\big(C^\bu(\cU,\cA)\big)=
\check H^q(\cU,\cA).\leqno(5.23)$$
Select a total ordering on the index set $I$. For each such ordering,
we can define a projection $\pi^q:C^q(\cU,\cA)\lra AC^q(\cU,\cA)\subset
C^q(\cU,\cA)$ by
$$c\longmapsto \hbox{\rm alternate}~\wt c~~\hbox{\rm such that}~
\wt c_{\alpha_0\ldots\alpha_q}=c_{\alpha_0\ldots\alpha_q}~~\hbox{\rm whenever}~~
\alpha_0<\ldots<\alpha_q.$$
As $\pi^\bu$ is a morphism of complexes, it is enough to verify that $\pi^\bu$ 
is homotopic to the identity on $C^\bu(\cU,\cA)$. For a given multi-index
$\alpha=(\alpha_0\ld\alpha_q)$, which may contain repeated indices, there is 
a unique permutation $\big(m(0)\ld m(q)\big)$ of $(0\ld q)$ such that 
$$\alpha_{m(0)}\le\ldots\le\alpha_{m(q)}~~~~\hbox{\rm and}~~m(l)<m(l+1)~~
\hbox{\rm whenever}~~\alpha_{m(l)}=\alpha_{m(l+1)}.$$
For $p\le q$, we let $\varepsilon(\alpha,p)$ be the sign of the permutation
$$(0\ld q)\longmapsto\big(m(0)\ld m(p-1),0,1\ld\wh{m(0)}\ld\wh{m(p-1)}\ld q\big)$$
if the elements $\alpha_{m(0)}\ld\alpha_{m(p)}$ are all distinct, and
$\varepsilon(\alpha,p)=0$ otherwise. Finally, we set $h^q=0$ for $q\le 0$ and 
$$(h^qc)_{\alpha_0\ldots\alpha_{q-1}}=
\sum_{0\le p\le q-1}(-1)^p\varepsilon(\alpha,p)\,c_{\alpha_{m(0)}\ldots
\alpha_{m(p)}\alpha_0\alpha_1\ldots\wh{\alpha_{m(0)}}\ldots\wh{\alpha_{m(p-1)}}
\ldots\alpha_{q-1}}$$
for $q\ge 1$~; observe that the index $\alpha_{m(p)}$ is repeated twice in 
the right hand side. A rather tedious calculation left to the reader shows that
$$(\delta^{q-1}h^qc+h^{q+1}\delta^qc)_{\alpha_0\ldots\alpha_q}=
c_{\alpha_0\ldots\alpha_q}
-\varepsilon(\alpha,q)\,c_{\alpha_{m(0)}\ldots\alpha_{m(q)}}
=(c-\pi^qc)_{\alpha_0\ldots\alpha_q}.$$
An interesting consequence of the isomorphism (5.23) is the following:

\begstat{(5.24) Proposition} Let $\cA$ be a sheaf on a paracompact space
$X$.  If $X$ has arbitrarily fine open coverings or at least one
acyclic open covering $\cU=(U_\alpha)$ such that more than $n+1$
distinct sets $U_{\alpha_0}\ld U_{\alpha_n}$ have empty intersection, then
$H^q(X,\cA)=0$ for $q>n$.
\endstat

\begproof{} In fact, we have $AC^q(\cU,\cA)=0$ for $q>n$.\qed
\endproof

\titleb{6.}{The De Rham-Weil Isomorphism Theorem}
In \S~3 we defined cohomology groups by means of the simplicial flabby
resolution. We show here that any resolution by acyclic sheaves could
have been used instead.
Let $(\cL^{\bu},d)$ be a resolution of a sheaf $\cA$. We assume in
addition that all $\cL^q$ are acyclic on $X$, i.e.\
$H^s(X,\cL^q)=0$ for all $q\ge 0$ and $s\ge 1$.
Set $\cZ^q=\ker d^q$. Then $\cZ^0=\cA$ and for every $q\ge 1$ we get a
short exact sequence
$$0\lra\cZ^{q-1}\lra\cL^{q-1}\buildo d^{q-1}\over\lra\cZ^q\lra 0.$$
Theorem 3.5 yields an exact sequence
$$(6.1)~H^s(X,\cL^{q-1})\!{\buildo d^{q-1}\over\lra}H^s(X,\cZ^q)\!{\buildo
\partial^{s,q}\over\lra}H^{s+1}(X,\cZ^{q-1}){\to}H^{s+1}(X,\cL^{q-1}){=}0.$$
If $s\ge 1$, the first group is also zero and we get an isomorphism
$$\partial^{s,q}:H^s(X,\cZ^q)\buildo\simeq\over\lra H^{s+1}(X,\cZ^{q-1}).$$
For $s=0$ we have $H^0(X,\cL^{q-1})=\cL^{q-1}(X)$ and
$H^0(X,\cZ^q)=\cZ^q(X)$ is the $q$-cocycle group of
$\cL^\bu(X)$, so the connecting map $\partial^{0,q}$ gives an isomorphism
$$H^q\big(\cL^\bu(X)\big)=\cZ^q(X)/d^{q-1}\cL^{q-1}(x)
\buildo\wt\partial^{0,q}\over\lra H^1(X,\cZ^{q-1}).$$
The composite map $\partial^{q-1,1}\circ\cdots\circ\partial^{1,q-1}\circ
\wt\partial^{0,q}$ therefore defines an isomorphism
$$\leqalignno{\quad\qquad&H^q\big(\cL^\bu(X)\big)\!\buildo\wt\partial^{0,q}
\over\lra\! H^1(X,\cZ^{q-1})\!\buildo\partial^{1,q-1}\over\lra\!\cdots\!
\buildo\partial^{q-1,1}\over\lra\! H^q(X,\cZ^0){=}H^q(X,\cA).&(6.2)\cr}$$
This isomorphism behaves functorially with respect to morphisms of 
reso\-lutions.  Our assertion means that for every sheaf morphism
$\varphi:\cA\to\cB$  and every morphism of resolutions
$\varphi^\bu:\cL^\bu\lra\cM^\bu$, there is a commutative diagram
$$\cmalign{
&H^s\big(&\cL^\bu(X)\big)\hfill\lra H^s(&X,\cA)\cr
&&\big\downarrow H^s(\varphi^\bu)\hfill&\big\downarrow H^s(\varphi)\hfill\cr
&H^s\big(&\cM^\bu(X)\big)\lra H^s(&X,\cB).\cr}\leqno(6.3)$$
If $\cW^q=\ker\big(d^q:\cM^q\to\cM^{q+1}\big)$, the functoriality comes
from the fact that we have commutative diagrams
$$\cmalign{
0\to&\cZ^{q-1}\hfill\to&\cL^{q-1}\hfill\to&\cZ^q\to 0~,~~~~
H^s(&X,\cZ^q)\hfill\buildo\partial^{s,q}\over\lra H^{s+1}(&X,\cZ^{q-1})\cr
&\big\downarrow\varphi^{q-1}\hfill&~\big\downarrow\varphi^{q-1}\hfill
&\big\downarrow\varphi^q\hfill&\big\downarrow H^s(\varphi^q)\hfill
&\big\downarrow H^{s+1}(\varphi^{q-1})\hfill\cr
0\to&\cW^{q-1}\to&\cM^{q-1}\to&\cW^q\to 0~,~~~~
H^s(&X,\cW^q)\buildo\partial^{s,q}\over\lra H^{s+1}(&X,\cW^{q-1}).\cr}$$

\begstat{(6.4) De Rham-Weil isomorphism theorem} If $(\cL^\bu,d)$ is
a resolution of $\cA$ by sheaves $\cL^q$ which are acyclic on $X$, there
is a functorial isomorphism 
$$H^q\big(\cL^\bu(X)\big)\lra H^q(X,\cA).\eqno\square$$
\endstat

\begstat{(6.5) Example: De Rham cohomology} \rm
Let $X$ be a $n$-dimensional paracompact differential
manifold. Consider the resolution
$$0\to\bbbr\to\cE^0\buildo d\over\to\cE^1\to\cdots\to\cE^q\buildo d\over\to
\cE^{q+1}\to\cdots\to\cE^n\to 0$$
given by the exterior derivative $d$ acting on germs of $\ci$
differential $q$-forms (c.f. Example 2.2). The {\it De Rham cohomology
groups} of $X$ are precisely
$$H^q_{\DR}(X,\bbbr)=H^q\big(\cE^\bu(X)\big).\leqno(6.6)$$
All sheaves $\cE^q$ are $\cE_X$-modules, so $\cE^q$ is acyclic by 
Cor.\ 4.19. Therefore, we get an isomorphism
$$H^q_{\DR}(X,\bbbr)\buildo\simeq\over\lra H^q(X,\bbbr)\leqno(6.7)$$
from the De Rham cohomology onto the cohomology with values in the 
constant sheaf $\bbbr$.  Instead of using $\ci$ differential forms, 
one can consider the resolution of $\bbbr$ given by the exterior derivative
$d$ acting on currents:
$$0\to\bbbr\to\cD'_n\buildo d\over\to\cD'_{n-1}\to\cdots\to\cD'_{n-q}
\buildo d\over\to\cD'_{n-q-1}\to\cdots\to\cD'_0\to 0.$$
The sheaves $\cD'_q$ are also $\cE_X$-modules, hence acyclic. Thanks 
to (6.3), the inclusion $\cE^q\subset\cD_{n-q}'$ induces an isomorphism
$$H^q\big(\cE^\bu(X)\big)\simeq H^q\big(\cD'_{n-\bu}(X)\big),\leqno(6.8)$$
both groups being isomorphic to $H^q(X,\bbbr)$. 
The isomorphism between cohomology of
differential forms and singular cohomology (another topological invariant) was 
first established by (De Rham 1931). The above proof follows essentially the 
method given by (Weil 1952), in a more abstract setting. As we will
see, the isomorphism $(6.7)$ can be put under a very explicit form in
terms of \v Cech cohomology. We need a simple lemma.
\endstat

\begstat{(6.9) Lemma} Let $X$ be a paracompact differentiable manifold.
There are arbitrarily fine open coverings $\cU=(U_\alpha)$ such that
all intersections $U_{\alpha_0\ldots\alpha_q}$ are diffeomorphic to
convex sets.
\endstat

\begproof{} Select locally finite coverings
$\Omega'_j\subset\!\subset\Omega_j$ of $X$ by open sets diffeomorphic to
concentric euclidean balls in $\bbbr^n$.  Let us denote by
$\tau_{jk}$ the transition diffeomorphism from the coordinates in
$\Omega_k$ to those in $\Omega_j$.  For any point $a\in\Omega'_j$, the
function $x\mapsto|x-a|^2$ computed in terms of the coordinates of
$\Omega_j$ becomes $|\tau_{jk}(x)-\tau_{jk}(a)|^2$ on
any patch $\Omega_k\ni a$.  It is clear that these functions are
strictly convex at $a$, thus there is a euclidean ball
$B(a,\varepsilon)\subset\Omega'_j$ such that all functions are
strictly convex on $B(a,\varepsilon)\cap\Omega'_k \subset\Omega_k$ (only
a finite number of indices $k$ is involved).  Now, choose $\cU$ to be a
(locally finite) covering of $X$ by such balls 
$U_\alpha=B(a_\alpha,\varepsilon_\alpha)$ with
$U_\alpha\subset\Omega'_{\rho(\alpha)}$.  Then the
intersection $U_{\alpha_0\ldots\alpha_q}$ is defined in
$\Omega_k$, $k=\rho(\alpha_0)$, by the equations
$$|\tau_{jk}(x)-\tau_{jk}(a_{\alpha_m})|^2<\varepsilon_{\alpha_m}^2$$
where $j=\rho(\alpha_m)$, $0\le m\le q$. Hence the intersection
is convex in the open coordinate chart $\Omega_{\rho(\alpha_0)}$.\qed
\endproof

Let $\Omega$ be an open subset of $\bbbr^n$ which is starshaped with 
respect to the origin. Then the De Rham
complex $\bbbr\lra\cE^\bu(\Omega)$ is acyclic: indeed, Poincar\'e's lemma
yields a homotopy operator $k^q:\cE^q(\Omega)\lra\cE^{q-1}(\Omega)$ such that
$$\eqalign{
&k^qf_x(\xi_1\ld\xi_{q-1})=\int_0^1t^{q-1}\,f_{tx}(x,\xi_1\ld\xi_{q-1})\,dt,
~~~x\in\Omega,~~\xi_j\in\bbbr^n,\cr
&k^0f=f(0)\in\bbbr~~~\hbox{\rm for}~~f\in\cE^0(\Omega).\cr}$$
Hence $H^q_{\DR}(\Omega,\bbbr)=0$ for $q\ge 1$. Now, consider the resolution
$\cE^\bu$ of the constant sheaf $\bbbr$ on $X$, and apply the proof of the 
De Rham-Weil isomorphism theorem to \v Cech cohomology groups over a
covering $\cU$ chosen as in Lemma 6.9. Since the intersections 
$U_{\alpha_0\ldots\alpha_s}$ are convex, all \v Cech cochains in 
$C^s(\cU,\cZ^q)$ are liftable in $\cE^{q-1}$ by means of $k^q$.
Hence for all $s=1\ld q$ we have isomorphisms
$\partial^{s,q-s}:\check H^s(\cU,\cZ^{q-s})\lra\check H^{s+1}(\cU,\cZ^{q-s-1})$
for $s\ge 1$ and we get a resulting isomorphism 
$$\partial^{q-1,1}\circ\cdots\circ\partial^{1,q-1}\circ
\wt\partial^{0,q}:H^q_{\DR}(X,\bbbr)\buildo\simeq\over\lra\check H^q(\cU,\bbbr)$$
We are going to compute the connecting homomorphisms $\partial^{s,q-s}$
and their inverses explicitly. 

Let $c$ in $C^s(\cU,\cZ^{q-s})$ such that
$\delta^sc=0$. As $c_{\alpha_0\ldots\alpha_s}$ is $d$-closed, we can write 
$c=d(k^{q-s}c)$ where the cochain $k^{q-s}c\in C^s(\cU,\cE^{q-s-1})$
is defined as the family of sections
$k^{q-s}c_{\alpha_0\ldots\alpha_s}\in\cE^{q-s-1}(U_{\alpha_0\ldots\alpha_s})$.
Then $d(\delta^sk^{q-s}c)=\delta^s(dk^{q-s}c)=\delta^sc=0$ and
$$\partial^{s,q-s}\{c\}=\{\delta^sk^{q-s}c\}\in\check 
H^{s+1}(\cU,\cZ^{q-s-1}).$$
The isomorphism
$H^q_{\DR}(X,\bbbr)\buildo\simeq\over\lra\check H^q(\cU,\bbbr)$ is thus defined as
follows: to the cohomology class $\{f\}$ of a closed $q$-form 
$f\in\cE^q(X)$, we associate the cocycle $(c^0_\alpha)=
(f_{\restriction U_\alpha})\in C^0(\cU,\cZ^q)$, then the cocycle
$$c^1_{\alpha\beta}=k^qc^0_\beta-k^qc^0_\alpha\in C^1(\cU,\cZ^{q-1}),$$
and by induction cocycles
$(c^s_{\alpha_0\ldots\alpha_s})\in C^s(\cU,\cZ^{q-s})$ given by
$$c^{s+1}_{\alpha_0\ldots\alpha_{s+1}}=\sum_{0\le j\le s+1}(-1)^j\,
k^{q-s}c^s_{\alpha_0\ldots\wh{\alpha_j}\ldots\alpha_{s+1}}~~~~
\hbox{\rm on}~~U_{\alpha_0\ldots\alpha_{s+1}}.\leqno(6.10)$$
The image of $\{f\}$ in $\check H^q(\cU,\bbbr)$ is the class of the $q$-cocycle
$(c^q_{\alpha_0\ldots\alpha_q})$ in $C^q(\cU,\bbbr)$.

Conversely, let $(\psi_\alpha)$ be a $\ci$ partition of unity subordinate to
$\cU$. Any \v Cech cocycle $c\in C^{s+1}(\cU,\cZ^{q-s-1})$ can be written
$c=\delta^s\gamma$ with $\gamma\in C^s(\cU,\cE^{q-s-1})$ given by
$$\gamma_{\alpha_0\ldots\alpha_s}=\sum_{\nu\in I}\psi_\nu\,
c_{\nu\alpha_0\ldots\alpha_s},$$
(c.f. Prop.\ 5.11~b)), thus $\{c'\}=(\partial^{s,q-s})^{-1}\{c\}$
can be represented by the cochain $c'=d\gamma\in C^s(\cU,\cZ^{q-s})$ such that
$$c'_{\alpha_0\ldots\alpha_s}=\sum_{\nu\in I}d\psi_\nu\wedge
c_{\nu\alpha_0\ldots\alpha_s}=(-1)^{q-s-1}\sum_{\nu\in I}
c_{\nu\alpha_0\ldots\alpha_s}\wedge d\psi_\nu.$$
For a reason that will become apparent later, we shall in fact modify the
sign of our isomorphism $\partial^{s,q-s}$ by the factor $(-1)^{q-s-1}$.
Starting from a class $\{c\}\in\check H^q(\cU,\bbbr)$, we obtain inductively
$\{b\}\in\check H^0(\cU,\cZ^q)$ such that
$$b_{\alpha_0}=\sum_{\nu_0\ld\nu_{q-1}}c_{\nu_0\ldots\nu_{q-1}\alpha_0}\,
d\psi_{\nu_0}\wedge\ldots\wedge d\psi_{\nu_{q-1}}~~~~\hbox{\rm on}~~U_{\alpha_0},
\leqno(6.11)$$
corresponding to $\{f\}\in H^q_{\DR}(X,\bbbr)$ given by the explicit formula
$$f=\sum_{\nu_q}\psi_{\nu_q}b_{\nu_q}=
\sum_{\nu_0\ld\nu_q}c_{\nu_0\ldots\nu_q}\,\psi_{\nu_q}
d\psi_{\nu_0}\wedge\ldots\wedge d\psi_{\nu_{q-1}}.\leqno(6.12)$$
The choice of sign corresponds to (6.2) multiplied by $(-1)^{q(q-1)/2}$.

\begstat{(6.13) Example: Dolbeault cohomology groups} \rm
Let $X$ be a $\bbbc$-analytic manifold of dimension $n$, and let 
$\cE^{p,q}$ be the sheaf of germs of $\ci$ differential forms of type $(p,q)$
with complex values. For every $p=0,1\ld n$, the Dolbeault-Grothendieck
Lemma I-2.9 shows that $(\cE^{p,\bu},d'')$ is a resolution of 
the sheaf $\Omega^p_X$ of germs of holomorphic forms of degree $p$ on $X$.
The {\it Dolbeault cohomology groups} of $X$ already considered in chapter~1
can be defined by
$$H^{p,q}(X,\bbbc)=H^q\big(\cE^{p,\bu}(X)\big).\leqno(6.14)$$
The sheaves $\cE^{p,q}$ are acyclic, so we get the {\it Dolbeault 
isomorphism theorem}, originally proved in (Dolbeault 1953), which relates 
$d''$-cohomology and sheaf cohomology:
$$H^{p,q}(X,\bbbc)\buildo\simeq\over\lra H^q(X,\Omega^p_X).\leqno(6.15)$$
The case $p=0$ is especially interesting:
$$H^{0,q}(X,\bbbc)\simeq H^q(X,\cO_X).\leqno(6.16)$$
As in the case of De Rham cohomology, there is an inclusion
$\cE^{p,q}\subset\cD'_{n-p,n-q}$ and the complex of currents
$(\cD'_{n-p,n-\bu},d'')$ defines also a resolution of $\Omega^p_X$.
Hence there is an isomorphism:
$$H^{p,q}(X,\bbbc)=H^q\big(\cE^{p,\bu}(X)\big)\simeq 
H^q\big(\cD'_{n-p,n-\bu}(X)\big).\leqno(6.17)$$
\endstat

\titleb{7.}{Cohomology with Supports}
As its name indicates, cohomology with supports deals with sections of
sheaves having supports in prescribed closed sets.
We first introduce what is an admissible family of supports.

\begstat{(7.1) Definition} A family of supports on a topological space $X$
is a collection $\Phi$ of closed subsets of $X$ with the following
two properties:
\medskip
\item{\rm a)} If $F\,,\,F'\in\Phi$, then $F\cup F'\in\Phi~;$
\medskip
\item{\rm b)} If $F\in\Phi$ and $F'\subset F$ is closed, then $F'\in\Phi.$
\endstat

\begstat{(7.2) Example} \rm Let $S$ be an arbitrary subset of $X$. Then the family 
of all closed subsets of $X$ contained in $S$ is a family of supports.
\endstat

\begstat{(7.3) Example} \rm The collection of all compact (non necessarily
Hausdorff) subsets of $X$ is a family of supports, which will be denoted 
simply $c$ in the sequel.\qed
\endstat

\begstat{(7.4) Definition} For any sheaf $\cA$ and any family of
supports $\Phi$ on $X$, $\cA_\Phi(X)$ will denote the set of
all sections $f\in\cA(X)$ such that $\Supp\,f\in\Phi$.
\endstat

It is clear that $\cA_\Phi(X)$ is a subgroup of $\cA(X)$. We can now
introduce cohomology groups with arbitrary supports.

\begstat{(7.5) Definition} The cohomology groups of $\cA$ with supports in
$\Phi$ are
$$H^q_\Phi(X,\cA)=H^q\big(\cA^{[\bu]}_\Phi(X)\big).$$
The cohomology groups with compact supports will be denoted
$H^q_c(X,\cA)$ and the cohomology groups with supports in a subset $S$
will be denoted $H^q_S(X,\cA)$.
\endstat

In particular $H^0_\Phi(X,\cA)=\cA_\Phi(X)$. If $0\to\cA\to\cB\to\cC\to 0$ 
is an exact sequence, there are corresponding exact sequences
$$\cmalign{
&\hfil 0~\lra&~~\cA^{[q]}_\Phi(X)&\lra~~\cB^{[q]}_\Phi(X)
&\lra~~\cC^{[q]}_\Phi(X)&\lra\cdots\cr
&&~~H_\Phi^q(X,\cA)&\lra H_\Phi^q(X,\cB)&\lra H_\Phi^q(X,\cC)&\lra
H_\Phi^{q+1}(X,\cA)\lra\cdots.\cr}\leqno(7.6)$$
When $\cA$ is flabby, there is an exact sequence
$$0\lra\cA_\Phi(X)\lra\cB_\Phi(X)\lra\cC_\Phi(X)\lra 0\leqno(7.7)$$
and every $g\in\cC_\Phi(X)$ can be lifted to $v\in\cB_\Phi(X)$ without
enlarging the support: apply the proof of Prop.\ 4.3 to a
maximal lifting which extends $w=0$ on $W=\complement(\Supp\,g)$.
It follows that a flabby sheaf $\cA$ is $\Phi$-acyclic, i.e.\
$H^q_\Phi(X,\cA)=0$ for all $q\ge 1$. Similarly, assume that
$X$ is paracompact and that $\cA$ is soft, and suppose that $\Phi$ has the
following additional property: every set $F\in\Phi$ has a neighborhood 
$G\in\Phi$. An adaptation of the proofs of Prop.\ 4.3 and
4.13 shows that (7.7) is again exact. Therefore every soft sheaf
is also $\Phi$-acyclic in that case.

As a consequence of (7.6), any resolution $\cL^\bu$ of $\cA$
by $\Phi$-acyclic sheaves provides a canonical De Rham-Weil isomorphism
$$H^q\big(\cL^\bu_\Phi(X)\big)\lra H^q_\Phi(X,\cA).\leqno(7.8)$$

\begstat{(7.9) Example: De Rham cohomology with compact support}
\rm In the special case of the De Rham resolution $\bbbr\lra\cE^\bu$ on
a paracompact manifold, we get an isomorphism
$$H^q_{\DR,c}(X,\bbbr):=H^q\big((\cD^\bu(X)\big)\buildo\simeq\over\lra
H^q_c(X,\bbbr),\leqno(7.10)$$
where $\cD^q(X)$ is the space of smooth differential $q$-forms with
compact support in $X$. These groups are called the {\it De Rham 
cohomology groups} of $X$ with compact support.
When $X$ is oriented, $\dim X=n$, we can also consider the
complex of compactly supported currents:
$$0\lra\cE'_n(X)\buildo d\over\lra\cE'_{n-1}(X)\lra\cdots\lra\cE'_{n-q}(X)
\buildo d\over\lra\cE'_{n-q-1}(X)\lra\cdots.$$
Note that $\cD^\bu(X)$ and $\cE'_{n-\bu}(X)$ are respectively the subgroups
of compactly supported sections in $\cE^\bu$ and $\cD'_{n-\bu}$, both of
which are acyclic resolutions~of~$\bbbr$. Therefore the inclusion 
$\cD^\bu(X)\subset\cE'_{n-\bu}(X)$ induces an isomorphism 
$$H^q\big(\cD^\bu(X)\big)\simeq H^q\big(\cE'_{n-\bu}(X)\big),\leqno(7.11)$$
both groups being isomorphic to $H^q_c(X,\bbbr)$.\qed
\endstat

Now, we concentrate our attention on cohomology groups with compact
support. We assume until the end of this section that $X$ is a
{\it locally compact} space.

\begstat{(7.12) Proposition} There is an isomorphism
$$H^q_c(X,\cA)=\lim_{\displaystyle\,\lra\atop\scriptstyle
U\subset\!\subset X}~~H^q(\ovl U,\cA_U)$$
where $\cA_U$ is the sheaf of sections of $\cA$ vanishing on
$X\ssm U$ (c.f. \S 3).
\endstat

\begproof{} By definition
$$H^q_c(X,\cA)=H^q\big(\cA^{[\bu]}_c(X)\big)
=\lim_{\displaystyle\,\lra\atop\scriptstyle U\subset\!\subset X}~~
H^q\big((\cA^{[\bu]})_U(\ovl U)\big)$$
since sections of $(\cA^{[\bu]})_U(\ovl U)$ can be extended by $0$
on $X\ssm U$. However, $(\cA^{[\bu]})_U$ is a resolution of
$\cA_U$ and $\smash{(\cA^{[q]})_U}$ is a $\smash{\bbbz^{[q]}}$-module, 
so it is acyclic on $\smash{\ovl U}$. The De Rham-Weil isomorphism 
theorem implies
$$H^q\big((\cA^{[\bu]})_U(\ovl U)\big)=H^q(\ovl U,\cA_U)$$
and the proposition follows. The reader should take care of the fact
that $(\cA^{[q]})_U$ does not coincide in general with 
$(\cA_U)^{[q]}$.\qed
\endproof

The cohomology groups with compact support can also be defined by means
of \v Cech cohomology.

\begstat{(7.13) Definition} Assume that $X$ is a separable locally compact
space. If $\cU=(U_\alpha)$ is a locally finite
covering of $X$ by relatively compact open subsets, we let
$C^q_c(\cU,\cA)$ be the subgroups of cochains such that only finitely
many coefficients $c_{\alpha_0\ldots\alpha_q}$ are non zero. The
\v Cech cohomology groups with compact support are defined by
$$\eqalign{
&\check H^q_c(\cU,\cA)=H^q\big(C^\bu_c(\cU,\cA)\big)\cr
&\check H^q_c(X,\cA)=\lim_{{\displaystyle\lra}\atop{\scriptstyle\cU}}
H^q\big(C^\bu_c(\cU,\cA)\big)\cr}$$
\endstat

For such coverings $\cU$, Formula (5.13) yields canonical morphisms
$$H^q(\lambda^\bu)~:~~\check H^q_c(\cU,\cA)\lra H^q_c(X,\cA).\leqno(7.14)$$
Now, the lifting Lemma 5.20 is valid for cochains with compact
supports, and the same proof as the one given in \S 5 gives an
isomorphism
$$\check H^q_c(X,\cA)\simeq H^q_c(X,\cA).\leqno(7.15)$$

\titleb{8.}{Cup Product}
Let $\cR$ be a sheaf of commutative rings and $\cA$, $\cB$ sheaves of
$\cR$-modules on a space $X$. We denote by $\cA\otimes_\cR\cB$ the sheaf 
on $X$ defined by
$$(\cA\otimes_\cR\cB)_x=\cA_x\otimes_{\cR_x}\cB_x,\leqno(8.1)$$
with the weakest topology such that the range of any section given by
$\cA(U)\otimes_{\cR(U)}\cB(U)$ is open in $\cA\otimes_\cR\cB$ for any
open set $U\subset X$. Given $f\in\cA^{[p]}_x$ and $g\in\cB^{[q]}_x$, the
{\it cup product} $f\smallsmile g\in(\cA\otimes_\cR\cB)^{[p+q]}_x$ is defined by
$$f\smallsmile g(x_0\ld x_{p+q})=f(x_0\ld x_p)(x_{p+q})\otimes g(x_p\ld x_{p+q}).
\leqno(8.2)$$
A simple computation shows that
$$d^{p+q}(f\smallsmile g)=(d^pf)\smallsmile g+(-1)^p\,f\smallsmile(d^qg).
\leqno(8.3)$$
In particular, $f\smallsmile g$ is a cocycle if $f,g$ are cocycles, and we have
$$(f+d^{p-1}f')\smallsmile(g+d^{q-1}g')=f\smallsmile g+d^{p+q-1}
\big(f'\smallsmile g+(-1)^pf\smallsmile g'+f'\smallsmile dg'\big).$$
Consequently, there is a well defined $\cR(X)$-bilinear morphism
$$H^p(X,\cA)\times H^q(X,\cB)\lra H^{p+q}(X,\cA\otimes_\cR\cB)\leqno(8.4)$$
which maps a pair $(\{f\},\{g\})$ to $\{f\smallsmile g\}$.

Let $0\to\cB\to\cB'\to\cB''\to 0$ be an exact sequence of sheaves. Assume that 
the sequence obtained after taking the tensor product by $\cA$ is also exact:
$$0\lra\cA\otimes_\cR\cB\lra\cA\otimes_\cR\cB'\lra\cA\otimes_\cR\cB''\lra 0.$$
Then we obtain connecting homomorphisms
$$\eqalign{
&\partial^q~:~~H^q(X,\cB'')\lra H^{q+1}(X,\cB),\cr
&\partial^q~:~~H^q(X,\cA\otimes_\cR\cB'')\lra H^{q+1}(X,\cA\otimes_\cR\cB).
\cr}$$
For every $\alpha\in H^p(X,\cA)$, $\beta''\in H^q(X,\cB'')$ we have
$$\leqalignno{
\partial^{p+q}(\alpha\smallsmile\beta'')&=(-1)^p\,\alpha\smallsmile(\partial^q\beta''),
&(8.5)\cr
\partial^{p+q}(\beta''\smallsmile\alpha)&=(\partial^q\beta'')\smallsmile\alpha,
&(8.5')\cr}$$
where the second line corresponds to the tensor product of the exact sequence
by $\cA$ on the right side. These formulas are deduced from (8.3) applied to a
repre\-sentant $f\in\cA^{[p]}(X)$ of $\alpha$ and to a lifting $g'\in
\cB^{\prime[q]}(X)$ of a representative $g''$ of $\beta''$ (note that $d^pf=0$).

\begstat{(8.6) Associativity and anticommutativity} Let 
$i:\cA\otimes_\cR\cB\lra\cB\otimes_\cR\cA$ be the
canonical isomorphism $s\otimes t\mapsto t\otimes s$. For all
$\alpha\in H^p(X,\cA)$, $\beta\in H^q(X,\cB)$ we have
$$\beta\smallsmile\alpha=(-1)^{pq}\,i(\alpha\smallsmile\beta).$$
If $\cC$ is another sheaf of $\cR$-modules and $\gamma\in H^r(X,\cC)$,
then
$$(\alpha\smallsmile\beta)\smallsmile\gamma=
\alpha\smallsmile(\beta\smallsmile\gamma).$$
\endstat

\begproof{} The associativity property is easily seen to hold already for all
cochains
$$(f\smallsmile g)\smallsmile h=f\smallsmile(g\smallsmile h),~~~f\in\cA^{[p]}_x,~~g\in\cB^{[q]}_x,~~
h\in\cC^{[r]}_x.$$
The commutation property is obvious for $p=q=0$, and can be proved in general
by induction on $p+q$. Assume for example $q\ge 1$. Consider the exact
sequence
$$0\lra\cB\lra\cB'\lra\cB''\lra 0$$
where $\cB'=\cB^{[0]}$ and $\cB''=\cB^{[0]}/\cB$. This exact sequence splits
on each stalk (but not globally, nor even locally): a left inverse 
$\smash{\cB^{[0]}_x}\to\cB_x$ of the inclusion\break is given by $g\mapsto g(x)$.
Hence the sequence remains exact after taking the tensor product with $\cA$.
Now, as $\cB'$ is acyclic, the connecting homomorphism 
$H^{q-1}(X,\cB'')\lra H^q(X,\cB)$ is onto, so there is
$\beta''\in H^{q-1}(X,\cB'')$ such that $\beta=\partial^{q-1}\beta''$.
Using (8.$5'$), (8.5) and the induction hypothesis, we find
$$\eqalignno{
\beta\smallsmile\alpha&=\partial^{p+q-1}(\beta''\smallsmile\alpha)=\partial^{p+q-1}\big(
(-1)^{p(q-1)}\,i(\alpha\smallsmile\beta'')\big)\cr
&=(-1)^{p(q-1)}\,i\partial^{p+q-1}(\alpha\smallsmile\beta'')=
(-1)^{p(q-1)}(-1)^p\,i(\alpha\smallsmile\beta).&\square\cr}$$
\endproof

Theorem 8.6 shows in particular that $H^\bu(X,\cR)$ is a graded associative
and supercommutative algebra, i.e.\ $\beta\smallsmile\alpha=(-1)^{pq}\,\alpha\smallsmile\beta$
for all classes $\alpha\in H^p(X,\cR)$, $\beta\in H^q(X,\cR)$. If $\cA$ is a 
$\cR$-module, then $H^\bu(X,\cA)$ is a graded $H^\bu(X,\cR)$-module.

\begstat{(8.7) Remark} \rm The cup product can also be defined for \v Cech cochains.
Given $c\in C^p(\cU,\cA)$ and $c'\in C^q(\cU,\cB)$, the cochain
$c\smallsmile c'\in C^{p+q}(\cU,\cA\otimes_\cR\cB)$ is defined by
$$(c\smallsmile c')_{\alpha_0\ldots\alpha_{p+q}}=c_{\alpha_0\ldots\alpha_p}\otimes
c'_{\alpha_p\ldots\alpha_{p+q}}~~~\hbox{\rm on}~~U_{\alpha_0\ldots\alpha_{p+q}}.$$
Straightforward calculations show that
$$\delta^{p+q}(c\smallsmile c')=(\delta^pc)\smallsmile c'+(-1)^p\,c\smallsmile(\delta^qc')$$
and that there is a commutative diagram 
$$\cmalign{
\check H^p(\cU,\cA)&\times\check H^q(\cU,\cB)&\lra
\check H^{p+q}(\cU&,\cA\otimes_\cR\cB)\cr
&\big\downarrow&&\big\downarrow\cr
H^p(X,\cA)&\times H^q(X,\cB)&\lra H^{p+q}(X&,\cA\otimes_\cR\cB),\cr}$$
where the vertical arrows are the canonical morphisms $H^s(\lambda^\bu)$
of (5.14). Note that the commutativity already holds in fact on
cochains.
\endstat

\begstat{(8.8) Remark} \rm Let $\Phi$ and $\Psi$ be families of supports on $X$.
Then $\Phi\cap\Psi$ is again a family of supports, and Formula (8.2) 
defines a bilinear map
$$H_\Phi^p(X,\cA)\times H_\Psi^q(X,\cB)\lra H_{\Phi\cap\Psi}^{p+q}
(X,\cA\otimes_\cR\cB)\leqno(8.9)$$
on cohomology groups with supports. This follows immediately from the fact
that $\Supp(f\smallsmile g)\subset\Supp\,f\cap\Supp\,g$.
\endstat

\begstat{(8.10) Remark} \rm Assume that $X$ is a differentiable manifold.  Then the
cohomology complex $H^\bu_{\DR}(X,\bbbr)$ has a natural structure of
supercommutative algebra given by the wedge product of differential
forms.  We shall prove the following compatibility statement:
\medskip
\noindent{\it Let $H^q(X,\bbbr)\lra H^q_{\DR}(X,\bbbr)$ be the De
Rham-Weil isomorphism given by Formula {\rm (6.12)}.  Then the cup
product $c'\smallsmile c''$ is mapped on the wedge product $f'\wedge
f''$ of the corresponding De Rham cohomology classes.}
\medskip
\noindent By remark 8.7, we may suppose that $c',c''$ are \v Cech 
cohomology classes of respective degrees $p,q$. Formulas (6.11) and 
(6.12) give
$$\eqalign{
f'_{\restriction U_{\nu_p}}&=\sum_{\nu_0\ld\nu_{p-1}}
c'_{\nu_0\ldots\nu_{p-1}\nu_p}\,d\psi_{\nu_0}\wedge\ldots\wedge 
d\psi_{\nu_{p-1}},\cr
f''&=\sum_{\nu_p\ld\nu_{p+q}}
c''_{\nu_p\ldots\nu_{p+q}}\,\psi_{\nu_{p+q}}d\psi_{\nu_p}\wedge\ldots\wedge 
d\psi_{\nu_{p+q-1}}.\cr}$$
We get therefore
$$f'\wedge f''=\sum_{\nu_0\ld\nu_{p+q}}
c'_{\nu_0\ldots\nu_p}\,c''_{\nu_p\ldots\nu_{p+q}}\,
\psi_{\nu_{p+q}}d\psi_{\nu_0}\wedge\ldots\wedge\psi_{\nu_{p+q-1}},$$
which is precisely the image of $c\smallsmile c'$ in the De Rham 
cohomology.\qed
\endstat

\titleb{9.}{Inverse Images and Cartesian Products}
\titlec{9.A.}{Inverse Image of a Sheaf}
Let $F:X\to Y$ be a continuous map between topological spaces $X,Y$, and
let $\pi:\cA\to Y$ be a sheaf of abelian groups. Recall that {\it inverse image}
$F^{-1}\cA$ is defined as the sheaf-space
$$F^{-1}\cA=\cA\times_Y X=\big\{(s,x)\,;\,\pi(s)=F(x)\big\}$$
with projection $\pi'=\pr_2:F^{-1}\cA\to X$. The stalks of $F^{-1}\cA$ are
given by
$$(F^{-1}\cA)_x=\cA_{F(x)},\leqno(9.1)$$
and the sections $\sigma\in F^{-1}\cA(U)$ can be considered as continuous
mappings \hbox{$\sigma:U\to\cA$} such that $\pi\circ\sigma=F$. In particular,
any section
$s\in\cA(U)$ has a {\it pull-back}
$$F^\star s=s\circ F\in F^{-1}\cA\big(F^{-1}(U)\big).\leqno(9.2)$$
For any $v\in\cA^{[q]}_y$, we define $F^\star v\in(F^{-1}\cA)^{[q]}_x$ by
$$F^\star v(x_0\ld x_q)=v\big(F(x_0)\ld F(x_q)\big)\in(F^{-1}\cA)_{x_q}=
\cA_{F(x_q)}\leqno(9.3)$$
for $x_0\in V(x)$, $x_1\in V(x_0)\ld x_q\in V(x_0\ld x_{q-1})$.
We get in this way a morphism of complexes $F^\star:\cA^{[\bu]}(Y)\lra
(F^{-1}\cA)^{[\bu]}(X)$. On cohomology groups, we thus have an induced
morphism
$$F^\star~:~~H^q(Y,\cA)\lra H^q(X,F^{-1}\cA).\leqno(9.4)$$
Let $0\to\cA\to\cB\to\cC\to 0$ be an exact sequence of sheaves on $X$.
Thanks to property (9.1), there is an exact sequence
$$0\lra F^{-1}\cA\lra F^{-1}\cB\lra F^{-1}\cC\lra 0.$$
It is clear on the definitions that the morphism $F^\star$ in (9.4)
commutes with the associated cohomology exact sequences. Also, $F^\star$
preserves the cup product, i.e.\ $F^\star(\alpha\smallsmile\beta)=
F^\star\alpha\smallsmile F^\star\beta$ whenever $\alpha,\beta$ are
cohomology classes with values in sheaves $\cA$, $\cB$ on $X$.
Furthermore, if $G:Y\to Z$ is a continuous map, we have
$$(G\circ F)^\star=F^\star\circ G^\star.\leqno(9.5)$$

\begstat{(9.6) Remark} \rm Similar definitions can be given for \v Cech
cohomology.
If $\cU=(U_\alpha)_{\alpha\in I}$ is an open covering of $Y$, then
$F^{-1}\cU=\big(F^{-1}(U_\alpha)\big)_{\alpha\in I}$ is an open covering of
$X$. For $c\in C^q(\cU,\cA)$, we set
$$(F^\star c)_{\alpha_0\ldots\alpha_q}=c_{\alpha_0\ldots\alpha_q}\circ F
\in C^q(F^{-1}\cU,F^{-1}\cA).$$
This definition is obviously compatible with the morphism from \v Cech
cohomology to ordinary cohomology.
\endstat

\begstat{(9.7) Remark} \rm Let $\Phi$ be a family of supports on $Y$. We define
$F^{-1}\Psi$ to be the family of closed sets $K\subset X$ such that $F(K)$
is contained in some set $L\in\Psi$. Then (9.4) can be generalized
in the form
$$F^\star~:~~H_\Psi^q(Y,\cA)\lra H_{F^{-1}\Psi}^q(X,F^{-1}\cA).
\leqno(9.8)$$
\endstat

\begstat{(9.9) Remark} \rm Assume that $X$ and $Y$ are paracompact differentiable
manifolds and that $F:X\to Y$ is a $\ci$ map. If $(\psi_\alpha)_{\alpha\in I}$
is a partition of unity subordinate to $\cU$, then $(\psi_\alpha\circ 
F)_{\alpha\in I}$ is a partition of unity on $X$ subordinate to $F^{-1}\cU$.
Let $c\in C^q(\cU,\bbbr)$. The differential form associated to $F^\star c$ in
the De Rham cohomology is
$$\eqalign{
g&=\sum_{\nu_0\ld\nu_q}c_{\nu_0\ldots\nu_q}(\psi_{\nu_q}\circ F)
d(\psi_{\nu_0}\circ F)\wedge\ldots\wedge d(\psi_{\nu_{q-1}}\circ F)\cr
&=F^\star\Big(\sum_{\nu_0\ld\nu_q}c_{\nu_0\ldots\nu_q}\,\psi_{\nu_q}
d\psi_{\nu_0}\wedge\ldots\wedge d\psi_{\nu_{q-1}}\Big).\cr}$$
Hence we have a commutative diagram
$$\cmalign{
&H^q_{\DR}(Y,\bbbr)&\buildo\simeq\over\lra&\check H^q(Y,\bbbr)
&\buildo\simeq\over\lra&H^q(Y,\bbbr)\cr
&\quad~~\big\downarrow F^\star&&\quad~~\big\downarrow F^\star
&&\quad~~\big\downarrow F^\star\cr
&H^q_{\DR}(X,\bbbr)&\buildo\simeq\over\lra&\check H^q(X,\bbbr)
&\buildo\simeq\over\lra&H^q(X,\bbbr).\cr}$$
\endstat

\titlec{9.B.}{Cohomology Groups of a Subspace}
Let $\cA$ be a sheaf on a topological space $X$, let $S$ be a subspace of $X$
and $i_S:S\lhra X$ the  inclusion. Then $i_S^{-1}\cA$ is the restriction of
$\cA$ to $S$, so that $H^q(S,\cA)=H^q(S,i_S^{-1}\cA)$ by definition. 
For any two subspaces $S'\subset S$, the inclusion of
$S'$ in $S$ induces a restriction morphism
$$H^q(S,\cA)\lra H^q(S',\cA).$$
    
\begstat{(9.10) Theorem} Let $\cA$ be a sheaf on $X$ and $S$ a strongly
paracompact subspace in $X$. When $\Omega$ ranges over open neighborhoods of
$S$, we have 
$$H^q(S,\cA)=
\lim_{\displaystyle\lra\atop\scriptstyle\Omega\supset S}~~H^q(\Omega,\cA).$$
\endstat

\begproof{} When $q=0$, the property is equivalent to Prop.\ 4.7.
The general case follows by induction on $q$ if we use the long cohomology 
exact sequences associated to the short exact sequence
$$0\lra\cA\lra\cA^{[0]}\lra\cA^{[0]}/\cA\lra 0$$
on $S$ and on its neighborhoods $\Omega$ (note that the restriction of
a flabby sheaf to $S$ is soft by Prop.\ 4.7 and the fact that
every closed subspace of a strongly paracompact subspace is strongly
paracompact).\qed
\endproof

\titlec{9.C.}{Cartesian Product}
We use here the formalism of inverse images to deduce the cartesian 
product from the cup product. Let $R$ be a fixed commutative ring and
$\cA\to X$, $\cB\to Y$ sheaves of $R$-modules. We define the
{\it external tensor product} by
$$\cA\stimes_R\cB=\pr_1^{-1}\cA\otimes_R\pr_2^{-1}\cB
\leqno(9.11)$$
where $\pr_1$, $\pr_2$ are the projections of $X\times Y$ onto
$X$, $Y$ respectively. The sheaf $\cA\stimes_R\;\cB$ is thus the sheaf on 
$X\times Y$ whose stalks are
$$(\cA\stimes_R\cB)_{(x,y)}=\cA_x\otimes_R\cB_y.\leqno(9.12)$$
For all cohomology classes $\alpha\in H^p(X,\cA)$, $\beta\in H^q(Y,\cB)$
the {\it cartesian product} $\alpha\times\beta\in H^{p+q}(X\times Y,
\cA\stimes_R\cB)$ is defined by
$$\alpha\times\beta=(\pr_1^\star\alpha)\smallsmile(\pr_2^\star
\beta).\leqno(9.13)$$
More generally, let $\Phi$ and $\Psi$ be families of supports in $X$ and $Y$ 
respectively.
If $\Phi\times\Psi$ denotes the family of all closed subsets of 
$X\times Y$ contained in products $K\times L$ of elements $K\in\Phi$, 
$L\in\Psi$, the cartesian product defines a $R$-bilinear map
$$H_\Phi^p(X,\cA)\times H_\Psi^q(Y,\cB)\lra H_{\Phi\times\Psi}^{p+q}
(X\times Y,\cA\stimes_R\cB).\leqno(9.14)$$
If $\cA'\to X$, $\cB'\to Y$ are sheaves of abelian groups and if $\alpha'$,
$\beta'$ are cohomology classes of degree $p'$, $q'$ with values in $\cA'$, 
$\cB'$, one gets easily
$$(\alpha\times\beta)\smallsmile(\alpha'\times\beta')=(-1)^{qp'}
(\alpha\smallsmile\alpha')\times(\beta\smallsmile\beta').\leqno(9.15)$$
Furthermore, if $F:X'\to X$ and $G:Y'\to Y$ are continuous maps, then
$$(F\times G)^\star(\alpha\times\beta)=(F^\star\alpha)\times(G^\star\beta).
\leqno(9.16)$$

\titleb{10.}{Spectral Sequence of a Filtered Complex}
\titlec{10.A.}{Construction of the Spectral Sequence}
The theory of spectral sequences consists essentially in computing
the homo\-logy groups of a differential module $(K,d)$ by ``successive 
approximations", once a filtration $F_p(K)$ is given in $K$ 
and the cohomology groups of the graded modules $G_p(K)$ are known.
Let us first recall some standard definitions and notations concerning
filtrations.

\begstat{(10.1) Definition}  Let $R$ be a commutative ring.  A filtration
of a $R$-module $M$ is a sequence of submodules $M_p\subset M$,
$p\in\bbbz$, also denoted $M_p=F_p(M)$, such that $M_{p+1}\subset M_p$
for all $p\in\bbbz$, $\bigcup M_p=M$ and $\bigcap M_p=\{0\}$.  The
associated graded module is
$$G(M)=\bigoplus_{p\in\bbbz}G_p(M),~~~~G_p(M)=M_p/M_{p+1}.$$
\endstat

Let $(K,d)$ be a differential module equipped with a filtration $(K_p)$
by differential submodules (i.e.\ $dK_p\subset K_p$ for every $p$).
For any number \hbox{$r\in\bbbn\cup\{\infty\}$}, we define
$Z^p_r,\,B^p_r\subset G_p(K)=K_p/K_{p+1}$ by
$$\leqalignno{
\qquad\qquad Z^p_r&=K_p\cap d^{-1}K_{p+r}~~\hbox{\rm mod}~K_{p+1},~~~
Z^p_\infty=K_p\cap d^{-1}\{0\}~~\hbox{\rm mod}~K_{p+1},&(10.2)\cr
\qquad\qquad B^p_r&=K_p\cap dK_{p-r+1}~~\hbox{\rm mod}~K_{p+1},~~~
B^p_\infty=K_p\cap dK~~~\hbox{\rm mod}~K_{p+1}.&(10.2')\cr}$$

\begstat{(10.3) Lemma} For every $p$ and $r$, there are inclusions
$$\ldots\subset B^p_r\subset B^p_{r+1}\subset\ldots\subset B^p_\infty
\subset Z^p_\infty\subset\ldots\subset Z^p_{r+1}\subset Z^p_r\subset\ldots$$
and the differential $d$ induces an isomorphism
$$\wt d~:~~Z^p_r/Z^p_{r+1}\lra B^{p+r}_{r+1}/B^{p+r}_r.$$
\endstat

\begproof{} It is clear that $(Z^p_r)$ decreases with $r$, that $(B^p_r)$ 
increases with $r$, and that $B^p_\infty\subset Z^p_\infty$. By definition
$$\eqalign{
Z^p_r&=(K_p\cap d^{-1}K_{p+r})/(K_{p+1}\cap d^{-1}K_{p+r}),\cr
B^p_r&=(K_p\cap dK_{p-r+1})/(K_{p+1}\cap dK_{p-r+1}).\cr}$$
The differential $d$ induces a morphism
$$Z^p_r\lra (dK_p\cap K_{p+r})/(dK_{p+1}\cap K_{p+r})$$
whose kernel is $(K_p\cap d^{-1}\{0\})/(K_{p+1}\cap d^{-1}\{0\})=Z^p_\infty$,
whence isomorphisms
$$\eqalign{
\wh d~:~~&Z^p_r/Z^p_\infty\lra(K_{p+r}\cap dK_p)/(K_{p+r}\cap dK_{p+1}),\cr
\wt d~:~~&Z^p_r/Z^p_{r+1}\lra(K_{p+r}\cap dK_p)/
(K_{p+r}\cap dK_{p+1}+K_{p+r+1}\cap dK_p).\cr}$$
The right hand side of the last arrow can be identified to 
$B^{p+r}_{r+1}/B^{p+r}_r$, for
$$\eqalignno{
B^{p+r}_r&=(K_{p+r}\cap dK_{p+1})/(K_{p+r+1}\cap dK_{p+1}),\cr
B^{p+r}_{r+1}&=(K_{p+r}\cap dK_p)/(K_{p+r+1}\cap dK_p).&\square\cr}$$
\endproof

Now, for each $r\in\bbbn$, we define a complex $E^\bu_r=\bigoplus_{p\in\bbbz}
E^p_r$ with a differential $d_r:E^p_r\lra E^{p+r}_r$ of degree $r$
as follows: we set $E^p_r=Z^p_r/B^p_r$ and take
$$d_r~:~~Z^p_r/B^p_r\lraww Z^p_r/Z^p_{r+1}\buildo{\displaystyle\wt d}
\over\lra B^{p+r}_{r+1}/B^{p+r}_r\lhra Z^{p+r}_r/B^{p+r}_r\leqno(10.4)$$
where the first arrow is the obvious projection and the third arrow
the obvious inclusion. Since $d_r$ is induced by $d$, we actually
have $d_r\circ d_r=0$~; this can also be seen directly by the fact
that $B^{p+r}_{r+1}\subset Z^{p+r}_{r+1}$.

\begstat{(10.5) Theorem and definition} There is a canonical 
isomorphism $E^\bu_{r+1}\simeq H^\bu(E^\bu_r)$. The sequence of differential
complexes $(E^\bu_r,d^\bu_r)$ is called the spectral sequence of
the filtered differential module $(K,d)$.
\endstat

\begproof{} Since $\wt d$ is an isomorphism in (10.4), we have
$$\ker\,d_r=Z^p_{r+1}/B^p_r,~~~~\Im d_r=B^{p+r}_{r+1}/B^{p+r}_r.$$
Hence the image of $d_r:E^{p-r}_r\lra E^p_r$ is $B^p_{r+1}/B^p_r$ and
$$H^p(E^\bu_r)=(Z^p_{r+1}/B^p_r)/(B^p_{r+1}/B^p_r)
\simeq Z^p_{r+1}/B^p_{r+1}=E^p_{r+1}.\eqno\square$$
\endproof

\begstat{(10.6) Theorem} Consider the filtration of the homology module
$H(K)$ defined by
$$F_p\big(H(K)\big)=\Im\big(H(K_p)\lra H(K)\big).$$
Then there is a canonical isomorphism
$$E^p_\infty=G_p\big(H(K)\big).$$
\endstat

\begproof{} Clearly $F_p\big(H(K)\big)=(K_p\cap d^{-1}\{0\})/(K_p\cap dK)$,
whereas
$$\eqalign{
Z^p_\infty&=(K_p\cap d^{-1}\{0\})/(K_{p+1}\cap d^{-1}\{0\}),~~
B^p_\infty=(K_p\cap dK)/(K_{p+1}\cap dK),\cr
E^p_\infty&=Z^p_\infty/B^p_\infty=
(K_p\cap d^{-1}\{0\})/(K_{p+1}\cap d^{-1}\{0\}+K_p\cap dK).\cr}$$
It follows that $E^p_\infty\simeq F_p\big(H(K)\big)/
F_{p+1}\big(H(K)\big)$.\qed
\endproof

In most applications, the differential module $K$ has a natural grading
compatible with the filtration. Let us consider for example the case
of a cohomology complex $K^\bu=\bigoplus_{l\in\bbbz}K^l$. The filtration
$K^\bu_p=F_p(K^\bu)$ is said to be {\it compatible} with the
differential complex structure if each $K^\bu_p$ is a subcomplex of
$K^\bu$, i.e.\
$$K^\bu_p=\bigoplus_{l\in\bbbz}K^l_p$$
where $(K^l_p)$ is a filtration of $K^l$. Then we define
$Z^{p,q}_r$, $B^{p,q}_r$, $E^{p,q}_r$ to be the sets of elements of
$Z^p_r$, $B^p_r$, $E^p_r$ of total degree $p+q$. Therefore
\medskip\noindent
$\cmalign{
(10.7)\hfill&Z^{p,q}_r&=K^{p+q}_p\cap d^{-1}K^{p+q+1}_{p+r}
~~~\hbox{\rm mod}~~K^{p+q}_{p+1}~,~~~~&Z^p_r=\bigoplus Z^{p,q}_r,\cr
(10.7')\hfill&B^{p,q}_r&=K^{p+q}_p\cap dK^{p+q-1}_{p-r+1}
~~~\hbox{\rm mod}~~K^{p+q}_{p+1}~,~~~~&B^p_r=\bigoplus B^{p,q}_r,\cr
(10.7'')\hfill&E^{p,q}_r&=Z^{p,q}_r/B^{p,q}_r~,&E^p_r=\bigoplus E^{p,q}_r,\cr}$
\medskip\noindent
and the differential $d_r$ has bidegree $(r,-r+1)$, i.e.\
$$d_r~:~~E^{p,q}_r\lra E^{p+r\,,\,q-r+1}_r.\leqno(10.8)$$
For an element of pure bidegree $(p,q)$, $p$ is called the
{\it filtering degree}, $q$ the {\it complementary degree} and $p+q$ the
{\it total degree}.

\begstat{(10.9) Definition} A filtration $(K^\bu_p)$ of a complex $K^\bu$
is said to be regular if for each degree $l$ there are indices
$\nu(l)\le N(l)$ such that $K^l_p=K^l$ for $p<\nu(l)$ and
$K^l_p=0$ for $p>N(l)$.
\endstat

If the filtration is regular, then (10.7) and $(10.7')$ show that
$$\eqalign{
Z^{p,q}_r=Z^{p,q}_{r+1}=\ldots=Z^{p,q}_\infty~~~~\hbox{\rm for}~~
&r>N(p+q+1)-p,\cr
B^{p,q}_r=B^{p,q}_{r+1}=\ldots=B^{p,q}_\infty~~~~\hbox{\rm for}~~
&r>p+1-\nu(p+q-1),\cr}$$
therefore $E^{p,q}_r=E^{p,q}_\infty$ for $r\ge r_0(p,q)$. We say that
the spectral sequence {\it converges} to its limit term, and we write
symbolically
$$E^{p,q}_r\Longrightarrow H^{p+q}(K^\bu)\leqno(10.10)$$
to express the following facts: there is a spectral sequence whose terms of
the $r$-th generation are $E^{p,q}_r$, the sequence converges to a limit term
$E^{p,q}_\infty$, and $E^{p,l-p}_\infty$ is the term $G_p\big(H^l(K^\bu)\big)$ 
in the graded module associated to some filtration of $H^l(K^\bu)$.

\begstat{(10.11) Definition} The spectral sequence is said to 
collapse in $E^\bu_r$ if all terms $Z^{p,q}_k$, $B^{p,q}_k$,
$E^{p,q}_k$ are constant for $k\ge r$, or equivalently if $d_k=0$ 
in all bidegrees for $k\ge r$.
\endstat

\begstat{(10.12) Special case} \rm Assume that there exists an integer
$r\ge 2$ and an index $q_0$ such that $E^{p,q}_r=0$ for $q\ne q_0$. Then this
property remains true for larger values of $r$, and we must have $d_r=0$. 
It follows that the spectral sequence collapses in $E^\bu_r$ and that 
$$H^l(K^\bu)=E^{l-q_0,q_0}_r.$$
Similarly, if $E^{p,q}_r=0$ for $p\ne p_0$ and some $r\ge 1$ then 
$$H^l(K^\bu)=E^{p_0,l-p_0}_r.\eqno\square$$
\endstat

\titlec{10.B.}{Computation of the First Terms} 
Consider an arbitrary spectral sequence.
For  $r=0$, we have $Z^p_0=K_p/K_{p+1}$, $B^p_0=\{0\}$, thus 
$$E^p_0=K_p/K_{p+1}=G_p(K).\leqno(10.13)$$
The differential $d_0$ is induced by $d$ on the quotients, and 
$$E^p_1=H\big(G_p(K)\big).\leqno(10.14)$$
Now, there is a short exact sequence of differential modules
$$0\lra G_{p+1}(K)\lra K_p/K_{p+2}\lra G_p(K)\lra 0.$$
We get therefore a connecting homomorphism
$$E^p_1=H\big(G_p(K)\big)\buildo\partial\over\lra
H\big(G_{p+1}(K)\big)=E^{p+1}_1.\leqno(10.15)$$
We claim that $\partial$ coincides with the differential $d_1$~: indeed,
both are induced by $d$. When $K^\bu$ is a filtered cohomology complex,
$d_1$ is the connecting homomorphism
$$E^{p,q}_1=H^{p+q}\big(G_p(K^\bu)\big)\buildo\partial\over\lra
H^{p+q+1}\big(G_{p+1}(K^\bu)\big)=E^{p+1,q}_1.\leqno(10.16)$$

\titleb{11.}{Spectral Sequence of a Double Complex}
A double complex is a bigraded module $K^{\bu,\bu}=\bigoplus K^{p,q}$
together with a differential $d=d'+d''$ such that
$$d':K^{p,q}\lra K^{p+1,q},~~~d'':K^{p,q+1}\lra K^{p,q+1},\leqno(11.1)$$
and $d\circ d=0$. In particular, $d'$ and $d''$ satisfy the relations
$$d^{\prime2}=d^{\prime\prime2}=0,~~~d'd''+d''d'=0.\leqno(11.2)$$
The {\it simple complex associated} to $K^{\bu,\bu}$ is defined by 
$$K^l=\bigoplus_{p+q=l}K^{p,q}$$
together with the differential $d$. We will suppose here
that both graduations of $K^{\bu,\bu}$ are positive, i.e.\ $K^{p,q}=0$
for $p<0$ or $q<0$. The {\it first filtration} of $K^\bu$ is
defined by
$$K^l_p=\bigoplus_{i+j=l,~i\ge p}K^{i,j}=\bigoplus_{p\le i\le l}K^{i,l-i}.
\leqno(11.3)$$
The graded module associated to this filtration is of course 
$G_p(K^l)=K^{p,l-p}$, and the differential induced by $d$ on the quotient 
coincides with $d''$ because $d'$ takes $K^l_p$ to $K^{l+1}_{p+1}$. 
Thus we have a spectral sequence beginning by
$$E^{p,q}_0=K^{p,q},~~~d_0=d'',~~~E^{p,q}_1=H^q_{d''}(K^{p,\bu}).
\leqno(11.4)$$
By (10.16), $d_1$ is the connecting homomorphism associated to the
short exact sequence
$$0\lra K^{p+1,\bu}\lra K^{p,\bu}\oplus K^{p+1,\bu}\lra K^{p,\bu}\lra 0$$
where the differential is given by ($d$ mod $K^{p+2,\bu}$)
for the central term and by $d''$ for the two others. The definition of the 
connecting homomorphism in the proof of Th. 1.5 shows that 
$$d_1=\partial:~~H^q_{d''}(K^{p,\bu})\lra H^q_{d''}(K^{p+1,\bu})$$
is induced by $d'$. Consequently, we find
$$E^{p,q}_2=H^p_{d'}(E_1^{\bu,q})=
H^p_{d'}\big(H^q_{d''}(K^{\bu,\bu})\big).\leqno(11.5)$$

For such a spectral sequence, several interesting additional
features can be pointed out. For all $r$ and $l$, there is an injective 
homomorphism
$$E^{0,l}_{r+1}\lhra E^{0,l}_r$$
whose image can be identified with the set of $d_r$-cocycles in
$E^{0,l}_r$~; the coboundary group is zero because $E^{p,q}_r=0$ for
$q<0$. Similarly, $E^{l,0}_r$ is equal to its cocycle submodule, and there
is a surjective homomorphism
$$E^{l,0}_r\lraww E^{l,0}_{r+1}\simeq E^{l,0}_r/d_rE^{l-r,r-1}_r.$$
Furthermore, the filtration on $H^l(K^\bu)$ begins at $p=0$ and stops  
at $p=l$, i.e.\ 
$$F_0\big(H^l(K^\bu)\big)=H^l(K^\bu),~~~F_p\big(H^l(K^\bu)\big)=0~~~
\hbox{\rm for}~~p>l.\leqno(11.6)$$
Therefore, there are canonical maps
$$\eqalign{
&H^l(K^\bu)\lraww G_0\big(H^l(K^\bu)\big)=E^{0,l}_\infty\lhra E^{0,l}_r,\cr
&E^{l,0}_r\lraww E^{l,0}_\infty=G_l\big(H^l(K^\bu)\big)\lhra H^l(K^\bu).}
\leqno(11.7)$$
These maps are called the {\it edge homomorphisms} of the spectral sequence.

\begstat{(11.8) Theorem} There is an exact sequence
$$0\lra E^{1,0}_2\lra H^1(K^\bu)\lra E^{0,1}_2\buildo d_2\over\lra E^{2,0}_2
\lra H^2(K^\bu)$$
where the non indicated arrows are edge homomorphisms.
\endstat

\begproof{} By 11.6, the graded module associated to $H^1(K^\bu)$ has only
two components, and we have an exact sequence
$$0\lra E^{1,0}_\infty\lra H^1(K^\bu)\lra E^{0,1}_\infty\lra 0.$$
However $E^{1,0}_\infty=E^{1,0}_2$ because all differentials $d_r$
starting from $E^{1,0}_r$ or abuting to $E^{1,0}_r$ must be zero
for $r\ge 2$. Similarly, $E^{0,1}_\infty=E^{0,1}_3$ and 
$E^{2,0}_\infty=E^{2,0}_3$, thus there is an exact sequence
$$0\lra E^{0,1}_\infty\lra E^{0,1}_2\buildo d_2\over\lra E^{2,0}_2\lra
E^{2,0}_\infty\lra 0.$$
A combination of the two above exact sequences yields
$$0\lra E^{1,0}_2\lra H^1(K^\bu)\lra E^{0,1}_2\buildo d_2\over\lra E^{2,0}_2\lra
E^{2,0}_\infty\lra 0.$$
Taking into account the injection $E^{2,0}_\infty\lhra H^2(K^\bu)$ in 
(11.7), we get the required exact sequence.\qed
\endproof

\begstat{(11.9) Example} \rm Let $X$ be a complex manifold of dimension $n$.
Consider the double complex $K^{p,q}=\ci_{p,q}(X,\bbbc)$ together with the
exterior derivative $d=d'+d''$. Then there is a spectral sequence
which starts from the Dolbeault cohomology groups
$$E^{p,q}_1=H^{p,q}(X,\bbbc)$$ 
and which converges to the graded module associated to a filtration of 
the De Rham cohomology groups:
$$E^{p,q}_r\Longrightarrow H^{p+q}_{\DR}(X,\bbbc).$$
This spectral sequence is called the {\it Hodge-Fr\"olicher spectral 
sequence} (Fr\"o\-licher 1955). We will study it in much more detail in chapter 6
when $X$ is compact.\qed
\endstat

Frequently, the spectral sequence under consideration can be obtained from
two distinct double complexes and one needs to compare the final
cohomology groups. The following lemma can often be applied.

\begstat{(11.10) Lemma} Let $K^{p,q}\lra L^{p,q}$ be a morphism of
double complexes $($i.e.\ a double sequence of maps commuting with $d'$ and 
$d'')$. Then there are induced morphisms 
$${}_KE^{\bu,\bu}_r\lra{}_LE^{\bu,\bu}_r,~~~~r\ge 0$$
of the associated spectral sequences. If one of these morphisms is an 
isomorphism for some $r$, then $H^l(K^\bu)\lra H^l(L^\bu)$ is an isomorphism.
\endstat

\begproof{} If the $r$-terms are isomorphic, they have the same
cohomology groups, thus ${}_KE^{\bu,\bu}_{r+1}\simeq{}_LE^{\bu,\bu}_{r+1}$
and ${}_KE^{\bu,\bu}_\infty\simeq{}_LE^{\bu,\bu}_\infty$ in the limit.
The lemma follows from the fact that if a morphism of graded modules
$\varphi:M\lra M'$ induces an isomorphism $G_\bu(M)\lra G_\bu(M')$, then
$\varphi$ is an isomorphism.\qed
\endproof

\titleb{12.}{Hypercohomology Groups}
Let $(\cL^\bu,\delta)$ be a complex of sheaves
$$0\lra\cL^0\buildo\delta^0\over\lra\cL^1\lra\cdots\lra\cL^q\buildo\delta^q
\over\lra\cdots$$
on a topological space $X$. We denote by $\cH^q=\cH^q(\cL^\bu)$ the
$q$-th sheaf of cohomology of this complex; thus $\cH^q$ is a sheaf of
abelian groups over $X$. Our goal is to define ``generalized
cohomology groups'' attached to $\cL^\bu$ on~$X$, in such a way
that these groups only depend on the cohomology sheaves~$\cH^q$.
For this, we associate to $\cL^\bu$ the double complex of groups
$$K_\cL^{p,q}=(\cL^q)^{[p]}(X)\leqno(12.1)$$
with differential $d'=d^p$ given by (2.5), and with $d''=(-1)^p
(\delta^q)^{[p]}$. As~$(\delta^q)^{[\bu]}:(\cL^q)^{[\bu]}\lra
(\cL^{q+1})^{[\bu]}$ is a morphism of complexes, we get the expected
relation $d'd''+d''d'=0$. 

\begstat{(12.2) Definition} The groups $H^q(K_\cL^\bu)$ are called the
hypercohomology groups of $\cL^\bu$ and are denoted $\bbbh^q(X,\cL^\bu)$.
\endstat

Clearly $\bbbh^0(X,\cL^\bu)=\cH^0(X)$ where $\cH^0=\ker\,\delta^0$ is
the first cohomology sheaf of $\cL^\bu$.
If $\varphi^\bu:\cL^\bu\lra\cM^\bu$ is a morphism of sheaf complexes, there is
an associated morphism of double complexes
$\varphi^{\bu,\bu}:K^{\bu,\bu}_\cL\lra K^{\bu,\bu}_\cM$, hence a natural
morphism
$$\bbbh^q(\varphi^\bu)~:~~\bbbh^q(X,\cL^\bu)\lra\bbbh^q(X,\cM^\bu).
\leqno(12.3)$$
We first list a few immediate properties of hypercohomology groups,
whose proofs are left to the reader.

\begstat{(12.4) Proposition} The following properties hold:
\medskip
\item{\rm a)} If $\cL^q=0$ for $q\ne 0$,
then $\bbbh^q(X,\cL^\bu)=H^q(X,\cL^0)$.
\medskip
\item{\rm b)} If $\cL^\bu[s]$ denotes the complex $\cL^\bu$ shifted
of $s$ indices to the right, i.e.\ $\cL^\bu[s]^q=\cL^{q-s}$, then
$\bbbh^q(X,\cL^\bu[s])=\bbbh^{q-s}(X,\cL^\bu)$.
\medskip
\item{\rm c)} If $0\lra\cL^\bu\lra\cM^\bu\lra\cN^\bu\lra0$ is an exact
sequence of sheaf complexes, there is a long exact sequence
$$\cdots\bbbh^q(X,\cL^\bu)\lra\bbbh^q(X,\cM^\bu)\lra\bbbh^q(X,\cN^\bu)
\buildo\partial\over\lra\bbbh^{q+1}(X,\cL^\bu)\cdots.\eqno\square$$
\smallskip
\endstat

If $\cL^\bu$ is a sheaf complex, the spectral sequence associated to the
first filtration of $K_\cL^\bu$ is given by
$$E^{p,q}_1=H^q_{d''}(K_\cL^{p,\bu})=H^q\big((\cL^\bu)^{[p]}(X)\big).$$
However by (2.9) the functor $\cA\longmapsto\cA^{[p]}(X)$ preserves
exact sequences. Therefore, we get
$$\leqalignno{
E^{p,q}_1&=\big(\cH^q(\cL^\bu)\big)^{[p]}(X),&(12.5)\cr
E^{p,q}_2&=H^p\big(X,\cH^q(\cL^\bu)\big),&(12.5')\cr}$$
since $E_2^{p,q}=H^p_{d'}(E_1^{\bu,q})$. If $\varphi^\bu:\cL^\bu\lra\cM^\bu$
is a morphism, an application of Lemma 11.10 to the $E_2$-term of the
associated first spectral sequences of $K_\cL^{\bu,\bu}$ and
$K_\cM^{\bu,\bu}$ yields:

\begstat{(12.6) Corollary} If $\varphi^\bu:\cL^\bu\lra\cM^\bu$ is a
quasi-isomorphism $\big($this means that $\varphi^\bu$ induces an
isomorphism $\cH^\bu(\cL^\bu)\lra\cH^\bu(\cM^\bu)~\big)$, then
$$\bbbh^l(\varphi^\bu)~:~~\bbbh^l(X,\cL^\bu)\lra\bbbh^l(X,\cM^\bu)$$
is an isomorphism.
\endstat

Now, we may reverse the roles of the indices $p,q$ and of the
differentials $d',d''$. The {\it second filtration} 
$F_p(K^l_\cL)=\bigoplus_{j\ge p}K_\cL^{l-j,j}$ is associated to a spectral
sequence such that $\smash{\wt E}^{p,q}_1=H^q_{d'}(K_\cL^{\bu,p})=
\smash{H^q_{d'}\big((\cL^p)^{[\bu]}(X)\big)}$, hence
$$\leqalignno{
\wt E^{p,q}_1&=H^q(X,\cL^p),&(12.7)\cr
\wt E^{p,q}_2&=H^p_{\delta}\big(H^q(X,\cL^\bu)\big).&(12.7')\cr}$$
These two spectral sequences converge to limit terms which are the graded
modules associated to filtrations of $\bbbh^\bu(X,\cL^\bu)$~; these
filtrations are in gene\-ral different.
Let us mention two interesting special cases.
\medskip
\noindent{$\bullet$} Assume first that the complex $\cL^\bu$ is a resolution
of a sheaf $\cA$, so that $\cH^0=\cA$ and $\cH^q=0$ for $q\ge 1$. 
Then we find 
$$E^{p,0}_2=H^p(X,\cA),~~~~E^{p,q}_2=0~~\hbox{\rm for}~~q\ge 1.$$
It follows that the first spectral sequence collapses in $E^\bu_2$, and
10.12 implies
$$\bbbh^l(X,\cL^\bu)\simeq H^l(X,\cA).\leqno(12.8)$$

\noindent{$\bullet$} Now, assume that the sheaves $\cL^q$ are acyclic.
The second spectral sequence gives
$$\leqalignno{
\wt E^{p,0}_2=H^p&\big(\cL^\bu(X)\big),~~~~
\wt E^{p,q}_2=0~~\hbox{\rm for}~~q\ge 1,\cr
&\bbbh^l(X,\cL^\bu)\simeq H^l\big(\cL^\bu(X)\big).&(12.9)\cr}$$

If both conditions hold, i.e.\ if $\cL^\bu$ is a resolution of a sheaf $\cA$
by acyclic sheaves, then (12.8) and (12.9) can be combined to obtain
a new proof of the De Rham-Weil isomorphism
$H^l(X,\cA)\simeq H^l\big(\cL^\bu(X)\big)$.

\titleb{13.}{Direct Images and the Leray Spectral Sequence}
\titlec{13.A.}{Direct Images of a Sheaf}
Let $X,Y$ be topological spaces, $F:X\to Y$ a continuous map and $\cA$ a sheaf
of abelian groups on $X$. Recall that the {\it direct image} $F_\star\cA$ is
the presheaf on $Y$ defined for any open set $U\subset Y$ by
$$(F_\star\cA)(U)=\cA\big(F^{-1}(U)\big).\leqno(13.1)$$
Axioms (II-$2.4'$ and (II-$2.4'')$ are clearly satisfied, thus $F_\star\cA$
is in fact a sheaf. The following result is obvious:
$$\cA~~\hbox{\rm is flabby}~~~\Longrightarrow~~~F_\star\cA~~
\hbox{\rm is flabby.}\leqno(13.2)$$
Every sheaf morphism $\varphi:\cA\to\cB$ induces a corresponding morphism 
$$F_\star\varphi~:~~F_\star\cA\lra F_\star\cB,$$
so $F_\star$ is a functor on the category of sheaves on $X$ to the category of
sheaves on $Y$. This functor is exact on the left: indeed, to every exact 
sequence\break $0\to\cA\to\cB\to\cC$ is associated an exact sequence
$$0\lra F_\star\cA\lra F_\star\cB\lra F_\star\cC,$$
but $F_\star\cB\to F_\star\cC$ need not be onto if $\cB\to\cC$ is. All this
follows immediately from the considerations of \S 3. In particular, the 
simplicial flabby resolution $(\cA^{[\bu]},d)$ yields a complex of sheaves
$$0\lra F_\star\cA^{[0]}\lra F_\star\cA^{[1]}\lra\cdots\lra
F_\star\cA^{[q]}\buildo F_\star d^q\over\lra F_\star\cA^{[q+1]}\lra\cdots.
\leqno(13.3)$$

\begstat{(13.4) Definition} The $q$-th direct image of $\cA$ by $F$ is the
$q$-th cohomology sheaf of the sheaf complex $(13.3)$. It is denoted
$$R^qF_\star\cA=\cH^q(F_\star\cA^{[\bu]}).$$
\endstat

As $F_\star$ is exact on the left, the sequence $0\to F_\star\cA\to
F_\star\cA^{[0]}\to F_\star\cA^{[1]}$ is exact, thus
$$R^0F_\star\cA=F_\star\cA.\leqno(13.5)$$
We now compute the stalks of $R^qF_\star\cA$. As the kernel or cokernel
of a sheaf morphism is obtained stalk by stalk, we have
$$(R^qF_\star\cA)_y=H^q\big((F_\star\cA^{[\bu]})_y\big)=
\lim_{\displaystyle\lra\atop\scriptstyle U\ni y}~~
H^q\big(F_\star\cA^{[\bu]}(U)\big).$$
The very definition of $F_\star$ and of sheaf cohomology groups implies
$$H^q\big(F_\star\cA^{[\bu]}(U)\big)=H^q\big(\cA^{[\bu]}(F^{-1}(U))\big)=
H^q\big(F^{-1}(U),\cA\big),$$
hence we find
$$(R^qF_\star\cA)_y=\lim_{\displaystyle\lra\atop\scriptstyle U\ni y}~~
H^q\big(F^{-1}(U),\cA\big),\leqno(13.6)$$
i.e.\, $R^qF_\star\cA$ is the sheaf associated to the presheaf
$U\mapsto H^q\big(F^{-1}(U),\cA\big)$. We~must stress here that the stronger 
relation
$R^qF_\star\cA(U)=H^q\big(F^{-1}(U),\cA\big)$ need not be true in general.
If the fiber $F^{-1}(y)$ is strongly paracompact in $X$ and if the
family of open sets $F^{-1}(U)$ is a fundamental family of
neighborhoods of $F^{-1}(y)$ (this situation occurs for example if
$X$ and $Y$ are locally compact spaces and $F$ a proper map, or if
$F=\pr_1:X=Y\times S\lra Y$ where $S$ is compact), Th. 9.10
implies the more natural relation
$$(R^qF_\star\cA)_y=H^q\big(F^{-1}(y),\cA\big).\leqno(13.6')$$

Let $0\to\cA\to\cB\to\cC\to 0$ be an exact sequence of sheaves on $X$.
Apply the long exact sequence of cohomology on every open set $F^{-1}(U)$
and take the direct limit over~$U$. We get an exact sequence of sheaves:
$$\cmalign{
&~~~0&\lra~~F_\star\cA&\lra~~F_\star\cB&\lra~~F_\star\cC&\lra~~
R^1F_\star\cA&\lra\cdots\cr
&\cdots&\lra R^qF_\star\cA&\lra R^q F_\star\cB&\lra R^q F_\star\cC&\lra
R^{q+1}F_\star\cA&\lra\cdots.\cr}\leqno(13.7)$$

\titlec{13.B.}{Leray Spectral Sequence}
For any continuous map~$F:X\to Y$, the Leray spectral sequence relates
the cohomology groups of a sheaf $\cA$ on $X$ and those of its direct
images $R^qF_\star\cA$ on~$Y$. Consider the two spectral
sequences $E^\bu_r$, $\wt E^\bu_r$ associated with the complex of sheaves
$\cL^\bu=F_\star\cA^{[\bu]}$ on~$Y$, as in \S~12. By definition we have
$\cH^q(\cL^\bu)=R^qF_\star\cA$. By $(12.5')$ the second term of the first
spectral sequence is
$$E^{p,q}_2=H^p(Y,R^qF_\star\cA),$$
and this spectral sequence converges to the graded module associated
to a filtration of $\bbbh^l(Y,F_\star\cA^{[\bu]})$.
On the other hand, (13.2) implies that $F_\star\cA^{[q]}$ is flabby. 
Hence, the second special case (12.9) can be applied:
$$\bbbh^l(Y,F_\star\cA^{[\bu]})\simeq H^l\big(F_\star\cA^{[\bu]}(Y)\big)
=H^l\big(\cA^{[\bu]}(X)\big)=H^l(X,\cA).$$
We may conclude this discussion by the following

\begstat{(13.8) Theorem} For any continuous map $F:X\to Y$ and any
sheaf $\cA$ of abelian groups on $X$, there exists a spectral sequence
whose $E^\bu_2$ term is
$$E_2^{p,q}=H^p(Y,R^qF_\star\cA),$$
which converges to a limit term $E^{p,l-p}_\infty$ equal to the graded 
module associated with a filtration of $H^l(X,\cA)$. The edge homomorphism
$$H^l(Y,F_\star\cA)\lraww E^{l,0}_\infty\lhra H^l(X,\cA)$$
coincides with the composite morphism
$$F^{\#}:~~H^l(Y,F_\star\cA)\buildo F^\star\over\lra H^l(X,F^{-1}F_\star\cA)
\buildo H^l(\mu_F)\over{\relbar\joinrel\relbar\joinrel\lra} H^l(X,\cA)$$
where $\mu_F:F^{-1}F_\star\cA\lra\cA$ is the canonical sheaf morphism.
\endstat

\begproof{} Only the last statement remains to be proved. The morphism
$\mu_F$ is defined as follows: every element $s\in (F^{-1}F_\star\cA)_x=
(F_\star\cA)_{F(x)}$ is the germ of a section 
$\wt s\in F_\star\cA(V)=\cA\big(F^{-1}(V)\big)$ on a neighborhood
$V$ of $F(x)$. Then $F^{-1}(V)$ is a neighborhood of $x$ and we let
$\mu_F s$ be the germ of $\wt s$ at $x$.

Now, we observe that to any commutative diagram of topological spaces
and continuous maps is associated a commutative diagram involving the
direct image sheaves and their cohomology groups:
$$\cmalign{
\hfill X&\buildo F\over\lra&Y\kern80pt\hfill
H^l(X,\cA)&\buildo~~F^\#\over\longleftarrow &H^l(Y,F_\star\cA)\cr
{\scriptstyle G}\big\downarrow&&\big\downarrow{\scriptstyle H}\hfill
{\scriptstyle G^\#}\big\uparrow\qquad&&\qquad\big\uparrow
{\scriptstyle H^\#}\cr
\hfill X'&\buildo F'\over\lra&Y'\hfill
H^l(X',G_\star\cA)&\buildo~~F^{\prime\#}\over\longleftarrow 
&H^l(Y',F'_\star G_\star\cA).\cr}$$
There is a similar commutative diagram in which $F^\#$ and $F^{\prime\#}$ are
replaced by the edge homomorphisms of the spectral sequences of
$F$ and $F'$~: indeed there is a natural morphism
$H^{-1}F'_\star\cB\lra F_\star G^{-1}\cB$ for any sheaf $\cB$ on $X'$,
so we get a morphism of sheaf complexes
$$H^{-1}F'_\star(G_\star\cA)^{[\bu]}\lra
F_\star G^{-1}(G_\star\cA)^{[\bu]}\lra
F_\star(G^{-1}G_\star\cA)^{[\bu]}\lra F_\star\cA^{[\bu]},$$
hence also a morphism of the spectral sequences associated to both ends.

The special case $X'=Y'=Y$, $G=F$, $F'=H=\Id_Y$ then shows
that our statement is true for $F$ if it is true for $F'$. Hence
we may assume that $F$ is the identity map; in this case, we need
only show that the edge homomorphism of the spectral sequence of
$F_\star\cA^{[\bu]}=\cA^{[\bu]}$ is the identity map. This is an 
immediate consequence of the fact that we have a quasi-isomorphism 
$$(\cdots\to 0\to\cA\to 0\to\cdots)\lra\cA^{[\bu]}.\eqno\square$$
\endproof

\begstat{(13.9) Corollary} If $R^qF_\star\cA=0$ for $q\ge 1$, there is
an isomorphism $H^l(Y,F_\star\cA)\simeq H^l(X,\cA)$ induced
by $F^{\#}$.
\endstat

\begproof{} We are in the special case 10.12 with $E^{p,q}_2=0$ for $q\ne 0$, so
$$H^l(Y,F_\star\cA)=E^{l,0}_2\simeq H^l(X,\cA).\eqno\square$$
\endproof

\begstat{(13.10) Corollary} Let $F:X\lra Y$ be a proper finite-to-one map.
For any sheaf $\cA$ on $X$, we have $R^qF_\star\cA=0$ for $q\ge 1$ 
and there is an isomorphism $H^l(Y,F_\star\cA)\simeq H^l(X,\cA)$.
\endstat

\begproof{} By definition of higher direct images, we have
$$(R^qF_\star\cA)_y=\lim_{\displaystyle\,\lra\atop\scriptstyle{U\ni y}}
~~H^q\big(\cA^{[\bu]}\big(F^{-1}(U)\big)\big).$$
If $F^{-1}(y)=\{x_1\ld x_m\}$, the assumptions imply that
$\big(F^{-1}(U)\big)$ is a fundamental system of neighborhoods of
$\{x_1\ld x_m\}$. Therefore
$$(R^qF_\star\cA)_y=\bigoplus_{1\le j\le m}H^q\big(\cA^{[\bu]}_{x_j}\big)
=\cases{\bigoplus\cA_{x_j}&for~~$q=0$,\cr 0&for~~$q\ge 1$,\cr}$$
and we conclude by Cor.\ 13.9.\qed
\endproof

Corollary 13.10 can be applied in particular to the inclusion
$j:S\to X$ of a {\it closed} subspace $S$. Then $j_\star\cA$ coincides
with the sheaf $\cA^S$ defined in \S 3 and we get
$H^q(S,\cA)=H^q(X,\cA^S)$. It is very important to observe that the
property $R^qj_\star\cA=0$ for $q\ge 1$ need not be true if $S$
is not closed.

\titlec{13.C.}{Topological Dimension}
As a first application of the Leray spectral sequence, we are going to 
derive some properties related to the concept of {\it topological dimension}.

\begstat{(13.11) Definition} A non empty space $X$ is said to be of topological
dimension $\le n$ if $H^q(X,\cA)=0$ for any $q>n$ and any sheaf $\cA$ on $X$.
We let $\topdim X$ be the smallest such integer $n$ if it exists, and
$+\infty$ otherwise.
\endstat
  
\begstat{(13.12) Criterion} For a paracompact space $X$, the following 
conditions are equivalent:
\medskip
\item{\rm a)} $\topdim X\le n~;$
\medskip
\item{\rm b)} the sheaf $\cZ^n=\ker(\cA^{[n]}\lra\cA^{[n+1]})$
is soft for every sheaf $\cA~;$
\medskip
\item{\rm c)} every sheaf $\cA$ admits a resolution $0\to\cL^0\to\cdots
\to\cL^n\to 0$ of length $n$ by soft sheaves.\smallskip
\endstat

\begproof{} b) $\Longrightarrow$ c). Take $\cL^q=\cA^{[q]}$ for $q<n$ and
$\cL^n=\cZ^n$.
\medskip
\noindent{c)} $\Longrightarrow$ a). For every sheaf $\cA$, 
the De Rham-Weil isomorphism implies $H^q(X,\cA)=H^q\big(\cL^\bu(X)\big)=0$
when $q>n$.
\medskip
\noindent{a)} $\Longrightarrow$ b). Let $S$ be a closed set and 
$U=X\ssm S$. As in Prop.\ 7.12,
$(\cA^{[\bu]})_U$ is an acyclic resolution of $\cA_U$. Clearly
$\ker\big((\cA^{[n]})_U\to(\cA^{[n+1]})_U\big)=\cZ^n_U$, so the isomorphisms
(6.2) obtained in the proof of the De Rham-Weil theorem imply
$$H^1(X,\cZ^n_U)\simeq H^{n+1}(X,\cA_U)=0.$$
By (3.10), the restriction map $\cZ^n(X)\lra\cZ^n(S)$ is onto, so
$\cZ^n$ is soft.\qed
\endproof

\begstat{(13.13) Theorem} The following properties hold:
\medskip
\item{\rm a)} If $X$ is paracompact and if every point of $X$ has 
a neighborhood of topological dimension $\le n$, then $\topdim X\le n$.
\medskip
\item{\rm b)} If $S\subset X$, then $\topdim S\le \topdim X$
provided that $S$ is closed or $X$ metrizable.
\medskip
\item{\rm c)}If $X,Y$ are metrizable spaces, one of them locally 
compact, then 
$$\topdim(X\times Y)\le\topdim X+\topdim Y.$$
\item{\rm d)} If $X$ is metrizable and locally homeomorphic to a
subspace of $\bbbr^n$, then $\topdim X\le n$.\smallskip
\endstat

\begproof{} a) Apply criterion 13.12~b) and the fact that softness is a local 
property (Prop.\ 4.12).
\medskip
\noindent{b)} When $S$ is closed in $X$, the property follows from Cor.\ 13.10.
When $X$ is metrizable, any subset $S$ is strongly paracompact. Let 
$j:S\lra X$ be the injection and $\cA$ a sheaf on $S$.
As $\cA=(j_\star\cA)_{\restriction S}$, we have
$$H^q(S,\cA)=H^q(S,j_\star\cA)=
\lim_{\displaystyle\lra\atop\scriptstyle\Omega\supset S}H^q(\Omega,
j_\star\cA)$$
by Th. 9.10. We may therefore assume that $S$ is open in $X$.
Then every point of $S$ has a neighborhood which is closed in
$X$, so we conclude by a) and the first case of~b).
\medskip
\noindent{c)} Thanks to a) and b), we may assume for example that $X$ is compact.
Let $\cA$ be a sheaf on $X\times Y$ and $\pi:X\times Y\lra Y$ the
second projection. Set $n_X=\topdim X$, $n_Y=\topdim Y$.
In virtue of $(13.6')$, we have $R^q\pi_\star\cA=0$ for $q>n_X$.
In the Leray spectral sequence, we obtain therefore
$$E^{p,q}_2=H^p(Y,R^q\pi_\star\cA)=0~~~\hbox{\rm for}~~p>n_Y~~\hbox{\rm or}~~
q>n_X,$$
thus $E^{p,l-p}_\infty=0$ when $l>n_X+n_Y$ and we infer
$H^l(X\times Y,\cA)=0$.
\medskip
\noindent{d)} The unit interval $[0,1]\subset\bbbr$ is of topological dimension 
$\le 1$, because $[0,1]$ admits arbitrarily fine coverings
$$\cU_k=\big(~[0,1]~\cap~](\alpha-1)/k,(\alpha+1)/k[~\big)_{0\le \alpha\le k}
\leqno(13.14)$$
for which only consecutive open sets $U_\alpha$, $U_{\alpha+1}$ intersect;
we may therefore apply Prop.\ 5.24. 
Hence $\bbbr^n\simeq~]0,1[^n\subset[0,1]^n$ is
of topological dimension $\le n$ by b) and c). Property d) follows.\qed
\endproof

\titleb{14.}{Alexander-Spanier Cohomology}
\titlec{14.A.}{Invariance by Homotopy}
Alexander-Spanier's theory can be viewed as the special case of
sheaf cohomology theory with {\it constant coefficients}, i.e.\ with
values in constant sheaves.

\begstat{(14.1) Definition} Let $X$ be a topological space,
$R$ a commutative ring and $M$ a $R$-module. 
The constant sheaf $X\times M$ is denoted $M$ for simplicity. 
The Alexander-Spanier $q$-th cohomology group with
values in $M$ is the sheaf cohomology group $H^q(X,M)$.
\endstat

In particular $H^0(X,M)$ is the set of locally constant functions $X\to M$,
so $H^0(X,M)\simeq M^E$, where $E$ is the set of connected components of
$X$. We will not repeat here the properties of Alexander-Spanier
cohomology groups that are formal consequences of those of
general sheaf theory, but we focus our attention instead on new features,
such as invariance by homotopy.

\begstat{(14.2) Lemma} Let $I$ denote the interval $[0,1]$ of real numbers.
Then $H^0(I,M)=M$ and $H^q(I,M)=0$ for $q\ne 0$.
\endstat

\begproof{} Let us employ alternate \v Cech cochains for the coverings $\cU_n$
defined in (13.14). As $I$ is paracompact, we have
$$H^q(I,M)=\lim_{\displaystyle\lra}~~\check H^q(\cU_n,M).$$
However, the alternate \v Cech complex has only two non zero components
and one non zero differential:
$$\eqalign{
&AC^0(\cU_n,M)=\big\{(c_\alpha)_{0\le\alpha\le n}\big\}=M^{n+1},\cr
&AC^1(\cU_n,M)=\big\{(c_{\alpha\,\alpha+1})_{0\le\alpha\le n-1}\big\}=M^n,\cr
&d^0:(c_\alpha)\longmapsto(c'_{\alpha\,\alpha+1})=(c_{\alpha+1}-c_\alpha).
\cr}$$
We see that $d^0$ is surjective, and 
that $\ker d^0=\big\{(m,m\ld m)\big\}=M$.\qed
\endproof

For any continuous map $f:X\lra Y$, the inverse image of the constant sheaf
$M$ on $Y$ is $f^{-1}M=M$. We get therefore a morphism
$$f^\star: H^q(Y,M)\lra H^q(X,M),\leqno(14.3)$$
which, as already mentioned in \S 9, is compatible with cup product. 

\begstat{(14.4) Proposition} For any space $X$, the projection 
$\pi:X\times I\lra X$ and the injections $i_t:X\lra X\times I$,
$x\longmapsto (x,t)$ induce inverse isomorphisms
$$H^q(X,M)~{\raise-4pt\hbox{
$\scriptstyle\pi^\star\atop\displaystyle\relbar\joinrel\lra$}
\atop\raise4pt\hbox{
$\displaystyle\longleftarrow\joinrel\relbar\atop\scriptstyle i_t^\star$}}
~H^q(X\times I,M).$$
In particular, $i_t^\star$ does not depend on $t$.
\endstat

\begproof{} As $\pi\circ i_t=\Id$, we have $i_t^\star\circ\pi^\star=
\Id$, so it is sufficient to check that $\pi^\star$ is an isomorphism.
However $(R^q\pi_\star M)_x=H^q(I,M)$ in virtue of $(13.6')$, so we get
$$R^0\pi_\star M=M,~~~~R^q\pi_\star M=0~~~\hbox{\rm for}~~q\ne 0$$
and conclude by Cor.\ 13.9.\qed
\endproof

\begstat{(14.4) Theorem} If $f,g:X\lra Y$ are homotopic maps, then
$$f^\star=g^\star:H^q(Y,M)\lra H^q(X,M).$$
\endstat

\begproof{} Let $H:X\times I\lra Y$ be a homotopy between $f$ and $g$, with
$f=H\circ i_0$ and $g=H\circ i_1$. Proposition 14.3 implies
$$f^\star=i_0^\star\circ H^\star=i_1^\star\circ H^\star=g^\star.\eqno\square$$
\endproof

We denote $f\sim g$ the homotopy equivalence relation. Two spaces $X,Y$
are said to be homotopically equivalent ($X\sim Y$) if there exist
continuous maps $u:X\lra Y$, $v:Y\lra X$ such that $v\circ u\sim\Id_X$
and $u\circ v\sim\Id_Y$. Then $H^q(X,M)\simeq H^q(Y,M)$ and $u^\star,
v^\star$ are inverse isomorphisms.

\begstat{(14.5) Example} \rm A subspace $S\subset X$ is said to be a $($strong$)$
deformation retract of $X$ if there exists a {\it retraction} of $X$ onto $S$,
i.e.\ a map $r:X\lra S$ such that $r\circ j=\Id_S$ ($j=$
inclusion of $S$ in $X$), which is a {\it deformation} of $\Id_X$, i.e.\
there exists a homotopy $H:X\times I\lra X$ relative to $S$
between $\Id_X$ and $j\circ r$~:
$$H(x,0)=x,~~H(x,1)=r(x)~~\hbox{\rm on}~~X,~~~~H(x,t)=x~~\hbox{\rm on}~~S\times I.$$
Then $X$ and $S$ are homotopically equivalent. In particular $X$ is
said to be {\it contractible} if $X$ has a deformation retraction onto
a point $x_0$. In this case
$$H^q(X,M)=H^q(\{x_0\},M)=\cases{M&for $q=0$\cr 0&for $q\ne 0$.}$$
\endstat

\begstat{(14.6) Corollary} If $X$ is a compact differentiable manifold,
the cohomology groups $H^q(X,R)$ are finitely generated over $R$.
\endstat

\begproof{} Lemma 6.9 shows that $X$ has a finite covering $\cU$ such that
the intersections $U_{\alpha_0\ldots\alpha_q}$ are contractible. Hence
$\cU$ is acyclic, $H^q(X,R)=H^q\big(C^\bu(\cU,R)\big)$ and
each \v Cech cochain space is a finitely generated (free) module.\qed
\endproof

\begstat{(14.7) Example: Cohomology Groups of Spheres} \rm Set
$$S^n=\big\{x\in\bbbr^{n+1}~;~x_0^2+x_1^2+\ldots+x_n^2=1\big\},~~~n\ge 1.$$
We will prove by induction on $n$ that
$$H^q(S^n,M)=\cases{M&for $q=0$ or $q=n$\cr 0&otherwise.\cr}\leqno(14.8)$$
As $S^n$ is connected, we have $H^0(S^n,M)=M$. In order to compute the
higher cohomology groups, we apply the Mayer-Vietoris exact sequence 3.11
to the covering $(U_1,U_2)$ with
$$U_1=S^n\ssm\{(-1,0\ld 0)\},~~~~U_2=S^n\ssm\{(1,0\ld 0)\}.$$
Then $U_1,U_2\approx\bbbr^n$ are contractible, and $U_1\cap U_2$ can be
retracted by deformation on the equator $S^n\cap\{x_0=0\}\approx S^{n-1}$.
Omitting $M$ in the notations of cohomology groups, we get exact sequences
$$\leqalignno{&~~~~~~
H^0(U_1)\oplus H^0(U_2)\lra H^0(U_1\cap U_2)\lra H^1(S^n)\lra 0,&(14.9')\cr
&~~~~~~0\lra H^{q-1}(U_1\cap U_2)\lra H^q(S^n)\lra 0,~~~q\ge 2.
&(14.9'')\cr}$$
For $n=1$, $U_1\cap U_2$ consists of two open arcs, so we have
$$H^0(U_1)\oplus H^0(U_2)= H^0(U_1\cap U_2)=M\times M,$$
and the first arrow in $(14.9')$ is $(m_1,m_2)\longmapsto(m_2-m_1,m_2-m_1)$.
We infer easily that $H^1(S^1)=M$ and that 
$$H^q(S^1)=H^{q-1}(U_1\cap U_2)=0~~~\hbox{\rm for}~~q\ge 2.$$
For $n\ge 2$, $U_1\cap U_2$ is connected, so the first arrow in $(14.9')$ 
is onto and $H^1(S^n)=0$. The second sequence $(14.9'')$ yields
$H^q(S^n)\simeq H^{q-1}(S^{n-1})$.
An induction concludes the proof.\qed
\endstat

\titlec{14.B.}{Relative Cohomology Groups and Excision Theorem}
Let $X$ be a topological space and $S$ a subspace. We denote by $M^{[q]}(X,S)$
the subgroup of sections $u\in M^{[q]}(X)$ such that $u(x_0\ld x_q)=0$ when
$$(x_0\ld x_q)\in S^q,~~~x_1\in V(x_0),~\ldots,~x_q\in V(x_0\ld x_{q-1}).
$$
Then $M^{[\bu]}(X,S)$ is a subcomplex of $M^{[\bu]}(X)$
and we define the {\it relative cohomology group} of the pair $(X,S)$ with 
values in $M$ as
$$H^q(X,S\,;\,M)=H^q\big(M^{[\bu]}(X,S)\big).\leqno(14.10)$$
By definition of $M^{[q]}(X,S)$, there is an exact sequence
$$0\lra M^{[q]}(X,S)\lra M^{[q]}(X)\lra(M_{\restriction S})^{[q]}(S)\lra 0.
\leqno(14.11)$$
The reader should take care of the fact that $(M_{\restriction S})^{[q]}(S)$
does not coincide with the module of sections $M^{[q]}(S)$ of the sheaf 
$M^{[q]}$ on $X$, except if $S$ is open. The snake lemma shows that there 
is an ``exact sequence of the pair":
$$(14.12)~~H^q(X,S\,;\,M)\to H^q(X,M)\to H^q(S,M)\to H^{q+1}(X,S\,;\,M)
\cdots.$$
We have in particular $H^0(X,S\,;\,M)=M^E$, where $E$ is the set of
connected components of $X$ which do not meet $S$.
More generally, for a triple $(X,S,T)$ with $X\supset S\supset T$, there is
an ``exact sequence of the triple":
$$\leqalignno{
0&\lra M^{[q]}(X,S)\lra M^{[q]}(X,T)\lra M^{[q]}(S,T)\lra 0,&(14.12')\cr
~~~~H^q(X,S\,;\,&M)\lra H^q(X,T\,;\,M)\lra H^q(S,T\,;\,M)\lra
H^{q+1}(X,S\,;\,M).\cr}$$
The definition of the cup product in (8.2) shows that $\alpha\smallsmile
\beta$ vanishes on $S\cup S'$ if $\alpha,\beta$ vanish on $S$, $S'$ 
respectively. Therefore, we obtain a bilinear map
$$H^p(X,S\,;\,M)\times H^q(X,S'\,;\,M')\lra
H^{p+q}(X,S\cup S'\,;\,M\otimes M').\leqno(14.13)$$
If $f:(X,S)\lra(Y,T)$ is a morphism of pairs, i.e.\ a continuous map $X\to Y$
such that $f(S)\subset T$, there is an induced pull-back morphism
$$f^\star:~~H^q(Y,T\,;\,M)\lra H^q(X,S\,;\,M)\leqno(14.14)$$
which is compatible with the cup product. Two morphisms of pairs
$f,g$ are said to be homotopic when there is a pair homotopy
$H:(X\times I,S\times I)\lra(Y,T)$. An application of the exact sequence
of the pair shows that 
$$\pi^\star:H^q(X,S\,;\,M)\lra H^q(X\times I,S\times I\,;\,M)$$
is an isomorphism. It follows as above that $f^\star=g^\star$ as soon
as $f,g$ are homotopic.

\begstat{(14.15) Excision theorem} For subspaces
$\ovl T\subset S^\circ$ of $X$,
the restriction morphism 
$H^q(X,S\,;\,M)\lra H^q(X\ssm T,S\ssm T\,;\,M)$
is an isomorphism.
\endstat

\begproof{} Under our assumption, it is not difficult to check that the 
surjective restriction map $M^{[q]}(X,S)\lra M^{[q]}(X\ssm T,
S\ssm T)$ is also injective, because the kernel consists
of sections $u\in M^{[q]}(X)$ such that $u(x_0\ld x_q)=0$
on $(X\ssm T)^{q+1}\cup S^{q+1}$, and this set is a neighborhood
of the diagonal of $X^{q+1}$.\qed
\endproof

\begstat{(14.16) Proposition} If $S$ is open or strongly paracompact
in $X$, the relative cohomology groups can be written in terms of
cohomology groups with supports in $X\ssm S\,$:
$$H^q(X,S\,;\,M)\simeq H^q_{X\ssm S}(X,M).$$
In particular, if $X\ssm S$ is relatively compact in $X$, we have
$$H^q(X,S\,;\,M)\simeq H^q_c(X\ssm S,M).$$
\endstat

\begproof{} We have an exact sequence
$$0\lra M^{[\bu]}_{X\ssm S}(X)\lra M^{[\bu]}(X)\lra
M^{[\bu]}(S)\lra 0\leqno(14.17)$$
where $M^{[\bu]}_{X\ssm S}(X)$ denotes sections with support
in $X\ssm S$.
If $S$ is open, then $M^{[\bu]}(S)=(M_{\restriction S})^{[\bu]}(S)$,
hence $M^{[\bu]}_{X\ssm S}(X)=M^{[\bu]}(X,S)$
and the result follows. If $S$ is strongly paracompact, Prop.\ 4.7 
and Th. 9.10 show that
$$H^q\big(M^{[\bu]}(S)\big)=H^q\big(
\lim_{\displaystyle\lra\atop\scriptstyle\Omega\supset S}M^{[\bu]}(\Omega)\big)
=\lim_{\displaystyle\lra\atop\scriptstyle\Omega\supset S}H^q(\Omega,M)
=H^q(S,M_{\restriction S}).$$
If we consider the diagram
$$\cmalign{
0&\lra&M^{[\bu]}_{X\ssm S}(X)&\lra&M^{[\bu]}(X)&\lra
&M^{[\bu]}(S)&\lra 0\cr
&&~~~~~~\big\downarrow&&~~~\big\downarrow \Id&&~~~\big\downarrow
\restriction S&\cr
0&\lra&M^{[\bu]}(X,S)&\lra&M^{[\bu]}(X)&\lra
&(M_{\restriction S})^{[\bu]}(S)&\lra 0\cr}$$
we see that the last two vertical arrows induce isomorphisms in cohomology.
Therefore, the first one also does.\qed
\endproof

\begstat{(14.18) Corollary} Let $X,Y$ be locally compact spaces and
\hbox{$f,g:X\to Y$} proper maps. We say that $f,g$ are properly homotopic
if they are homotopic through a proper homotopy $H:X\times I\lra Y$. Then
$$f^\star=g^\star~:~~H^q_c(Y,M)\lra H^q_c(X,M).$$
\endstat

\begproof{} Let $\wh X=X\cup\{\infty\}$, $\wh Y=Y\cup\{\infty\}$ be the Alexandrov
compactifications of $X$, $Y$. Then $f,g,H$ can be extended as
continuous maps
$$\wh f,\wh g~:~~\wh X\lra\wh Y,~~~~\wh H~:~~\wh X\times I\lra\wh Y$$
with $\wh f(\infty)=\wh g(\infty)=H(\infty,t)=\infty$, so that
$\wh f,\wh g$ are homotopic as maps $(\wh X,\infty)\lra (\wh Y,\infty)$.
Proposition 14.16 implies $H^q_c(X,M)=H^q(\wt X,\infty\,;\,M)$
and the result follows.\qed
\endproof

\titleb{15.}{K\"unneth Formula}
\titlec{15.A.}{Flat Modules and Tor Functors}
The goal of this section is to investigate homological properties
related to tensor products. We work in the category of modules 
over a commutative ring $R$ with unit. All tensor products appearing 
here are tensor products over $R$. The starting point is the observation
that tensor product
with a given module is a right exact functor: if $0\to A\to B\to C\to 0$
is an exact sequence and $M$ a $R$-module, then
$$A\otimes M\lra B\otimes M\lra C\otimes M\lra 0$$
is exact, but the map $A\otimes M\lra B\otimes M$ need not be injective.
A counterexample is given by the sequence
$$0\lra\bbbz\buildo 2\times\over\lra\bbbz\lra\bbbz/2\bbbz\lra0~~~~\hbox{\rm over}~~R=\bbbz$$
tensorized by $M=\bbbz/2\bbbz$. However, the injectivity holds if $M$ is a
free\break $R$-module. More generally, one says that $M$ is a {\it flat
$R$-module} if the tensor product by $M$ preserves injectivity,
or equivalently, if $\otimes M$ is a left exact functor.

A {\it flat resolution} $C_\bu$ of a $R$-module $A$ is a homology
exact sequence
$$\cdots\lra C_q\lra C_{q-1}\lra\cdots\lra C_1\lra C_0\lra A\lra 0$$
where $C_q$ are flat $R$-modules and $C_q=0$ for $q<0$. Such a resolution
always exists because every module $A$ is a quotient of a free module
$C_0$. Inductively, we take $C_{q+1}$ to be a free module such that
$\ker(C_q\to C_{q-1})$ is a quotient of $C_{q+1}$.
In terms of homology groups, we have $H_0(C_\bu)=A$ and $H_q(C_\bu)=0$
for $q\ne 0$. Given $R$-modules $A,B$ and free resolutions
$d':C_\bu\lra A$, $d'':D_\bu\lra B$, we consider the double homology complex
$$K_{p,q}=C_p\otimes D_q,~~~~d=d'\otimes\Id+(-1)^p\Id\otimes d''$$
and the associated first and second spectral sequences. Since
$C_p$ is free, we have
$$E^1_{p,q}=H_q(C_p\otimes D_\bu)=\cases{C_p\otimes B&for~~$q=0$,\cr
0&for~~$q\ne0$.\cr}$$
Similarly, the second spectral sequence also collapses and we have
$$H_l(K_\bu)=H_l(C_\bu\otimes B)=H_l(A\otimes D_\bu).$$
This implies in particular that the homology groups $H_l(K_\bu)$ do not 
depend on the choice of the resolutions $C_\bu$ or $D_\bu$.

\begstat{(15.1) Definition} The $q$-th torsion module of $A$ and $B$ is
$$\Tor_q(A,B)=H_q(K_\bu)=H_q(C_\bu\otimes B)=H_q(A\otimes D_\bu).$$
\endstat

Since the definition of $K_\bu$ is symmetric with respect to $A$ and $B$,
we have $\Tor_q(A,B)\simeq\Tor_q(B,A)$. By the right-exactness of 
$\otimes B$, we find in particular $\Tor_0(A,B)=A\otimes B$. 
Moreover, if $B$ is flat, $\otimes B$ is also left exact, thus 
$\Tor_q(A,B)=0$ for all $q\ge 1$ and all modules $A$. If 
$0\to A\to A'\to A''\to 0$ is an exact sequence,
there is a corresponding exact sequence of homology complexes
$$0\lra A\otimes D_\bu\lra A'\otimes D_\bu\lra A''\otimes D_\bu\lra 0,$$
thus a long exact sequence
$$\cmalign{
&\lra\Tor_q(A,B)&\lra\Tor_q(A',B)&\lra\Tor_q(A'',B)&\lra
\Tor_{q-1}(A,B)\cr
\hfill\cdots&\lra~~~A\otimes B&\lra~~~A'\otimes B&\lra~~~A''\otimes B
&\lra~~~0.\cr}\leqno(15.2)$$
It follows that $B$ is flat if and only if $\Tor_1(A,B)=0$ for
every $R$-module $A$.

Suppose now that $R$ is a {\it principal ring}. Then
every module $A$ has a free resolution $0\to C_1\to C_0\to A\to 0$
because the kernel of any surjective map $C_0\to A$ is free
(every submodule of a free module is free). It follows
that one always has $\Tor_q(A,B)=0$ for $q\ge 2$. In this case,
we denote $\Tor_1(A,B)=A\star B$ and call it the {\it torsion product}
of $A$ and $B$. The above exact sequence (15.2) reduces to
$$0\to A\star B\to A'\star B\to A''\star B\to A\otimes B\to A'\otimes B\to
A''\otimes B\to 0.\leqno(15.3)$$
In order to compute $A\star B$, we may restrict
ourselves to finitely generated modules, because every module is
a direct limit of such modules and the $\star$ product commutes
with direct limits. Over a principal ring $R$,
every finitely generated module is a direct sum of a free module
and of cyclic modules $R/aR$. It is thus sufficient to compute
$R/aR\star R/bR$. The obvious free resolution
$\smash{R\buildo a\times\over\lra R}$ of $R/aR$ shows that $R/aR\star R/bR$
is  the kernel of the map $\smash{R/bR\buildo a\times\over\lra R/bR}$. Hence
$$R/aR\star R/bR\simeq R/(a\wedge b)R\leqno(15.4)$$
where $a\wedge b$ denotes the greatest common divisor of $a$ and $b$.
It follows that a module $B$ is flat if and only if it is torsion free.
If $R$ is a field, every $R$-module is free, thus $A\star B=0$ for
all $A$ and $B$.

\titlec{15.B.}{K\"unneth and Universal Coefficient Formulas}
The algebraic K\"unneth formula describes the cohomology groups of the
tensor product of two differential complexes.

\begstat{(15.5) Algebraic K\"unneth formula} Let $(K^\bu,d')$,
$(L^\bu,d'')$ be complexes of $R$-modules and
$(K\otimes L)^\bu$ the simple complex associated to the double complex
$(K\otimes L)^{p,q}=K^p\otimes L^q$. If $K^\bu$ or $L^\bu$ is torsion free,
there is a split exact sequence
$$0\to\bigoplus_{p+q=l}H^p(K^\bu)\otimes H^q(L^\bu)\buildo\mu\over\to 
H^l\big((K\otimes L)^\bu\big)\to\bigoplus_{p+q=l+1}H^p(K^\bu)\star
\buildu{\displaystyle\to 0\phantom{\Big|}}\under{H^q(L^\bu)}$$
where the map $\mu$ is defined by $\mu(\{k^p\}\times\{l^q\})=\{k^p\otimes
l^q\}$ for all cocycles $\{k^p\}\in H^p(K^\bu)$, $\{l^q\}\in H^q(L^\bu)$.
\endstat

\begstat{(15.6) Corollary} If $R$ is a field, or if one of the graded modules
$H^\bu(K^\bu)$, $H^\bu(L^\bu)$ is torsion free, then
$$H^l\big((K\otimes L)^\bu\big)\simeq\bigoplus_{p+q=l}H^p(K^\bu)\otimes
H^q(L^\bu).$$
\endstat

\begproof{} Assume for example that $K^\bu$ is torsion free.
There is a short exact sequence of complexes
$$0\lra Z^\bu\lra K^\bu\buildo d'\over\lra B^{\bu+1}\lra 0$$
where $Z^\bu,B^\bu\subset K^\bu$ are respectively the graded modules of
cocycles and coboundaries in $K^\bu$, considered as subcomplexes with
zero differential. As $B^{\bu+1}$ is torsion free, the tensor product of
the above sequence with $L^\bu$ is still exact. The corresponding long exact 
sequence for the associated simple complexes yields:
$$\leqalignno{
H^l\big((B\otimes L)^\bu\big)&\lra H^l\big((Z\otimes L)^\bu\big)\lra
H^l\big((K\otimes L)^\bu\big)\buildo d'\over\lra H^{l+1}
\big((B\otimes L)^\bu\big)\cr
&\lra H^{l+1}\big((Z\otimes L)^\bu\big)\cdots.&(15.7)\cr}$$
The first and last arrows are connecting homomorphisms; in this situation, 
they are easily seen to be induced by the inclusion $B^\bu\subset Z^\bu$.
Since the differential of $Z^\bu$ is zero, the simple complex 
$(Z\otimes L)^\bu$ is isomorphic to the direct sum $\bigoplus_p Z^p\otimes
L^{\bu-p}$, where $Z^p$ is torsion free. Similar properties hold for 
$(B\otimes L)^\bu$, hence
$$H^l\big((Z\otimes L)^\bu\big)=\bigoplus_{p+q=l}Z^p\otimes H^q(L^\bu),~~~~
H^l\big((B\otimes L)^\bu\big)=\bigoplus_{p+q=l}B^p\otimes H^q(L^\bu).$$
The exact sequence
$$0\lra B^p\lra Z^p\lra H^p(K^\bu)\lra 0$$
tensorized by $H^q(L^\bu)$ yields an exact sequence of the type (15.3):
$$\eqalign{
0\to H^p(K^\bu)\star H^q(L^\bu)\to B^p\otimes&H^q(L^\bu)\to Z^p\otimes
H^q(L^\bu)\cr
&\to H^p(K^\bu)\otimes H^q(L^\bu)\to 0.\cr}$$
By the above equalities, we get
$$\eqalign{
0\lra\bigoplus_{p+q=l}H^p(K^\bu)\star H^q&(L^\bu)\lra
H^l\big((B\otimes L)^\bu\big)\lra H^l\big((Z\otimes L)^\bu\big)\cr
&\lra\bigoplus_{p+q=l}H^p(K^\bu)\otimes H^q(L^\bu)\lra 0.\cr}$$
In our initial long exact sequence (15.7), the cokernel of the first
arrow is thus $\bigoplus_{p+q=l}H^p(K^\bu)\otimes H^q(L^\bu)$ and the kernel
of the last arrow is the torsion sum
$\bigoplus_{p+q=l+1}H^p(K^\bu)\star H^q(L^\bu)$.
This gives the exact sequence of the lemma. We leave the computation of the
map $\mu$ as an exercise for the reader. The splitting assertion
can be obtained by observing that there always exists a torsion free complex 
$\wt K^\bu$ that splits (i.e.\ $\wt Z^\bu\subset\wt K^\bu$ splits),
and a morphism $\wt K^\bu\lra K^\bu$ inducing an isomorphism
in cohomology; then the projection $\wt K^\bu\lra\wt Z^\bu$ yields a
projection
$$\eqalign{
H^l\big((\wt K\otimes L)^\bu\big)\lra H^l\big((\wt Z\otimes L)^\bu\big)
\simeq\bigoplus_{p+q=l}\wt Z^p&\otimes H^q(L^\bu)\cr
&\lra\bigoplus_{p+q=l}H^p(\wt K^\bu)\otimes H^q(L^\bu).\cr}$$
To construct $\wt K^\bu$, let $\wt Z^\bu\lra Z^\bu$ be a surjective map
with $\wt Z^\bu$ free, $\wt B^\bu$ the inverse image of $B^\bu$ in 
$\wt\cZ^\bu$ and $\wt K^\bu=\wt Z^\bu\oplus\wt B^{\bu+1}$, where the 
differential $\wt K^\bu\lra \wt K^{\bu+1}$ is given by $\wt Z^\bu\lra 0$
and $\wt B^{\bu+1}\subset\wt Z^{\bu+1}\oplus 0$~;
as $\wt B^\bu$ is free, the map $\wt B^{\bu+1}\lra B^{\bu+1}$ can be lifted
to a map $\wt B^{\bu+1}\lra K^\bu$, and this lifting combined with the composite
$\wt Z^\bu\to Z^\bu\subset K^\bu$ yields the required complex morphism 
$\wt K^\bu=\wt Z^\bu\oplus\wt B^{\bu+1}\lra K^\bu$.\qed
\endproof

\begstat{(15.8) Universal coefficient formula} Let $K^\bu$ be a
complex of $R$-modules and $M$ a $R$-module such that either 
$K^\bu$ or $M$ is torsion free. Then there is a split exact sequence
$$0\lra H^p(K^\bu)\otimes M\lra H^p(K^\bu\otimes M)\lra H^{p+1}(K^\bu)\star M
\lra 0.$$
\endstat

Indeed, this is a special case of Formula~15.5 when the complex $L^\bu$
is reduced to one term $L^0=M$. In general, it is interesting to observe
that the spectral sequence of $K^\bu\otimes L^\bu$ collapses in $E_2$ if
$K^\bu$ is torsion free: $H^k\big((K\otimes L)^\bu\big)$ is in
fact the direct sum of the terms $E^{p,q}_2=H^p\big(K^\bu\otimes
H^q(L^\bu)\big)$ thanks to (15.8).

\titlec{15.C. K\"unneth Formula for Sheaf Cohomology}
Here we apply the general algebraic machinery to compute cohomology
groups over a product space $X\times Y$. The main argument is a
combination of the Leray spectral sequence with
the universal coefficient formula for sheaf cohomology.

\begstat{(15.9) Theorem} Let $\cA$ be a sheaf of $R$-modules over a
topological space $X$ and $M$ a $R$-module. Assume that either $\cA$ 
or $M$ is torsion free and that either $X$ is compact or $M$ is finitely
generated. Then there is a split exact sequence
$$0\lra H^p(X,\cA)\otimes M\lra H^p(X,\cA\otimes M)\lra H^{p+1}(X,\cA)\star M
\lra 0.$$
\endstat

\begproof{} If $M$ is finitely generated, we get
$(\cA\otimes M)^{[\bu]}(X)=\cA^{[\bu]}(X)\otimes M$ easily, so the above
exact sequence is a consequence of Formula~15.8.
If $X$ is compact, we may consider \v Cech cochains $C^q(\cU,\cA\otimes M)$
over finite coverings. There is an obvious morphism
$$C^q(\cU,\cA)\otimes M\lra C^q(\cU,\cA\otimes M)$$
but this morphism need not be surjective nor injective. However, since
$$(\cA\otimes M)_x=\cA_x\otimes M=
\lim_{\displaystyle\lra\atop\scriptstyle V\ni x}~~\cA(V)\otimes M,$$
the following properties are easy to verify:
\medskip
\item{a)} If $c\in C^q(\cU,\cA\otimes M)$, there is a refinement
$\cV$ of $\cU$ and $\rho:\cV\lra\cU$ such that
$\rho^\star c\in C^q(\cV,\cA\otimes M)$ is in
the image of $C^q(\cV,\cA)\otimes M$.
\medskip
\item{b)} If a tensor $t\in C^q(\cU,\cA)\otimes M$ is mapped to $0$
in $C^q(\cU,\cA\otimes M)$, there is a refinement
$\cV$ of $\cU$ such that $\rho^\star t\in C^q(\cV,\cA)\otimes M$ equals $0$.
\medskip
\noindent From a) and b) it follows that
$$\check H^q(X,\cA\otimes M)=
\lim_{\displaystyle\lra\atop\scriptstyle\cU}~~
H^q\big(C^\bu(\cU,\cA\otimes M)\big)
=\lim_{\displaystyle\lra\atop\scriptstyle\cU}~~
H^q\big(C^\bu(\cU,\cA)\otimes M\big)$$
and the desired exact sequence is the direct limit of the exact
sequences of Formula~15.8 obtained for $K^\bu=C^\bu(\cU,\cA)$.\qed
\endproof

\begstat{(15.10) Theorem {\rm(K\"unneth)}} Let $\cA$ and $\cB$ 
be sheaves of $R$-modules over topological spaces $X$ and $Y$. Assume that
$\cA$ is torsion free, that $Y$ is compact and that either $X$ is
compact or the cohomology groups $H^q(Y,\cB)$ are finitely generated
$R$-modules. There is a split exact sequence
$$\eqalign{
0\lra\bigoplus_{p+q=l}H^p(X,\cA)&\otimes H^q(Y,\cB)\buildo\mu\over\lra
H^l(X\times Y,\cA\stimes\cB)\cr
&\lra\bigoplus_{p+q=l+1}H^p(X,\cA)\star H^q(Y,\cB)\lra 0\cr}$$
where $\mu$ is the map given by the cartesian product
$\bigoplus\alpha_p\otimes\beta_q\longmapsto\sum \alpha_p\times\beta_q.$
\endstat

\begproof{} We compute $H^l(X,\cA\stimes\cB)$ by means of the Leray spectral
sequence of the projection $\pi:X\times Y\lra X$. This means that we are
considering the differential sheaf $\cL^q=\pi_\star(\cA\stimes\cB)^{[q]}$
and the double complex
$$K^{p,q}=(\cL^q)^{[p]}(X).$$
By $(12.5')$ we have ${}_K E_2^{p,q}=H^p\big(X,\cH^q(\cL^\bu)\big)$.
As $Y$ is compact, the cohomology sheaves 
$\cH^q(\cL^\bu)=R^q\pi_\star(\cA\stimes\cB)$ are given by
$$R^q\pi_\star(\cA\stimes\cB)_x\!=\!H^q(\{x\}\times Y,\cA\stimes
\cB_{\restriction\{x\}\times Y})\!=\!H^q(Y,\cA_x\otimes\cB)\!=\!
\cA_x\otimes H^q(Y,\cB)$$
thanks to the compact case of Th. 15.9 where $M=\cA_x$ is torsion
free. We obtain therefore
$$\eqalign{
&R^q\pi_\star(\cA\stimes\cB)=\cA\otimes H^q(Y,\cB),\cr
&{}_KE^{p,q}_2=H^p\big(X,\cA\otimes H^q(Y,\cB)\big).\cr}$$
Theorem 15.9 shows that the $E_2$-term is actually given by the
desired exact sequence, but it is not a priori clear that the spectral
sequence collapses in $E_2$. In order to check this, we consider the
double complex
$$C^{p,q}=\cA^{[p]}(X)\otimes\cB^{[q]}(Y)$$
and construct a natural morphism $C^{\bu,\bu}\lra K^{\bu,\bu}$. We
may consider $K^{p,q}=\big(\pi_\star(\cA\stimes\cB)^{[q]}\big)^{[p]}(X)$
as the set of equivalence classes of functions
$$h\big(\xi_0\ld \xi_p)\in\pi_\star(\cA\stimes\cB)^{[q]}_{\xi_p}
=\lim_{\displaystyle\lra}~~(\cA\stimes\cB)^{[q]}\big(\pi^{-1}
\big(V(\xi_p)\big)\big)$$
or more precisely
$$\eqalign{
&h\big(\xi_0\ld\xi_p\,;\,(x_0,y_0)\ld(x_q,y_q)\big)\in\cA_{x_q}\otimes\cB_{y_q}
~~~~\hbox{\rm with}\cr
&\xi_0\in X,~~~\xi_j\in V(\xi_0\ld\xi_{j-1}),~~~1\le j\le p,\cr
&(x_0,y_0)\in V(\xi_0\ld\xi_p)\times Y,\cr
&(x_j,y_j)\in V\big(\xi_0\ld\xi_p\,;\,(x_0,y_0)\ld(x_{j-1},y_{j-1})\big),
~~~1\le j\le q.\cr}$$
Then $f\otimes g\in C^{p,q}$ is mapped to $h\in K^{p,q}$ by the formula
$$h\big(\xi_0\ld \xi_p\,;\,(x_0,y_0)\ld(x_q,y_q)\big)=
f(\xi_0\ld\xi_p)(x_q)\otimes g(y_0\ld y_q).$$
As $\cA^{[p]}(X)$ is torsion free, we find
$${}_CE^{p,q}_1=\cA^{[p]}(X)\otimes H^q(Y,\cB).$$
Since either $X$ is compact or $H^q(Y,\cB)$ finitely generated, Th.
15.9 yields
$${}_CE^{p,q}_2=H^p\big(X,\cA\otimes H^q(Y,\cB)\big)\simeq{}_KE^{p,q}_2$$
hence $H^l(K^\bu)\simeq H^l(C^\bu)$ and the algebraic K\"unneth formula 
15.5 concludes the proof.\qed
\endproof

\begstat{(15.11) Remark} \rm The exact sequences of Th. 15.9 and of
K\"unneth's theorem also hold for cohomology groups with compact
support, provided that $X$ and $Y$ are locally compact and
$\cA$ (or $\cB$) is torsion free. This is an immediate consequence
of Prop.\ 7.12 on direct limits of cohomology groups
over compact subsets.
\endstat

\begstat{(15.12) Corollary} When $\cA$ and $\cB$ are torsion free constant sheaves,
e.g. $\cA=\cB=\bbbz$ or $\bbbr$, the K\"unneth formula holds as soon
as $X$ or $Y$ has the same homotopy type as a finite cell complex.
\endstat

\begproof{} If $Y$ satisfies the assumption, we may suppose in fact that $Y$
is a finite cell complex by the homotopy invariance. Then $Y$ is compact
and $H^\bu(Y,\cB)$ is finitely generated, so Th.~15.10 can be applied.\qed
\endproof

\titleb{16.}{Poincar\'e duality}
\titlec{16.A.}{Injective Modules and Ext Functors}
The study of duality requires some algebraic preliminaries on the ~Hom~ 
functor and its derived functors $\Ext^q$. Let $R$ be a commutative
ring with unit, $M$ a $R$-module and
$$0\lra A\lra B\lra C\lra 0$$
an exact sequence of $R$-modules. Then we have exact sequences
$$\eqalign{
0\lra&\Hom_R(M,A)\lra\Hom_R(M,B)\lra\Hom_R(M,C),\cr
&\Hom_R(A,M)\longleftarrow\Hom_R(B,M)\longleftarrow\Hom_R(C,M)
\longleftarrow 0,\cr}$$
i.e.\ $\Hom(M,\bu)$ is a covariant left exact functor and $\Hom(\bu,M)$ a
contravariant right exact functor. The module $M$ is said to be
{\it projective} if $\Hom(M,\bu)$ is also right exact, and {\it injective}
if $\Hom(\bu,M)$ is also left exact. Every free\break $R$-module is projective.
Conversely, if $M$ is projective, any surjective morphism $F\lra M$ from
a free module $F$ onto $M$ must split $\big(\Id_M$ has a preimage in
$\Hom(M,F)\big)$; if $R$ is a principal ring,
``projective" is therefore equivalent to ``free".

\begstat{(16.1) Proposition} Over a principal ring $R$, a module $M$
is injective if and only if it is divisible, i.e.\ if for every $x\in M$
and $\lambda\in R\ssm\{0\}$, there exists $y\in M$ such that
$\lambda y=x$.
\endstat

\begproof{} If $M$ is injective, the exact sequence
$0\lra R\buildo\lambda\times\over\lra R\lra R/\lambda R\lra 0$ shows that
$$M=\Hom(R,M)\buildo\lambda\times\over\lra\Hom(R,M)=M$$
must be surjective, thus $M$ is divisible.

Conversely, assume that $R$ is divisible. Let $f:A\lra M$ be a morphism
and $B\supset A$. Zorn's lemma implies that there is a maximal
extension $\smash{\wt f:\wt A}\lra M$ of $f$ where
$A\subset\smash{\wt A}\subset B$. If $\smash{\wt A}\ne B$, select 
$x\in B\ssm\smash{\wt A}$ and consider the ideal $I$ of elements
$\lambda\in R$ such that $\lambda x\in\smash{\wt A}$. As $R$ is
principal we have $I=\lambda_0R$ for some $\lambda_0$.
If $\lambda_0\ne 0$, select $y\in M$ such that $\lambda_0y=\smash{\wt f}
(\lambda_0x)$ and if $\lambda_0=0$ take $y$ arbitrary. Then
$\wt f$ can be extended to $\smash{\wt A}+Rx$ by letting $\smash{\wt f}(x)=y$.
This is a contradiction, so we must have $\smash{\wt A}=B$.\qed
\endproof

\begstat{(16.2) Proposition} Every module $M$ can be embedded in an
injective \hbox{module $\smash{\wt M}$.}
\endstat

\begproof{} Assume first $R=\bbbz$. Then set
$$M'=\Hom_\bbbz(M,\bbbq/\bbbz),~~~~M''=\Hom_\bbbz(M',\bbbq/\bbbz)\subset\bbbq/\bbbz^{M'}.$$
Since $\bbbq/\bbbz$ is divisible, $\bbbq/\bbbz$ and $\bbbq/\bbbz^{M'}$ are
injective.
It is therefore sufficient to show that the canonical morphism
$M\lra M''$ is injective. In fact, for any $x\in M\ssm\{0\}$, the
subgroup $\bbbz x$ is cyclic (finite or infinite), so there is a non
trivial morphism $\bbbz x\lra\bbbq/\bbbz$, and we can extend this morphism
into a morphism $u:M\lra\bbbq/\bbbz$. Then $u\in M'$ and $u(x)\ne 0$, so
$M\lra M''$ is injective.

Now, for an arbitrary ring $R$, we set $\wt M=\Hom_\bbbz\big(R,
\bbbq/\bbbz^{M'}\big)$. There are $R$-linear embeddings
$$M=\Hom_R(R,M)\lhra\Hom_\bbbz(R,M)\lhra\Hom_\bbbz\big(R,\bbbq/\bbbz^{M'}\big)
=\wt M$$
and since $\Hom_R(\bu,\wt M)\simeq\Hom_\bbbz\big(\bu,\bbbq/\bbbz^{M'}\big)$, it
is clear that $\smash{\wt M}$ is injective over the ring $R$.\qed
\endproof

As a consequence, any module has a
(cohomological) resolution by injective modules. Let $A,B$ be given
$R$-modules, let $d':B\to D^\bu$ be an injective resolution of $B$
and let $d'':C_\bu\to A$ be a free (or projective) resolution of~$A$.
We consider the cohomology double complex
$$K^{p,q}=\Hom(C_q,D^p),~~~~d=d'+(-1)^p(d'')^\dagger$$
($\dagger$ means transposition) and the associated first and second 
spectral sequences. Since $\Hom(\bu,D^p)$ and $\Hom(C_q,\bu)$ are exact,
we get
$$\eqalign{
E^{p,0}_1&=\Hom(A,D^p),~~~~\wt E^{p,0}_1=\Hom(C_p,B),\cr
E^{p,q}_1&=\wt E^{p,q}_1=0~~~~\hbox{\rm for}~~q\ne 0.\cr}$$
Therefore, both spectral sequences collapse in $E_1$ and we get
$$H^l(K^\bu)=H^l\big(\Hom(A,D^\bu)\big)=H^l\big(\Hom(C_\bu,B)\big)~;$$
in particular, the cohomology groups $H^l(K^\bu)$ do not depend on the
choice of the resolutions $C_\bu$ or $D^\bu$.

\begstat{(16.3) Definition} The $q$-th extension module of $A$, $B$ is
$$\Ext^q_R(A,B)=H^q(K^\bu)=H^q\big(\Hom(A,D^\bu)\big)
=H^q\big(\Hom(C_\bu,B)\big).$$
\endstat

By the left exactness of $\Hom(A,\bu)$, we get in particular
$\Ext^0(A,B)=\Hom(A,B)$. If $A$ is projective or $B$ injective,
then clearly $\Ext^q(A,B)=0$ for all $q\ge 1$. Any exact sequence
$0\to A\to A'\to A''\to 0$ is converted into an exact sequence by
$\Hom(\bu,D^\bu)$, thus we get a long exact sequence
$$\eqalign{
0&\lra\Hom(A'',B)\lra\Hom(A',B)\lra\Hom(A,B)\lra\Ext^1(A'',B)\cdots\cr
&\lra\Ext^q(A'',B)\lra\Ext^q(A',B)\lra\Ext^q(A,B)
 \lra\Ext^{q+1}(A'',B)\cdots\cr}$$
Similarly, any exact sequence $0\to B\to B'\to B''\to 0$ yields
$$\eqalign{
0&\lra\Hom(A,B)\lra\Hom(A,B')\lra\Hom(A,B'')\lra\Ext^1(A,B)\cdots\cr
&\lra\Ext^q(A,B)\lra\Ext^q(A,B')\lra\Ext^q(A,B'')
 \lra\Ext^{q+1}(A,B)\cdots\cr}$$
Suppose now that $R$ is a principal ring. Then the resolutions $C_\bu$
or $D^\bu$ can be taken of length $1$ (any quotient of a divisible
module is divisible), thus $\Ext^q(A,B)$ is always $0$ for
$q\ge 2$. In this case, we simply denote $\Ext^1(A,B)=
\Ext(A,B)$. When $A$ is finitely generated, the computation of
$\Ext(A,B)$ can be reduced to the cyclic case, since
$\Ext(A,B)=0$ when $A$ is free. For $A=R/aR$, the obvious free
resolution $R\smash{\buildo a\times\over\lra}R$ gives
$$\Ext_R(R/aR,B)=B/aB.\leqno(16.4)$$

\begstat{(16.5) Lemma} Let $K_\bu$ be a homology complex and let $M\to M^\bu$ be
an injective resolution of a $R$-module $M$. Let $L^\bu$ be the simple
complex associated to $L^{p,q}=\Hom_R(K_q,M^p)$. There is a split
exact sequence
$$0\lra\Ext\big(H_{q-1}(K_\bu),M\big)\lra H^q(L^\bu)\lra
\Hom\big(H_q(K_\bu),M\big)\lra 0.$$
\endstat

\begproof{} As the functor $\Hom_R(\bu,M^p)$ is exact, we get
$$\eqalign{
{}_LE^{p,q}_1&=\Hom\big(H_q(K_\bu),M^p\big),\cr
{}_LE^{p,q}_2&=\cases{
\Hom\big(H_q(K_\bu),M\big)&for~~$p=0$,\cr
\Ext\big(H_q(K_\bu),M\big)&for~~$p=1$,\cr
0&for~~$p\ge 2$.\cr}\cr}$$
The spectral sequence collapses in $E_2$, therefore we get
$$\eqalign{
G_0\big(H^q(L^\bu)\big)&=\Hom\big(H_q(K_\bu),M\big),\cr
G_1\big(H^q(L^\bu)\big)&=\Ext\big(H_{q-1}(K_\bu),M\big)\cr}$$
and the expected exact sequence follows. By the same arguments as at 
the end of the proof of Formula~15.5, we may assume that $K_\bu$ is 
split, so that there is a projection $K_q\lra Z_q$. Then the composite
morphism
$$\eqalign{
\Hom\big(H_q(K_\bu),M\big)=\Hom(Z_q/B_q,M)\lra
\Hom&(K_q/B_q,M)\cr
&\subset Z^q(L^\bu)\lra H^q(L^\bu)\cr}$$
defines a splitting of the exact sequence.\qed
\endproof

\titlec{16.B.}{Poincar\'e Duality for Sheaves}
Let $\cA$ be a sheaf of abelian groups on a locally compact topological
space $X$ of finite topological dimension $n=\topdim X$. By 13.12~c),
$\cA$ admits a soft resolution $\cL^\bu$ of length $n$. If
$M\to M^0\to M^1\to 0$ is an injective resolution of a $R$-module $M$,
we introduce the double complex of presheaves $\cF^{p,q}_{\cA,M}$
defined by
$$\cF_{\cA,M}^{p,q}(U)=\Hom_R\big(\cL^{n-q}_c(U),M^p\big),\leqno(16.6)$$
where the restriction map $\cF_{\cA,M}^{p,q}(U)\lra\cF_{\cA,M}^{p,q}(V)$ is the
adjoint of the inclusion $\cL^{n-q}_c(V)\lra\cL^{n-q}_c(U)$ when
$V\subset U$. As $\cL^{n-q}$ is soft, any $f\in\cL^{n-q}_c(U)$
can be written as $f=\sum f_\alpha$ with $(f_\alpha)$ subordinate
to any open covering $(U_\alpha)$ of $U$~; it follows easily that
$\cF_{\cA,M}^{p,q}$ satisfy axioms (II-2.4) of sheaves. The injectivity of $M^p$
implies that $\cF_{\cA,M}^{p,q}$ is a flabby sheaf. By Lemma~16.5, we get
a split exact sequence
$$\leqalignno{
0\lra\Ext\big(H^{n-q+1}_c(X,\cA),M\big)\lra
H^q&\big(\cF_{\cA,M}^\bu(X)\big)\cr
&\lra\Hom\big(H^{n-q}_c(X,\cA),M\big)\lra 0.&(16.7)\cr}$$
This can be seen as an abstract Poincar\'e duality formula, relating
the cohomology groups of a differential sheaf $\cF^\bu_{\cA,M}$
``dual" of $\cA$ to the dual of the cohomology with compact support
of $\cA$. In concrete applications, it still remains to compute
$H^q\big(\cF^\bu_{\cA,M}(X)\big)$. This can be done easily when $X$
is a manifold and $\cA$ is a constant or locally constant sheaf.

\titlec{16.C.}{Poincar\'e Duality on Topological Manifolds}
Here, $X$ denotes a paracompact topological manifold of dimension $n$.

\begstat{(16.8) Definition} Let $L$ be a $R$-module. A locally constant 
sheaf of stalk $L$ on $X$ is a sheaf $\cA$ such that every point has a
neighborhood $\Omega$ on which $\cA_{\restriction\Omega}$ is
$R$-isomorphic to the constant sheaf $L$.
\endstat

Thus, a locally constant sheaf $\cA$ can be seen as a discrete fiber bundle
over $X$ whose fibers are $R$-modules and whose transition automorphisms are
$R$-linear. If $X$ is locally contractible, a locally constant sheaf 
of stalk $L$ is given, up to isomorphism, by a representation 
$\rho:\pi_1(X)\lra\Aut_R(L)$ of the fundamental group of $X$,
up to conjugation; denoting by $\smash{\wt X}$ the universal covering 
of $X$, the sheaf $\cA$ associated to $\rho$ can be viewed as the 
quotient of $\smash{\wt X}\times L$ by the diagonal action of $\pi_1(X)$.
We leave the reader check himself the details of these assertions:
in fact similar arguments will be explained in full details in \S V-6
when properties of flat vector bundles are discussed.

Let $\cA$ be a locally constant sheaf of stalk $L$, let
$\cL^\bu$ be a soft resolution of $\cA$ and $\cF^{p,q}_{\cA,M}$
the associated flabby sheaves. For an arbitrary open set \hbox{$U\subset X$},
Formula (16.7) gives a (non canonical) isomorphism
$$H^q\big(\cF_{\cA,M}^\bu(U)\big)\simeq\Hom\big(H^{n-q}_c(U,\cA),M\big)\oplus
\Ext\big(H^{n-q+1}_c(U,\cA),M\big)$$
and in the special case $q=0$ a canonical isomorphism
$$H^0\big(\cF_{\cA,M}^\bu(U)\big)=\Hom\big(H^n_c(U,\cA),M\big).\leqno(16.9)$$
For an open subset $\Omega$ homeomorphic to $\bbbr^n$, we have
$\cA_{\restriction\Omega}\simeq L$. Proposition 14.16 and the
exact sequence of the pair yield
$$H^q_c(\Omega,L)\simeq H^q(S^n,\{\infty\}\,;\,L)=
\cases{L&for~~$q=n$,\cr  0&for~~$q\ne n$.\cr}$$
If $\Omega\simeq\bbbr^n$, we find 
$$H^0\big(\cF_{\cA,M}^\bu(\Omega)\big)\simeq\Hom(L,M),~~~~
H^1\big(\cF_{\cA,M}^\bu(\Omega)\big)\simeq\Ext(L,M)$$
and $H^q\big(\cF_{\cA,M}^\bu(\Omega)\big)=0$ for $q\ne 0,1$.
Consider open
sets $V\subset\Omega$ where $V$ is a deformation retract of $\Omega$.
Then the restriction map $H^q\big(\cF_{\cA,M}^\bu(\Omega)\big)\lra
H^q\big(\cF_{\cA,M}^\bu(V)\big)$ is an isomorphism. Taking the direct 
limit over all such neighborhoods $V$ of a given point $x\in\Omega$, 
we see that $\cH^0(\cF_{\cA,M}^\bu)$ and $\cH^1(\cF_{\cA,M}^\bu)$ are
locally constant sheaves of stalks $\Hom(L,M)$ and $\Ext(L,M)$,
and that $\cH^q(\cF_{\cA,M}^\bu)=0$ for $q\ne 0,1$.
When $\Ext(L,M)=0$, the complex $\cF^\bu_{\cA,M}$ is thus a
flabby resolution of $\cH^0=\cH^0(\cF^\bu_{\cA,M})$ and we get
isomorphisms
$$\leqalignno{
&H^q\big(\cF^\bu_{\cA,M}(X)\big)=H^q(X,\cH^0),&(16.10)\cr
&\cH^0(U)=H^0(\cF^\bu_{\cA,M}(U)\big)=\Hom\big(H^n_c(U,\cA),M\big).
&(16.11)\cr}$$

\begstat{(16.12) Definition} The locally constant sheaf $\tau_X=
\cH^0(\cF^\bu_{\bbbz,\bbbz})$ of stalk $\bbbz$ defined by
$$\tau_X(U)=\Hom_\bbbz\big(H^n_c(U,\bbbz),\bbbz\big)$$
is called the orientation sheaf (or dualizing sheaf) of $X$.
\endstat

This sheaf is given by a homomorphism $\pi_1(X)\lra\{1,-1\}$~; it is
not difficult to check that $\tau_X$ coincides with the trivial sheaf
$\bbbz$ if and only if $X$ is orientable (cf.\ exercice 18.?). In general,
$H^n_c(U,\cA)=H^n_c(U,\bbbz)\otimes_\bbbz\cA(U)$ for any small open
set $U$ on which $\cA$ is trivial, thus
$$\cH^0(\cF^\bu_{\cA,M})=\tau_X\otimes_\bbbz\Hom(\cA,M).$$
A combination of (16.7) and $(16.10)$ then gives:

\begstat{(16.13) Poincar\'e duality theorem} Let $X$ be a topological
manifold, let $\cA$ be a locally constant sheaf over $X$ of stalk $L$ and
let $M$ be a $R$-module such that $\Ext(L,M)=0$. There is a 
split exact sequence
$$\eqalign{
0\lra\Ext\big(H^{n-q+1}_c(X,\cA),M\big)\lra
H^q&\big(X,\tau_X\otimes\Hom(\cA,M)\big)\cr
&\lra\Hom\big(H^{n-q}_c(X,\cA),M\big)\lra 0.\cr}$$
In particular, if either $X$ is orientable or $R$ has characteristic 2,
then
$$\eqalignno{
0\lra\Ext\big(H^{n-q+1}_c(X,R),R\big)\lra H^q(X,R)\lra
\Hom\big(H^{n-q}_c&(X,R),R\big)\cr
&\lra 0.&\square\cr}$$
\endstat

\begstat{(16.14) Corollary} Let $X$ be a connected topological manifold,
$n=\dim X$. Then for any $R$-module $L$
\medskip
\item{\rm a)} $H^n_c(X,\tau_X\otimes L)\simeq L~;$
\medskip
\item{\rm b)} $H^n_c(X,L)\simeq L/2L$~~if $X$ is not orientable.
\endstat

\begproof{} First assume that $L$ is free. For $q=0$ and $\cA=\tau_X\otimes L$,
the Poincar\'e duality formula gives an isomorphism
$$\Hom\big(H^n_c(X,\tau_X\otimes L),M\big)\simeq\Hom(L,M)$$
and the isomorphism is functorial with respect to morphisms $M\lra M'$.
Taking $M=L$ or $M=H^n_c(X,\tau_X\otimes L)$, we easily obtain the
existence of inverse morphisms $H^n_c(X,\tau_X\otimes L)\lra L$ and
$L\lra H^n_c(X,\tau_X\otimes L)$, hence equality~a). Similarly, for
$\cA=L$ we get
$$\Hom\big(H^n_c(X,L),M\big)\simeq H^0\big(X,\tau_X\otimes\Hom(L,M)\big).$$
If $X$ is non orientable, then $\tau_X$ is non trivial and the global
sections of the sheaf $\tau_X\otimes\Hom(L,M)$ consist of $2$-torsion
elements of $\Hom(L,M)$, that is
$$\Hom\big(H^n_c(X,L),M\big)\simeq\Hom(L/2L,M).$$
Formula b) follows. If $L$ is not free, the result can be extended by
using a free resolution $0\to L_1\to L_0\to L\to 0$ and the associated
long exact sequence.\qed
\endproof

\begstat{(16.15) Remark} \rm If $X$ is a connected non compact
$n$-dimensional manifold, it can be proved (exercise 18.?) that
$H^n(X,\cA)=0$ for every locally constant sheaf $\cA$ on $X$.\qed
\endstat

Assume from now on that $X$ is oriented. Replacing $M$ by $L\otimes M$
and using the obvious morphism $M\lra\Hom(L,L\otimes M)$, the Poincar\'e
duality theorem yields a morphism
$$H^q(X,M)\lra\Hom\big(H^{n-q}_c(X,L),L\otimes M\big),\leqno(16.16)$$
in other words, a bilinear pairing
$$H^{n-q}_c(X,L)\times H^q(X,M)\lra L\otimes M.\leqno(16.16')$$

\begstat{(16.17) Proposition} Up to the sign, the above pairing is 
given by the cup product, modulo the identification
$H^n_c(X,L\otimes M)\simeq L\otimes M$.
\endstat

\begproof{} By functoriality in $L$, we may assume $L=R$. Then we make the
following special choices of resolutions:
$$\eqalign{
\cL^q&=R^{[q]}~~~\hbox{\rm for}~~q<n,~~~~
       \cL^n=\ker(R^{[q]}\lra R^{[q+1]}),\cr
M^0&=\hbox{an injective module containing}~~
       M^{[n]}_c(X)/d^{n-1}M^{[n-1]}_c(X).\cr}$$
We embed $M$ in $M^0$ by $\lambda\mapsto u\otimes_\bbbz\lambda$ where 
$u\in\bbbz^{[n]}(X)$ is a representative of a generator of $H^n_c(X,\bbbz)$,
and we set $M^1=M^0/M$. The projection map $M^0\lra M^1$ can be seen
as an extension of
$$\wt d^n~:~~M^{[n]}_c(X)/d^{n-1}M^{[n-1]}_c(X)\lra d^n M^{[n]}_c(X),$$
since Ker$\,\wt d^n\simeq H^n_c(X,M)=M$. The inclusion
$d^n M^{[n]}_c(X)\subset M^1$ can be extended into a map 
$\pi:M^{[n+1]}_c(X)\lra M^1$. The cup product bilinear map
$$M^{[q]}(U)\times R^{[n-q]}_c(U)\lra M^{[n]}_c(X)\lra M^0$$
gives rise to a morphism $M^{[q]}(U)\lra\cF^q_{R,M}(U)$ defined by
$$\cmalign{
&M^{[q]}(U)&\lra\Hom\big(\cL^{n-q}_c(U),M^0\big)&\oplus
              \Hom\big(\cL^{n-q+1}_c(U),M^1\big)\cr
&\hfill f&\longmapsto\hfill(g\longmapsto f\smallsmile g)~~~
&\oplus~~~\big(h\longmapsto\pi(f\smallsmile h)\big).\cr}\leqno(16.18)$$
This morphism is easily seen to give a morphism of differential sheaves 
$M^{[\bu]}\lra\cF^\bu_{R,M}$, when $M^{[\bu]}$ is truncated in degree $n$,
i.e.\ when $M^{[n]}$ is replaced by Ker$\,d^n$. The induced morphism
$$M=\cH^0(M^{[\bu]})\lra\cH^0(\cF^\bu_{R,M})$$
is then the identity map, hence the cup product morphism (16.18)
actually induces the Poincar\'e duality map (16.16).\qed
\endproof

\begstat{(16.19) Remark} \rm If $X$ is an oriented differentiable manifold,
the natural isomorphism $H^n_c(X,\bbbr)\simeq\bbbr$ given by 16.14~a)
corresponds in De Rham cohomology to the integration morphism
$f\longmapsto\int_X f$, $f\in\cD_n(X)$. Indeed, by a partition of
unity, we may assume that $\Supp\,f\subset\Omega\simeq\bbbr^n$.
The proof is thus reduced to the case $X=\bbbr^n$, which itself
reduces to $X=\bbbr$ since the cup product is compatible with the wedge
product of forms. Let us consider the covering $\cU=(]k-1,k+1[)_{k\in\bbbz}$
and a partition of unity $(\psi_k)$ subordinate to $\cU$. The \v Cech
differential
$$\eqalign{
AC^0(\cU,\bbbz)&\lra AC^1(\cU,\bbbz)\cr
(c_k)&\longmapsto (c_{k\,k+1})=(c_{k+1}-c_k)\cr}$$
shows immediately that the generators of $H^1_c(\bbbr,\bbbz)$ are the
$1$-cocycles $c$ such that $c_{01}=\pm 1$ and $c_{k\,k+1}=0$ for
$k\ne 0$. By Formula (6.12), the associated closed differential
form is
$$f=c_{01}\psi_1d\psi_0+c_{10}\psi_0d\psi_1,$$
hence $f=\pm{\bf 1}_{[0,1]}d\psi_0$ and $f$ does satisfy
$\int_\bbbr f=\pm 1$.
\endstat

\begstat{(16.20) Corollary} If $X$ is an oriented $C^\infty$ manifold, the bilinear map
$$H^{n-q}_c(X,\bbbr)\times H^q(X,\bbbr)\lra\bbbr,~~~~
(\{f\},\{g\})\longmapsto\int_X f\wedge g$$
is well defined and identifies $H^q(X,\bbbr)$ to the dual of
$H^{n-q}_c(X,\bbbr)$.
\endstat

\end
