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
- TopologicalSpacePair = ((X : Type ?u.3) × TopologicalSpace X)
Instances For
Definition 2.13: A set U ⊆ X is a neighborhood of x in a topological space if U is open
and x ∈ U.
Equations
- IsNeighborhood x U = (IsOpen U ∧ x ∈ U)
Instances For
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
- TopologicalConvergesFrom m xseq x = ∀ (V : Set X), IsNeighborhood x V → ∃ N ≥ m, ∀ n ≥ N, xseq n ∈ V
Instances For
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
- IsInteriorPointTopological E x0 = ∃ (V : Set X), IsNeighborhood x0 V ∧ V ⊆ E
Instances For
A point is an exterior point of E if some neighborhood of it misses E.
Equations
- IsExteriorPointTopological E x0 = ∃ (V : Set X), IsNeighborhood x0 V ∧ V ∩ E = ∅
Instances For
A point is a boundary point of E if it is neither interior nor exterior.
Equations
- IsBoundaryPointTopological E x0 = (¬IsInteriorPointTopological E x0 ∧ ¬IsExteriorPointTopological E x0)
Instances For
A point is adherent to E if every neighborhood containing an open neighborhood of it meets E.
Equations
- IsAdherentPointTopological E x0 = ∀ (V : Set X), (∃ (U : Set X), IsNeighborhood x0 U ∧ U ⊆ V) → (V ∩ E).Nonempty
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
- closureSetTopological E = {x : X | IsAdherentPointTopological E x}
Instances For
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
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, 𝓕).
Instances For
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
- IsContinuousAtTopological f x0 = ∀ (V : Set Y), IsNeighborhood (f x0) V → ∃ (U : Set X), IsNeighborhood x0 U ∧ f '' U ⊆ V
Instances For
A function is continuous if it is continuous at every point.
Equations
- IsContinuousTopological f = ∀ (x : X), IsContinuousAtTopological f x
Instances For
A topological space is compact if its underlying set is compact.
Instances For
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
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
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
The whole space is cocountable-open.
Intersections of cocountable-open sets are cocountable-open.
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
- cocountableTopology X = { IsOpen := IsCocountableOpen X, isOpen_univ := ⋯, isOpen_inter := ⋯, isOpen_sUnion := ⋯ }
Instances For
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 = -∞.
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.
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.