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=ABX = A \cup B where AA and BB are closed subsets of XX. Let f:AYf: A \to Y and g:BYg: B \to Y be continuous functions such that f(x)=g(x)f(x) = g(x) for all xABx \in A \cap B. Then the function h:XYh: X \to Y defined by h(x)={f(x)if xA,g(x)if xBh(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 ABA \cap B, the function hh is well-defined.

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

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

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

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

Therefore h1(C)=f1(C)g1(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:XYf: X \to Y defined by f(x)=fα(x)f(x) = f_\alpha(x) for xUαx \in U_\alpha is well-defined and continuous.

Proof

Well-definedness follows from the compatibility condition. For continuity, let VYV \subseteq Y be open. Then: f1(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 f1(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=C1CnX = 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(2t1)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(21/2)=γ1(1)=γ2(0)=γ2(21/21).\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,2t1)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: AXA \subseteq X is closed if and only if AeA \cap \overline{e} is closed for every cell ee. This is a colimit topology that makes pasting automatic.