Documentation

Books.Analysis2_Tao_2022.Chapters.Chap02.section05

@[reducible, inline]
abbrev TopologicalSpacePair :
Type (u + 1)

Definition 2.12: A topological space is a pair (X, O) consisting of a set X and a collection O subset 2^X such that (1) the empty set and X are in O, (2) finite intersections of members of O are in O, and (3) arbitrary unions of members of O are in O; the members of O are called open sets and O is called a topology on X. In Lean we bundle this as a type equipped with a TopologicalSpace structure.

Equations
Instances For
    def IsNeighborhood {X : Type u} [TopologicalSpace X] (x : X) (U : Set X) :

    Definition 2.13: A set U ⊆ X is a neighborhood of x in a topological space if U is open and x ∈ U.

    Equations
    Instances For
      def TopologicalConvergesFrom {X : Type u} [TopologicalSpace X] (m : ) (xseq : X) (x : X) :

      Definition 2.14: [Topological convergence] Let (X, 𝓕) be a topological space, let m ∈ ℤ, and let (x^{(n)})_{n=m}^{∞} be a sequence in X. For x ∈ X, the sequence converges to x iff for every neighborhood V of x there exists an integer N ≥ m such that x^{(n)} ∈ V for all integers n ≥ N.

      Equations
      Instances For
        def IsInteriorPointTopological {X : Type u} [TopologicalSpace X] (E : Set X) (x0 : X) :

        Definition 2.15: [Interior point, exterior point, boundary point] Let (X, 𝓕) be a topological space, let E ⊆ X, and let x0 ∈ X. (1) x0 is an interior point of E iff there exists a neighborhood V of x0 with V ⊆ E. (2) x0 is an exterior point of E iff there exists a neighborhood V of x0 with V ∩ E = ∅. (3) x0 is a boundary point of E iff it is neither interior nor exterior; equivalently, for every neighborhood V of x0, both V ∩ E ≠ ∅ and V ∩ (X \ E) ≠ ∅.

        Equations
        Instances For
          def IsExteriorPointTopological {X : Type u} [TopologicalSpace X] (E : Set X) (x0 : X) :

          A point is an exterior point of E if some neighborhood of it misses E.

          Equations
          Instances For
            def IsBoundaryPointTopological {X : Type u} [TopologicalSpace X] (E : Set X) (x0 : X) :

            A point is a boundary point of E if it is neither interior nor exterior.

            Equations
            Instances For
              def IsAdherentPointTopological {X : Type u} [TopologicalSpace X] (E : Set X) (x0 : X) :

              A point is adherent to E if every neighborhood containing an open neighborhood of it meets E.

              Equations
              Instances For

                Definition 2.16 (Closure point): Let (X, 𝓕) be a topological space and E ⊆ X. (1) A point x0 ∈ X is an adherent point of E iff for every neighborhood V of x0 (i.e., V contains an open set containing x0), one has V ∩ E ≠ ∅. (2) The closure \overline{E} is the set of all adherent points of E: \overline{E} = {x ∈ X : for every neighborhood V of x, V ∩ E ≠ ∅}.

                Equations
                Instances For
                  @[reducible, inline]
                  abbrev IsClosedTopological {X : Type u} [TopologicalSpace X] (K : Set X) :

                  Definition 2.17: Let (X, 𝓕) be a topological space and K ⊆ X. The set K is closed iff its complement X \ K is open (i.e. X \ K ∈ 𝓕).

                  Equations
                  Instances For
                    def relativeTopology {X : Type u} [TopologicalSpace X] (Y : Set X) :
                    Set (Set X)

                    Definition 2.18: [Relative topology] Let (X, 𝓕) be a topological space and Y ⊆ X. Define 𝓕_Y := {V ∩ Y : V ∈ 𝓕}; this collection is the relative (subspace) topology on Y, and the pair (Y, 𝓕_Y) is a topological subspace of (X, 𝓕).

                    Equations
                    Instances For
                      def IsContinuousAtTopological {X Y : Type u} [TopologicalSpace X] [TopologicalSpace Y] (f : XY) (x0 : X) :

                      Definition 2.19: (Continuous functions) Let (X, 𝓕_X) and (Y, 𝓕_Y) be topological spaces and let f : X → Y. For x0 ∈ X, the function f is continuous at x0 iff for every neighborhood V of f x0 there exists a neighborhood U of x0 such that f '' U ⊆ V. The function f is continuous iff it is continuous at every point x ∈ X.

                      Equations
                      Instances For

                        A function is continuous if it is continuous at every point.

                        Equations
                        Instances For
                          @[reducible, inline]
                          abbrev IsCompactTopological {X : Type u} [TopologicalSpace X] (Y : Set X) :

                          Definition 2.20: (1) A topological space is compact if every open cover has a finite subcover. (2) A subset Y ⊆ X is compact if the subspace topology on Y is compact; in Lean we use IsCompact Y, and the space is compact iff IsCompact (Set.univ : Set X).

                          Equations
                          Instances For
                            @[reducible, inline]

                            A topological space is compact if its underlying set is compact.

                            Equations
                            Instances For
                              @[reducible, inline]

                              Definition 2.22 (Hausdorff topological space): A topological space is Hausdorff if for any distinct points x, y there exist neighborhoods V of x and W of y with V ∩ W = ∅.

                              Equations
                              Instances For
                                @[reducible, inline]

                                Definition 2.23: [Order topology] Let (X, ≤) be a totally ordered set. A set V ⊆ X is open if for every x ∈ V there exists a set I with x ∈ I ⊆ V, where I is an interval {y : X | a < y ∧ y < b}, a ray {y : X | a < y} or {y : X | y < b}, or the whole space X; the collection of such open sets defines the order topology on X.

                                Equations
                                Instances For
                                  @[reducible, inline]

                                  Definition 2.24 (Cofinite topology): Let X be a set and define 𝓕 := {E ⊆ X | E = ∅ or X \ E is finite}. The pair (X, 𝓕) is called the cofinite topology on X. In Lean this is the TopologicalSpace structure induced by the CofiniteTopology type synonym.

                                  Equations
                                  Instances For
                                    def IsCocountableOpen (X : Type u) (E : Set X) :

                                    A set is cocountable-open if it is empty or its complement is countable.

                                    Equations
                                    Instances For

                                      The whole space is cocountable-open.

                                      theorem cocountable_isOpen_inter (X : Type u) (s t : Set X) :

                                      Intersections of cocountable-open sets are cocountable-open.

                                      theorem cocountable_isOpen_sUnion (X : Type u) (S : Set (Set X)) :
                                      (∀ tS, IsCocountableOpen X t)IsCocountableOpen X (⋃₀ S)

                                      Arbitrary unions of cocountable-open sets are cocountable-open.

                                      Definition 2.25 (Cocountable topology): Let X be a set. Define 𝓕 := {E ⊆ X | E = ∅ or X \ E is at most countable}. The pair (X, 𝓕) is called the cocountable topology on X.

                                      Equations
                                      Instances For
                                        theorem metric_ball_isNeighborhood {X : Type u} [MetricSpace X] (x : X) {r : } (hr : 0 < r) :

                                        Proposition 2.23: In a metric space, the open ball Metric.ball x r with r > 0 is a neighborhood of x.

                                        Proposition 2.24: Let (x_n) be a sequence in , viewed in the extended real line EReal. Then x_n → +∞ iff liminf_{n→∞} x_n = +∞. Similarly, x_n → -∞ iff limsup_{n→∞} x_n = -∞.

                                        theorem exists_topology_only_empty_univ (X : Type u) :
                                        ∃ (T : TopologicalSpace X), ∀ (U : Set X), IsOpen U U = U = Set.univ

                                        Proposition 2.25: Let X be a set and define 𝓕 := {∅, X}. Then (X, 𝓕) is a topology on X, i.e. there is a topological structure whose open sets are exactly and Set.univ.

                                        @[reducible, inline]

                                        Definition 2.26: [First countable topological space] A topological space (X, F) is first countable if for every x in X there exists a countable collection of neighborhoods V_1, V_2, ... of x such that every neighborhood of x contains at least one V_n. In Lean this is the predicate FirstCountableTopology.

                                        Equations
                                        Instances For