Proof (homology of compact connected surfaces)
We follow the same procedure as when we computed fundamental groups.
The sphere
See here.
Orientable surfaces
Torus minus triangle
Let $T^0$ be the torus with an open triangle removed. $T^0$ has a triangulation $K$ as shown:
The inclusion $W \hookrightarrow K$ is a homotopy equivalence, inducing an isomorphism $H_*(K) \isom H_*(W)$.
-
$H_0(K) \isom \Z$, generated by any vertex.
-
$H_1(K) \isom \Z^2$, generated by the cycles $a$ and $b$: by decomposing $W$ into the two circles, we obtain a Mayer-Vietoris sequence $$ \begin{align*} \underbrace{H_1(\set{*})}_{0} \to \underbrace{H_1(S^1) \oplus H_1(S^1)}_{\isom \Z \oplus \Z} \to H_1(W) \to H_0(\set{*}) \hookrightarrow H_0(S^1) \oplus H_0(S^1). \end{align*} $$
The boundary $r$ corresponds to $a + b - a - b = 0$.
-
$H_n(K) = 0$ for $n\geq 2$, since $W$ is 1-dimensional.
Gluing copies together
Now glue $g$ copies of $K$ together along edges of the triangle, forming $K_g$. This is a triangulation of $Σ_{g,\partial}$.
-
$H_0(K_g) \isom \Z$, generated by any vertex.
Since $K_g = K_{g-1} \cup K$ with $K_{g-1} \cap K = Δ^1$ a 1-simplex,
we have a Mayer-Vietoris sequence
showing $H_2(K_{g-1}) \isom H_2(K_g)$
and $H_1(K_{g-1})\oplus \Z^2 \isom H_1(K_g)$.
Therefore by induction,
-
$H_1(K_g)\isom \Z^{2g}$, generated by $a_1, b_1, \ldots, a_g, b_g$.
The boundary $r_1 + \ldots + r_g$ corresponds to $a_1 + b_1 - a_1 - b_1 + \ldots + a_g + b_g - a_g - b_g = 0$.
-
$H_n(K_g) = 0$ for $n\geq 2$.
Closing the boundary
Attach a cone $C$ to $K_g$ to form a triangulation for $Σ_g$. Call the intersection $C \cap K_g = L$, which is a triangulation of $S^1$.
-
$H_0(K_g \cup C) \isom \Z$, generated by any vertex.
Mayer-Vietoris gives
The generator of $H_1(L)$ is the boundary of $K_g$, which we showed maps to 0 in $H_1(K_g)$.
This shows
-
$H_1(K_g \cup C)\isom \Z^{2g}$, still generated by $a_1, b_1, \ldots, a_g, b_g$.
-
$H_2(K_g \cup C)\isom \Z$.
Non-orientable surface
Real projective plane minus a triangle
Let $M$ be $\mathbb{RP}^2$ with an open triangle removed, which has a triangulation $K$:
$K$ is homotopic equivalent to $W$, a triangulation of $S^1$, so
-
$H_0(K)\isom \Z$, generated by any vertex;
-
$H_1(K)\isom \Z$, generated by $u := a+b$;
-
$H_n(K)=0$ for $n\geq 2$.
The boundary $r$ corresponds to $2u$.
Gluing copies together
Now glue $k$ copies together to form $K_k$. As before, since $K_k = K_{k-1} \cup K$ with $K_{k-1} \cap K = Δ^1$, we get
so by induction,
-
$H_0(K_k) \isom \Z$, generated by any vertex;
-
$H_1(K_k)\isom \Z^k$, generated by $u_1, \ldots, u_k$;
-
$H_n(K_k) = 0$ for $n\geq 2$.
The boundary $r_1 + \ldots + r_g$ corresponds to $2u_1 + \ldots + 2u_k$.
Closing the boundary
Attach a cone $C$ to $K_k$ to form a triangulation for $S_k$. Letting $L = K_k \cap C$, we get
This time, the generator of $H_1(L)$, i.e. the boundary of $K_k$, corresponds to $(2,\ldots,2)\in \Z^k \isom H_1(K_k)$.
-
$H_0(K_k \cup C) \isom \Z$, generated by any vertex.
-
$H_1(K_k \cup C) \isom \Z^k/(2,\ldots,2)$, generated by $u_1, \ldots, u_k$ modulo $2u_1 + \ldots + 2u_k$. Under a change of basis $\set{(1, 0, \ldots, 0), \ldots, (0, \ldots, 0, 1, 0), (1, \ldots, 1)}$, this is isomorphic to $(\Z/2)\oplus \Z^{k-1}$.
-
$H_2(K_k \cup C) = 0$.