Let (Ei)0≤i≤n be a finite family of vector spaces over a field K. If there exists an exact sequence of linear mappings
0⟶E0u0E1u1E2⟶⋯⟶En−1un−1Enun0
the relation
2k+1≤n∑dimE2k+1=2k≤n∑dimE2k
holds, or, if all the spaces are finite dimensional,
i=1∑n(−i)idimEi=0.
Let Ik=Imuk=Keruk+1 for 0≤k≤n−1; Ik+1 is therefore isomorphic to Ek+1/Ik, hence (formula (3)) dimIk+dimIk+1=dimEk+1 for 0≤k≤n−2 and moreover dimI0=dimE0 and In−1=En, hence dimIn−1=dimEn. Replacing dimEi by its expression as a function of the dimIk in the two sides of (5), we obtain on each side ∑k=0n−1dimIk, whence the corollary.
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.