Two XX and YY are homotopy equivalent if there are f:X→Yf:X\to Y and g:Y→Xg:Y\to X such that g∘fg\circ f is to id⁡X\operatorname{id}_X and f∘gf\circ g is homotopic to id⁡Y\operatorname{id}_Y.

Consequences

Homotopy equivalence preserves homotopy invariants, such as homotopy groups and singular homology, but it is weaker than . It records the large-scale deformation type rather than the exact local topology.