Two XX and YY are homotopy equivalent if there are f:XYf:X\to Y and g:YXg:Y\to X such that gfg\circ f is to idX\operatorname{id}_X and fgf\circ g is homotopic to idY\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.