# Seifert–Van Kampen theorem

In mathematics, the Seifert–Van Kampen theorem of algebraic topology (named after Herbert Seifert and Egbert van Kampen), sometimes just called Van Kampen's theorem, expresses the structure of the fundamental group of a topological space $X$ in terms of the fundamental groups of two open, path-connected subspaces that cover $X$. It can therefore be used for computations of the fundamental group of spaces that are constructed out of simpler ones.

## Van Kampen's theorem for fundamental groups

Let X be a topological space which is the union of two open and path connected subspaces U$_1$, U$_2$. Suppose U$_1$ ∩ U$_2$ is path connected and nonempty, and let x$_0$ be a point in U$_1$ ∩ U$_2$ that will be used as the base of all fundamental groups. The inclusion maps of U$_1$ and U$_2$ into X induce group homomorphisms $j_{1}:\pi _{1}(U_{1},x_{0})\to \pi _{1}(X,x_{0})$ and $j_{2}:\pi _{1}(U_{2},x_{0})\to \pi _{1}(X,x_{0})$. Then X is path connected and $j_{1}$ and $j_{2}$ form a commutative pushout diagram:
The natural morphism k is an isomorphism. That is, the fundamental group of X is the free product of the fundamental groups of U$_1$ and U$_2$ with amalgamation of $\pi _{1}(U_{1}\cap U_{2},x_{0})$.
Usually the morphisms induced by inclusion in this theorem are not themselves injective, and the more precise version of the statement is in terms of pushouts of groups.

### Van Kampen's theorem for fundamental groupoids

Unfortunately, the theorem as given above does not compute the fundamental group of the circle – which is the most important basic example in algebraic topology – because the circle cannot be realised as the union of two open sets with connected intersection. This problem can be resolved by working with the fundamental groupoid $\pi _{1}(X,A)$ on a set A of base points, chosen according to the geometry of the situation. Thus for the circle, one uses two base points.
This groupoid consists of homotopy classes relative to the end points of paths in X joining points of A ∩ X. In particular, if X is a contractible space, and A consists of two distinct points of X, then $\pi _{1}(X,A)$ is easily seen to be isomorphic to the groupoid often written ${\mathcal {I}}$ with two vertices and exactly one morphism between any two vertices. This groupoid plays a role in the theory of groupoids analogous to that of the group of integers in the theory of groups. The groupoid ${\mathcal {I}}$ also allows for groupoids a notion of homotopy: it is a unit interval object in the category of groupoids.
    A connected union of two non connected spaces, with set of base points
The category of groupoids admits all colimits, and in particular all pushouts.
    Theorem. Let the topological space X be covered by the interiors of two subspaces X$_1$, X$_2$ and let A be a set which meets each path component of X$_1$, X$_2$ and X$_0$ = X$_1$ ∩ X$_2$. Then A meets each path component of X and the diagram P of morphisms induced by inclusion
    is a pushout diagram in the category of groupoids.
This theorem gives the transition from topology to algebra, in determining completely the fundamental groupoid $\pi _{1}(X,A)$; one then has to use algebra and combinatorics to determine a fundamental group at some basepoint.
One interpretation of the theorem is that it computes homotopy 1-types. To see its utility, one can easily find cases where X is connected but is the union of the interiors of two subspaces, each with say 402 path components and whose intersection has say 1004 path components. The interpretation of this theorem as a calculational tool for "fundamental groups" needs some development of 'combinatorial groupoid theory'. This theorem implies the calculation of the fundamental group of the circle as the group of integers, since the group of integers is obtained from the groupoid ${\mathcal {I}}$ by identifying, in the category of groupoids, its two vertices.
There is a version of the last theorem when X is covered by the union of the interiors of a family $\{U_{\lambda }:\lambda \in \Lambda \}$ of subsets.
The conclusion is that if A meets each path component of all 1,2,3-fold intersections of the sets $U_{\lambda }$, then A meets all path components of X and the diagram
    $\bigsqcup _{(\lambda ,\mu )\in \Lambda ^{2}}\pi _{1}(U_{\lambda }\cap U_{\mu },A)\rightrightarrows \bigsqcup _{\lambda \in \Lambda }\pi _{1}(U_{\lambda },A)\rightarrow \pi _{1}(X,A)$
