# Pasting Lemma/Corollary 2

 It has been suggested that this page or section be merged into Continuity from Union of Restrictions. (Discuss)

## Theorem

Let $X$ and $Y$ be topological spaces.

Let $\mathcal A = \left\{ {A_i: i \in I} \right\}$ be a set of sets that are open in $X$.

Let $f: \bigcup \mathcal A \to Y$ be a mapping such that:

$\forall i \in I : f \restriction A_i$ is continuous

Then $f$ is continuous on $\bigcup \mathcal A$.