Definition (path, loop, concatenation, inverse, constant path)

Let $X$ be a topological space and $x_0, x_1\in X$ be points.

A path from $x0$ to $x1$ is a map $γ: [0,1]\to X$ such such that $γ(0) = x_0$ and $γ(1) = x_1$. We write $γ: x_0 \rightsquigarrow x_1$.

If $x_0 = x_1$, then we call $γ$ a loop based at $x0$_.$ For paths $γ: x_0 \rightsquigarrow x_1$ and $γ': x_1 \rightsquigarrow x_2$, define the concatenation of $γ$ and $γ'$ as the path $(γ\cdot γ'): x_0 \rightsquigarrow x_2$ defined by $$ \begin{align*} (γ\cdot γ')(t) = \begin{cases} γ(2t), &0\leq t\leq \frac12, \\ γ'(2t-1), &\frac12\leq t\leq 1. \end{cases} \end{align*} $$

Define the inverse of $γ$ as the path $γ\inv: x_1\rightsquigarrow x_0$ defined by $γ\inv(t) = γ(1-t)$.

For any $x_0\in X$, define the constant path at $x_0$ as $c_{x_0}(t) = x_0$.

The concatenation is continuous by the gluing lemma.

The relation $\sim$ on $X$ given by $x\sim y \iff$ (there exists a path from $x$ to $y$) is an equivalence relation by the above constructions.