In mathematics, a topological space is said to be weakly contractible if all of its homotopy groups are trivial.