This theory continues the series on general topology and covers the definition and basic properties of continuous functions.
In this section we define continuous functions and prove that certain conditions are equivalent to a function being continuous.
In standard math we say that a function is contiuous with respect to two topologies \(\tau_1 ,\tau_2 \) if the inverse image of sets from topology \(\tau_2\) are in \(\tau_1\). Here we define a predicate that is supposed to reflect that definition, with a difference that we don't require in the definition that \(\tau_1 ,\tau_2 \) are topologies. This means for example that when we define measurable functions, the definition will be the same. The notation \( f^{-1}(A) \) means the inverse image of (a set) \(A\) with respect to (a function) \(f\).
Definition
\( IsContinuous(\tau _1,\tau _2,f) \equiv (\forall U\in \tau _2.\ f^{-1}(U) \in \tau _1) \)
We will work with a pair of topological spaces. The following locale sets up our context that consists of two topologies \(\tau_1,\tau_2\) and a continuous function \(f: X_1 \rightarrow X_2\), where \(X_i\) is defined as \(\bigcup\tau_i\) for \(i=1,2\). We also define notation \( cl_1(A) \) and \( cl_2(A) \) for closure of a set \(A\) in topologies \(\tau_1\) and \(\tau_2\), respectively.
Locale two_top_spaces0
assumes tau1_is_top: \( \tau _1 \text{ is a topology } \)
assumes tau2_is_top: \( \tau _2 \text{ is a topology } \)
defines \( X_1 \equiv \bigcup \tau _1 \)
defines \( X_2 \equiv \bigcup \tau _2 \)
assumes fmapAssum: \( f: X_1 \rightarrow X_2 \)
defines \( g \text{ is continuous } \equiv IsContinuous(\tau _1,\tau _2,g) \)
defines \( cl_1(A) \equiv Closure(A,\tau _1) \)
defines \( cl_2(A) \equiv Closure(A,\tau _2) \)
First we show that theorems proven in locale topology0 are valid when applied to topologies \(\tau_1\) and \(\tau_2\).
lemma (in two_top_spaces0) topol_cntxs_valid:
shows \( topology0(\tau _1) \) and \( topology0(\tau _2) \) using tau1_is_top , tau2_is_top , topology0_defFor continuous functions the inverse image of a closed set is closed.
lemma (in two_top_spaces0) TopZF_2_1_L1:
assumes A1: \( f \text{ is continuous } \) and A2: \( D \text{ is closed in } \tau _2 \)
shows \( f^{-1}(D) \text{ is closed in } \tau _1 \)proofIf the inverse image of every closed set is closed, then the image of a closure is contained in the closure of the image.
lemma (in two_top_spaces0) Top_ZF_2_1_L2:
assumes A1: \( \forall D.\ ((D \text{ is closed in } \tau _2) \longrightarrow f^{-1}(D) \text{ is closed in } \tau _1) \) and A2: \( A \subseteq X_1 \)
shows \( f(cl_1(A)) \subseteq cl_2(f(A)) \)proofIf \(f\left( \overline{A}\right)\subseteq \overline{f(A)}\) (the image of the closure is contained in the closure of the image), then \(\overline{f^{-1}(B)}\subseteq f^{-1}\left( \overline{B} \right)\) (the inverse image of the closure contains the closure of the inverse image).
lemma (in two_top_spaces0) Top_ZF_2_1_L3:
assumes A1: \( \forall A.\ ( A \subseteq X_1 \longrightarrow f(cl_1(A)) \subseteq cl_2(f(A))) \)
shows \( \forall B.\ ( B \subseteq X_2 \longrightarrow cl_1(f^{-1}(B)) \subseteq f^{-1}(cl_2(B)) ) \)proofIf \(\overline{f^{-1}(B)}\subseteq f^{-1}\left( \overline{B} \right)\) (the inverse image of a closure contains the closure of the inverse image), then the function is continuous. This lemma closes a series of implications in lemmas Top_ZF_2_1_L1, Top_ZF_2_1_L2 and Top_ZF_2_1_L3 showing equavalence of four definitions of continuity.
lemma (in two_top_spaces0) Top_ZF_2_1_L4:
assumes A1: \( \forall B.\ ( B \subseteq X_2 \longrightarrow cl_1(f^{-1}(B)) \subseteq f^{-1}(cl_2(B)) ) \)
shows \( f \text{ is continuous } \)proofAnother condition for continuity: it is sufficient to check if the inverse image of every set in a base is open.
lemma (in two_top_spaces0) Top_ZF_2_1_L5:
assumes A1: \( B \text{ is a base for } \tau _2 \) and A2: \( \forall U\in B.\ f^{-1}(U) \in \tau _1 \)
shows \( f \text{ is continuous } \)proofWe can strenghten the previous lemma: it is sufficient to check if the inverse image of every set in a subbase is open. The proof is rather awkward, as usual when we deal with general intersections. We have to keep track of the case when the collection is empty.
lemma (in two_top_spaces0) Top_ZF_2_1_L6:
assumes A1: \( B \text{ is a subbase for } \tau _2 \) and A2: \( \forall U\in B.\ f^{-1}(U) \in \tau _1 \)
shows \( f \text{ is continuous } \)proofIf a function is continuous, then its restriction is continous in relative topology.
lemma (in two_top_spaces0) restr_cont:
assumes A1: \( A \subseteq X_1 \) and A2: \( f \text{ is continuous } \)
shows \( IsContinuous(\tau _1 \text{ restricted to } A, \tau _2,restrict(f,A)) \)proofIf a function is continuous, then it is continuous when we restrict the topology on the range to the image of the domain.
lemma (in two_top_spaces0) restr_image_cont:
assumes A1: \( f \text{ is continuous } \)
shows \( IsContinuous(\tau _1, \tau _2 \text{ restricted to } f(X_1),f) \)proofA combination of restr_cont and restr_image_cont.
lemma (in two_top_spaces0) restr_restr_image_cont:
assumes A1: \( A \subseteq X_1 \) and A2: \( f \text{ is continuous } \) and A3: \( g = restrict(f,A) \) and A4: \( \tau _3 = \tau _1 \text{ restricted to } A \)
shows \( IsContinuous(\tau _3, \tau _2 \text{ restricted to } g(A),g) \)proof