Classification theorem for surfaces (source code)

= Classification theorem for surfaces
{wiki}

Every <closed surface> that is <connected> is homeomorphic to exactly one of a <sphere>, a <connected sum> of $g\geq1$ <tori>, or a <connected sum> of $k\geq1$ <real projective planes>. The first two cases are <orientable>; the last is not. Their <Euler characteristics> are respectively $2$, $2-2g$, and $2-k$. Thus <orientability> and <Euler characteristic> determine the <homeomorphism> type among <closed surfaces> that are <connected>. Compact connected surfaces with boundary are obtained by deleting finitely many disjoint open <disks>, and the number of boundary components is an additional invariant. This is a classification of spaces, rather than of particular embeddings in three <dimensions>.