3.2.Β Bases
Definition 3.7
Let \mathcal{T} be a topology. A base of the topology \mathcal{T} is a collection of open sets \mathcal{B} \subset \mathcal{T} such that every open set of \mathcal{T} is a union of open sets of \mathcal{B}There are several ways of giving this definition; this is the one I have chosen to define it in Lean, independently of Mathlib. Therefore, the results in this section are not literally found in Mathlib..
def isTopoBase {X : Type} [TopologicalSpace X]
(B : Set (Set X)) : Prop :=
(β U β B, IsOpen U) β§
(β V : Set X, IsOpen V β β UB β B, V = ββ UB)Example 3.11
The set of open intervals in \mathbb{R},
\mathcal{B} = \left\{ I = (a, b) ~|~ a < b\right\},
is a base of the usual topology (\mathbb{R}, \mathcal{T}_u).
Proof. We have seen that open intervals are open in the usual topology (Example 3.6). Therefore, we already have the first part of the definition of a base.
lemma BaseOfRealTopo [T : TopologicalSpace β]
(hT : T = UsualTopology) :
isTopoBase {s | β a b : β, s = Set.Ioo a b} := T:TopologicalSpace βhT:T = UsualTopologyβ’ isTopoBase {s | β a b, s = Set.Ioo a b}
T:TopologicalSpace βhT:T = UsualTopologyβ’ β U β {s | β a b, s = Set.Ioo a b}, IsOpen UT:TopologicalSpace βhT:T = UsualTopologyβ’ β (V : Set β), IsOpen V β β UB β {s | β a b, s = Set.Ioo a b}, V = ββ UB
T:TopologicalSpace βhT:T = UsualTopologyβ’ β U β {s | β a b, s = Set.Ioo a b}, IsOpen U intro U T:TopologicalSpace βhT:T = UsualTopologyU:Set βhU:U β {s | β a b, s = Set.Ioo a b}β’ IsOpen U
T:TopologicalSpace βhT:T = UsualTopologyU:Set βa:βb:βhU:U = Set.Ioo a bβ’ IsOpen U
T:TopologicalSpace βhT:T = UsualTopologyU:Set βa:βb:βhU:U = Set.Ioo a bβ’ IsOpen (Set.Ioo a b)
All goals completed! π
Now, for the second part, we consider an arbitrary U \subseteq X. We want to see that it can be written as a union of open intervals.
T:TopologicalSpace βhT:T = UsualTopologyβ’ β (V : Set β), IsOpen V β β UB β {s | β a b, s = Set.Ioo a b}, V = ββ UB intro U T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen Uβ’ β UB β {s | β a b, s = Set.Ioo a b}, U = ββ UB
T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen Uβ’ β UB β {s | β a b, s = Set.Ioo a b}, U = ββ UB
To do so, consider, for each x \in U, the \delta_u resulting from applying the definition of open set, that is, such that B_{\delta_x}(x) \subseteq U. We want to prove that U = \bigcup \{B_{\delta_x}(x) | x \in U\}, and that this is a subset of \mathcal{B}.
T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―β’ β UB β {s | β a b, s = Set.Ioo a b}, U = ββ UB
T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uβ’ β UB β {s | β a b, s = Set.Ioo a b}, U = ββ UB
T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uβ’ {s | β x, s = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)} β {s | β a b, s = Set.Ioo a b} β§
U = ββ {s | β x, s = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)}
Obviously, it is a subset of \mathcal{B} since it is a set formed by open intervals.
T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uβ’ {s | β x, s = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)} β {s | β a b, s = Set.Ioo a b}T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uβ’ U = ββ {s | β x, s = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)}
T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uβ’ {s | β x, s = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)} β {s | β a b, s = Set.Ioo a b} intro V T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β UV:Set βhV:V β {s | β x, s = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)}β’ V β {s | β a b, s = Set.Ioo a b}
T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β UV:Set βx:βUhV:V = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)β’ V β {s | β a b, s = Set.Ioo a b}
All goals completed! π
Now, to see that U = \bigcup \{B_{\delta_x}(x) | x \in U\}, we prove the two inclusions separately.
T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uβ’ U = ββ {s | β x, s = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)} T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uu:ββ’ u β U β u β ββ {s | β x, s = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)}; T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uu:ββ’ u β U β u β ββ {s | β x, s = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)}T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uu:ββ’ u β ββ {s | β x, s = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)} β u β U; all_goals T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uu:βhu:u β ββ {s | β x, s = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)}β’ u β U
(\subseteq) Let u \in U. Then u \in B_{\delta_u} trivially. Hence it is in the union.
T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uu:βhu:u β Uβ’ u β ββ {s | β x, s = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)} T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uu:βhu:u β Uβ’ Set.Ioo (u - Ξ΄ β¨u, huβ©) (u + Ξ΄ β¨u, huβ©) β {s | β x, s = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)} β§
u β Set.Ioo (u - Ξ΄ β¨u, huβ©) (u + Ξ΄ β¨u, huβ©)
T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uu:βhu:u β Uβ’ Set.Ioo (u - Ξ΄ β¨u, huβ©) (u + Ξ΄ β¨u, huβ©) β {s | β x, s = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)}T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uu:βhu:u β Uβ’ u β Set.Ioo (u - Ξ΄ β¨u, huβ©) (u + Ξ΄ β¨u, huβ©)
T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uu:βhu:u β Uβ’ Set.Ioo (u - Ξ΄ β¨u, huβ©) (u + Ξ΄ β¨u, huβ©) β {s | β x, s = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)} T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uu:βhu:u β Uβ’ β a, β (h : a β U), Set.Ioo (u - Ξ΄ β¨u, huβ©) (u + Ξ΄ β¨u, huβ©) = Set.Ioo (a - Ξ΄ β¨a, β―β©) (a + Ξ΄ β¨a, β―β©)
All goals completed! π
T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uu:βhu:u β Uβ’ u β Set.Ioo (u - Ξ΄ β¨u, huβ©) (u + Ξ΄ β¨u, huβ©) T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uu:βhu:u β Uβ’ 0 < Ξ΄ β¨u, huβ©
All goals completed! π
(\supseteq) Let u \in \bigcup \{B_{\delta_x}(x) | x \in U\}. Then there exists a v \in U such that u \in B_{\delta_v}(v) \subseteq U. Hence u \in U.
T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uu:βhu:u β ββ {s | β x, s = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)}β’ u β U T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uu:βI:Set βhI:I β {s | β x, s = Set.Ioo (βx - Ξ΄ x) (βx + Ξ΄ x)}hu:u β Iβ’ u β U
T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uu:βI:Set βhu:u β Iv:βUhI:I = Set.Ioo (βv - Ξ΄ v) (βv + Ξ΄ v)β’ u β U
T:TopologicalSpace βhT:T = UsualTopologyU:Set βhUopen:IsOpen UΞ΄:βU β β := fun x => Classical.choose β―Ξ΄spec:β (x : βU), 0 < Ξ΄ x β§ β (y : β), βx - Ξ΄ x < y β§ y < βx + Ξ΄ x β y β Uu:βI:Set βv:βUhu:u β Set.Ioo (βv - Ξ΄ v) (βv + Ξ΄ v)hI:I = Set.Ioo (βv - Ξ΄ v) (βv + Ξ΄ v)β’ u β U
All goals completed! πβ