Euler-Poincare formula (source code)

= Euler-Poincare formula
{c}

For a <finite simplicial complex> $K$, let $f_i$ count its $i$-dimensional <simplexes>. Its <Euler characteristic> is
$$
\chi(|K|)=\sum_i(-1)^if_i=\sum_i(-1)^ib_i,
$$
where $b_i=\dim_{\mathbb Q}H_i(|K|;\mathbb Q)$ is its rational <Betti number>.

Work over $\mathbb Q$, so the <chain groups>, <cycle modules> and <boundary modules> are finite-dimensional <vector spaces>. Choosing vector-space complements gives $C_i\cong B_i\oplus H_i\oplus B_{i-1}$. The boundary dimensions occur twice in the alternating sum, with opposite signs, and cancel. This proves the formula; it does not require splitting off possibly torsion integral <homology> as a direct summand of an integral <cycle module>. The <rank cancellation in the Euler-Poincare formula> gives the same argument without choosing complements.