In topology, the pasting or gluing lemma, and sometimes the gluing rule, is an important result which says that two continuous functions can be "glued together" to create another continuous function. The lemma is implicit in the use of piecewise functions. For example, in the book Topology and Groupoids, where the condition given for the statement below is that
The pasting (or gluing) lemma is crucial to the construction of the fundamental group or fundamental groupoid of a topological space; it allows one to concatenate continuous paths to create a new continuous path.
Formal statement
Let
This result allows one to take two continuous functions defined on closed (or open) subsets of a topological space and create a new one.
Proof: if U is a closed subset of B, then
A similar argument applies when X and Y are both open.
The infinite analog of this result (where
It is, however, true if the