of morphisms induced by inclusions is a coequaliser in the category of groupoids.
   [...] people still obstinately persist, when calculating with fundamental groups, in fixing a single base point, instead of cleverly choosing a whole packet of points which is invariant under the symmetries of the situation, which thus get lost on the way. In certain situations (such as descent theorems for fundamental groups à la Van Kampen) it is much more elegant, even indispensable for understanding something, to work with fundamental groupoids with respect to a suitable packet of base points [...]

## Equivalent formulations

In the language of combinatorial group theory, if $X$ is a topological space; $U$ and $V$ are open, path connected subspaces of $X$; $U\cap V$ is nonempty and path-connected; and $w\in U\cap V$; then $\pi _{1}(X,w)$ is the free product with amalgamation of $\pi _{1}(U,w)$ and $\pi _{1}(V,w)$, with respect to the (not necessarily injective) homomorphisms $I:\pi _{1}(U\cap V,w)\to \pi _{1}(U,w)$ and $J:\pi _{1}(U\cap V,w)\to \pi _{1}(V,w)$. Given group presentations:
    ${\begin{aligned}\pi _{1}(U,w)&=\langle u_{1},\dots ,u_{k}\mid \alpha _{1},\dots ,\alpha _{l}\rangle \\\pi _{1}(V,w)&=\langle v_{1},\dots ,v_{m}\mid \beta _{1},\dots ,\beta _{n}\rangle \\\pi _{1}(U\cap V,w)&=\langle w_{1},\dots ,w_{p}\mid \gamma _{1},\dots ,\gamma _{q}\rangle \end{aligned}}$
the amalgamation can be presented as
    $\pi _{1}(X,w)=\left\langle u_{1},\dots ,u_{k},v_{1},\dots ,v_{m}\left|\alpha _{1},\dots ,\alpha _{l},\beta _{1},\dots ,\beta _{n},I(w_{1})J(w_{1})^{-1},\dots ,I(w_{p})J(w_{p})^{-1}\right.\right\rangle .$
In category theory, $\pi _{1}(X,w)$ is the pushout, in the category of groups, of the diagram:
    $\pi _{1}(U,w)\gets \pi _{1}(U\cap V,w)\to \pi _{1}(V,w).$

## Examples
### 2-sphere

One can use Van Kampen's theorem to calculate fundamental groups for topological spaces that can be decomposed into simpler spaces. For example, consider the sphere $S^{2}$. Pick open sets $A=S^{2}\setminus \{n\}$ and $B=S^{2}\setminus \{s\}$ where n and s denote the north and south poles respectively. Then we have the property that A, B and A ∩ B are open path connected sets. Thus we can see that there is a commutative diagram including A ∩ B into A and B and then another inclusion from A and B into $S^{2}$ and that there is a corresponding diagram of homomorphisms between the fundamental groups of each subspace. Applying Van Kampen's theorem gives the result
    $\pi _{1}(S^{2})=\pi _{1}(A)\cdot \pi _{1}(B)/\ker(\Phi ).$
However, A and B are both homeomorphic to R$^2$ which is simply connected, so both A and B have trivial fundamental groups. It is clear from this that the fundamental group of $S^{2}$ is trivial.

### Wedge sum of spaces

Given two pointed spaces $(X,x)$ and $(Y,y)$ we can form their wedge sum, $(X\vee Y,p)$, by taking the quotient of $X\coprod Y$ by identifying their two basepoints.
If $x$ admits a contractible open neighborhood $U\subset X$ and $y$ admits a contractible open neighborhood $V\subset Y$ (which is the case if, for instance, $X$ and $Y$ are CW complexes), then we can apply the Van Kampen theorem to $X\vee Y$ by taking $X\vee V$ and $U\vee Y$ as the two open sets and we conclude that the fundamental group of the wedge is the free product of the fundamental groups of the two spaces we started with:
    $\pi _{1}(X\vee Y,p)\cong \pi _{1}(X,x)*\pi _{1}(Y,y)$.

