The fundamental groupoid (\Pi_1(X)) of a topological space (X) is the category where:
- The objects are the points of (X).
- The morphisms (arrows) between two points (x, y \in X) are the homotopy classes of paths from (x) to (y), where homotopies are relative to the endpoints.
- The composition of morphisms is given by the concatenation of paths.
Similarly, we define the fundamental groupoid (\Pi_1(Y)) for another topological space (Y).
Now, let (X) and (Y) be homotopy equivalent spaces. This means there exist continuous maps (f: X \to Y) and (g: Y \to X) such that (g \circ f) is homotopic to the identity map on (X) and (f \circ g) is homotopic to the identity map on (Y).
To show that the fundamental groupoids (\Pi_1(X)) and (\Pi_1(Y)) are equivalent as categories, we need to construct functors (F: \Pi_1(X) \to \Pi_1(Y)) and (G: \Pi_1(Y) \to \Pi_1(X)) such that (G \circ F) is naturally isomorphic to the identity functor on (\Pi_1(X)) and (F \circ G) is naturally isomorphic to the identity functor on (\Pi_1(Y)).
Define the functor (F: \Pi_1(X) \to \Pi_1(Y)) as follows:
- On objects: For each point (x \in X), let (F(x) = f(x)).
- On morphisms: For a path (\alpha: x \to x') in (X), let (F(\alpha)) be the homotopy class of the path (f \circ \alpha: f(x) \to f(x')) in (Y).
Define the functor (G: \Pi_1(Y) \to \Pi_1(X)) similarly:
- On objects: For each point (y \in Y), let (G(y) = g(y)).
- On morphisms: For a path (\beta: y \to y') in (Y), let (G(\beta)) be the homotopy class of the path (g \circ \beta: g(y) \to g(y')) in (X).
These functors preserve composition of paths due to the functoriality of the composition of functions. Now, we need to show that there are natural isomorphisms between (G \circ F) and the identity functor on (\Pi_1(X)), and between (F \circ G) and the identity functor on (\Pi_1(Y)).
Let (\eta: \text{id}_{\Pi_1(X)} \Rightarrow G \circ F) be a natural transformation, where for each object (x \in X), the component (\eta_x) is the homotopy class of the path given by the homotopy from (g \circ f) to the identity map on (X) at the point (x). Since (g \circ f) is homotopic to the identity map on (X), such a path exists and gives an isomorphism in (\Pi_1(X)).
Similarly, let (\epsilon: \text{id}_{\Pi_1(Y)} \Rightarrow F \circ G) be a natural transformation, where for each object (y \in Y), the component (\epsilon_y) is the homotopy class of the path given by the homotopy from (f \circ g) to the identity map on (Y) at the point (y). Since (f \circ g) is homotopic to the identity map on (Y), such a path exists and gives an isomorphism in (\Pi_1(Y)).
These natural isomorphisms show that (G \circ F) and (F \circ G) are equivalent to the identity functors on their respective categories, hence (\Pi_1(X)) and (\Pi_1(Y)) are equivalent categories. This completes the proof that if (X) and (Y) are homotopy equivalent topological spaces, then their fundamental groupoids are equivalent as categories.