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
A\setminusB\subseteq\operatorname{Int}A
B\setminusA\subseteq\operatorname{Int}B.
The pasting lemma is crucial to the construction of the fundamental group and fundamental groupoid of a topological space; it allows one to concatenate paths to create a new path.
Let
X,Y
A
A=X\cupY
B
f:A\toB
X
Y,
f
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
B,
f-1(U)\capX
f-1(U)\capY
f
X
Y
f-1(U)
A similar argument applies when
X
Y
\Box
The infinite analog of this result (where
A=X1\cupX2\cupX3\cup …
X1,X2,X3,\ldots.
\iota:Z\toR
Z.
It is, however, true if the
X1,X2,X3\ldots
X1,X2,X3,\ldots