### Orientable genus-g surfaces

A more complicated example is the calculation of the fundamental group of a genus-n orientable surface S, otherwise known as the genus-n surface group. One can construct S using its standard fundamental polygon. For the first open set A, pick a disk within the center of the polygon. Pick B to be the complement in S of the center point of A. Then the intersection of A and B is an annulus, which is known to be homotopy equivalent to (and so has the same fundamental group as) a circle. Then $\pi _{1}(A\cap B)=\pi _{1}(S^{1})$, which is the integers, and $\pi _{1}(A)=\pi _{1}(D^{2})={1}$. Thus the inclusion of $\pi _{1}(A\cap B)$ into $\pi _{1}(A)$ sends any generator to the trivial element. However, the inclusion of $\pi _{1}(A\cap B)$ into $\pi _{1}(B)$ is not trivial. In order to understand this, first one must calculate $\pi _{1}(B)$. This is easily done as one can deformation retract B (which is S with one point deleted) onto the edges labeled by
    $A_{1}B_{1}A_{1}^{-1}B_{1}^{-1}A_{2}B_{2}A_{2}^{-1}B_{2}^{-1}\cdots A_{n}B_{n}A_{n}^{-1}B_{n}^{-1}.$
This space is known to be the wedge sum of 2n circles (also called a bouquet of circles), which further is known to have fundamental group isomorphic to the free group with 2n generators, which in this case can be represented by the edges themselves: $\{A_{1},B_{1},\dots ,A_{n},B_{n}\}$. We now have enough information to apply Van Kampen's theorem. The generators are the loops $\{A_{1},B_{1},\dots ,A_{n},B_{n}\}$ (A is simply connected, so it contributes no generators) and there is exactly one relation:
    $A_{1}B_{1}A_{1}^{-1}B_{1}^{-1}A_{2}B_{2}A_{2}^{-1}B_{2}^{-1}\cdots A_{n}B_{n}A_{n}^{-1}B_{n}^{-1}=1.$
Using generators and relations, this group is denoted
    $\left\langle A_{1},B_{1},\dots ,A_{n},B_{n}\left|A_{1}B_{1}A_{1}^{-1}B_{1}^{-1}\cdots A_{n}B_{n}A_{n}^{-1}B_{n}^{-1}\right.\right\rangle .$

### Simple-connectedness

If X is space that can be written as the union of two open simply connected sets U and V with U ∩ V non-empty and path-connected, then X is simply connected.

## Generalizations

As explained above, this theorem was extended by Ronald Brown to the non-connected case by using the fundamental groupoid $\pi _{1}(X,A)$ on a set A of base points. The theorem for arbitrary covers, with the restriction that A meets all threefold intersections of the sets of the cover, is given in the paper by Brown and Abdul Razak Salleh. The theorem and proof for the fundamental group, but using some groupoid methods, are also given in J. Peter May's book. The version that allows more than two overlapping sets but with A a singleton is also given in Allen Hatcher's book below, theorem 1.20.
Applications of the fundamental groupoid on a set of base points to the Jordan curve theorem, covering spaces, and orbit spaces are given in Ronald Brown's book. In the case of orbit spaces, it is convenient to take A to include all the fixed points of the action. An example here is the conjugation action on the circle.
References to higher-dimensional versions of the theorem which yield some information on homotopy types are given in an article on higher-dimensional group theories and groupoids. Thus a 2-dimensional Van Kampen theorem which computes nonabelian second relative homotopy groups was given by Ronald Brown and Philip J. Higgins. A full account and extensions to all dimensions are given by Brown, Higgins, and Rafael Sivera, while an extension to n-cubes of spaces is given by Ronald Brown and Jean-Louis Loday.
Fundamental groups also appear in algebraic geometry and are the main topic of Alexander Grothendieck's first Séminaire de géométrie algébrique (SGA1). A version of Van Kampen's theorem appears there, and is proved along quite different lines than in algebraic topology, namely by descent theory. A similar proof works in algebraic topology.