Lemma (fundamental group when attaching cell)

Let $X$ be a path-connected space and $f: (S^{n-1}, *)\to (X, x_0)$ be a based map. Attach an $n$-cell to $X$ along $f$ to form $Y$. Let $i_\ast: π_1(X, x_0)\to π_1(Y, x_0)$ be the homomorphism induced by inclusion $i: X \hookrightarrow Y$.

  1. If $n\geq 3$, then $i_\ast$ is an isomorphism.

  2. If $n=2$, then $i_\ast$ is a surjection with $\ker i_\ast = \langle \langle [f]\rangle\rangle$, the smallest normal subgroup containing $[f]\in π_1(X,x_0)$. In particular, $π_1(Y, x_0) = π_1(X, x_0)/\langle \langle [f]\rangle\rangle$.

Proof

Therefore any finitely presented group arises as a fundamental group of some two-dimensional finite cell complex. (Proof)