TheoremComplete

Pasting Lemma

The pasting lemma is a fundamental result that allows us to construct continuous functions by defining them piecewise on closed (or open) subsets of the domain. It is used constantly in algebraic topology for constructing homotopies, paths, and maps on CW complexes.


Closed Pasting Lemma

Theorem2.6Pasting Lemma (Closed Version)

Let XX be a topological space with X=A∪BX = A \cup B where AA and BB are closed subsets of XX. Let f:A→Yf: A \to Y and g:B→Yg: B \to Y be continuous functions such that f(x)=g(x)f(x) = g(x) for all x∈A∩Bx \in A \cap B. Then the function h:X→Yh: X \to Y defined by h(x)={f(x)if x∈A,g(x)if x∈Bh(x) = \begin{cases} f(x) & \text{if } x \in A, \\ g(x) & \text{if } x \in B \end{cases} is continuous.

Proof

Since ff and gg agree on A∩BA \cap B, the function hh is well-defined.

Let C⊆YC \subseteq Y be closed. We show h−1(C)h^{-1}(C) is closed in XX.

We have h−1(C)=f−1(C)∪g−1(C)h^{-1}(C) = f^{-1}(C) \cup g^{-1}(C), where we interpret f−1(C)⊆Af^{-1}(C) \subseteq A and g−1(C)⊆Bg^{-1}(C) \subseteq B.

Since f:A→Yf: A \to Y is continuous (in the subspace topology on AA), f−1(C)f^{-1}(C) is closed in AA. Since AA is closed in XX, the set f−1(C)f^{-1}(C) is closed in XX.

Similarly, g−1(C)g^{-1}(C) is closed in BB, and since BB is closed in XX, g−1(C)g^{-1}(C) is closed in XX.

Therefore h−1(C)=f−1(C)∪g−1(C)h^{-1}(C) = f^{-1}(C) \cup g^{-1}(C) is a finite union of closed sets, hence closed in XX.

■

Open Pasting Lemma

Theorem2.7Pasting Lemma (Open Version)

Let X=⋃α∈AUαX = \bigcup_{\alpha \in A} U_\alpha where each UαU_\alpha is open in XX. Let fα:Uα→Yf_\alpha: U_\alpha \to Y be continuous functions such that fα=fβf_\alpha = f_\beta on Uα∩UβU_\alpha \cap U_\beta for all α,β\alpha, \beta. Then the function f:X→Yf: X \to Y defined by f(x)=fα(x)f(x) = f_\alpha(x) for x∈Uαx \in U_\alpha is well-defined and continuous.

Proof

Well-definedness follows from the compatibility condition. For continuity, let V⊆YV \subseteq Y be open. Then: f−1(V)=⋃α∈Afα−1(V).f^{-1}(V) = \bigcup_{\alpha \in A} f_\alpha^{-1}(V).

Each fα−1(V)f_\alpha^{-1}(V) is open in UαU_\alpha (since fαf_\alpha is continuous), hence open in XX (since UαU_\alpha is open in XX). Therefore f−1(V)f^{-1}(V) is a union of open sets, hence open.

■
RemarkClosed Version Requires Finiteness

The closed pasting lemma generalizes to finitely many closed sets X=C1∪⋯∪CnX = C_1 \cup \cdots \cup C_n. However, it does not extend to arbitrary families of closed sets. For example, consider X=[0,1]X = [0, 1] and Cx={x}C_x = \{x\} for each x∈[0,1]x \in [0, 1]. Define fx:{x}→Rf_x: \{x\} \to \mathbb{R} by fx(x)=χQ(x)f_x(x) = \chi_{\mathbb{Q}}(x). Each fxf_x is trivially continuous, but the pasted function is the characteristic function of the rationals, which is nowhere continuous.

The open version has no such restriction because arbitrary unions of open sets are open.


Applications

ExampleConcatenation of Paths

Let γ1:[0,1]→X\gamma_1: [0, 1] \to X and γ2:[0,1]→X\gamma_2: [0, 1] \to X be continuous paths with γ1(1)=γ2(0)\gamma_1(1) = \gamma_2(0). The concatenation γ1∗γ2:[0,1]→X\gamma_1 * \gamma_2: [0, 1] \to X is defined by: (γ1∗γ2)(t)={γ1(2t)if t∈[0,1/2],γ2(2t−1)if t∈[1/2,1].(\gamma_1 * \gamma_2)(t) = \begin{cases} \gamma_1(2t) & \text{if } t \in [0, 1/2], \\ \gamma_2(2t - 1) & \text{if } t \in [1/2, 1]. \end{cases}

The two pieces are continuous (compositions of continuous maps), defined on the closed sets [0,1/2][0, 1/2] and [1/2,1][1/2, 1], and agree at t=1/2t = 1/2: γ1(2⋅1/2)=γ1(1)=γ2(0)=γ2(2⋅1/2−1).\gamma_1(2 \cdot 1/2) = \gamma_1(1) = \gamma_2(0) = \gamma_2(2 \cdot 1/2 - 1).

By the pasting lemma, γ1∗γ2\gamma_1 * \gamma_2 is continuous.

ExampleConstruction of Homotopies

Many homotopy constructions rely on the pasting lemma. For instance, to show that path homotopy is transitive: if F:γ0≃γ1F: \gamma_0 \simeq \gamma_1 and G:γ1≃γ2G: \gamma_1 \simeq \gamma_2 are path homotopies, define H:[0,1]×[0,1]→XH: [0,1] \times [0,1] \to X by: H(s,t)={F(s,2t)if t∈[0,1/2],G(s,2t−1)if t∈[1/2,1].H(s, t) = \begin{cases} F(s, 2t) & \text{if } t \in [0, 1/2], \\ G(s, 2t-1) & \text{if } t \in [1/2, 1]. \end{cases}

The domain is divided into two closed rectangles [0,1]×[0,1/2][0,1] \times [0, 1/2] and [0,1]×[1/2,1][0,1] \times [1/2, 1], the restrictions are continuous, and they agree on the intersection [0,1]×{1/2}[0,1] \times \{1/2\} where both give γ1(s)\gamma_1(s). By the pasting lemma, HH is a continuous homotopy γ0≃γ2\gamma_0 \simeq \gamma_2.

ExampleMaps on CW Complexes

In the theory of CW complexes, one builds spaces inductively by attaching cells. At each stage, maps are defined on closed cells and pasted together. The pasting lemma (in its finite and locally finite versions) ensures continuity of the resulting global map.

More precisely, CW complexes carry the weak topology: A⊆XA \subseteq X is closed if and only if A∩e‾A \cap \overline{e} is closed for every cell ee. This is a colimit topology that makes pasting automatic.