The Smale horseshoe map consists of a sequence of operations on the unit square. First, stretch in the y direction by more than a factor of two, then compress in the x direction by more than a factor of two. Finally, fold the resulting rectangle and fit it back onto the square, overlapping at the top and bottom, and not quite reaching the ends to the left and right (and with a gap in the middle), as illustrated in the diagram above. The shape of the stretched and folded map gives the horseshoe map its name. Note that it is vital to the construction process for the map to overlap and leave the middle and vertical edges of the initial unit square uncovered.