Definition (homotopy equivalence)
A map $f: X\to Y$ is a homotopy equivalence if there exists a homotopy inverse, i.e. a map $g: Y\to X$ such that $g\circ f$ $\simeq$ $\id_X$ and $f\circ g\simeq \id_Y$.
Two topological spaces $X, Y$ are said to be homotopy equivalent (written as $X \simeq Y$) if a homotopy equivalence $f: X\to Y$ exists.
The relation of homotopy equivalence is reflexive, symmetric and transitive. (Proof)