Let XX be a set. A topology on XX is a collection T\mathcal{T} of subsets of XX that satisfies the topology axioms:

  • ∅∈T\varnothing\in\mathcal{T} and X∈T;X\in\mathcal{T};
  • the union of any collection of sets in T\mathcal{T} is in T;\mathcal{T};
  • the intersection of finitely many sets in T\mathcal{T} is in T.\mathcal{T}.

Let XX be a set and T\mathcal{T} be a topology on X.X. The pair (X,T)\left(X,\mathcal{T}\right) is a topological space, and is written XX when the topology is understood. The sets in T\mathcal{T} are the open sets of the topological space.

Let (X,T)\left(X,\mathcal{T}\right) be a topological space and F⊆X.F\subseteq X. The set FF is closed if and only if its complement X∖FX\setminus F is open. Arbitrary intersections and finite unions of closed sets are closed.

Let (X,d)(X,d) be a metric space. The metric topology induced by dd is the collection of open sets of the metric space, which satisfies the topology axioms. Every metric space is a topological space with its metric topology, and equivalent metrics induce the same topology.

Let XX be a set. The discrete topology on XX is the topology in which every subset of XX is open, and is induced by the discrete metric. The indiscrete topology on XX is the topology {∅,X}.\left\{\varnothing,X\right\}.

Let (X,T)\left(X,\mathcal{T}\right) be a topological space. The topological space is metrisable if and only if its topology is induced by some metric. The indiscrete topology on a set with more than one point is not metrisable.

Let XX be a set and T\mathcal{T} and T′\mathcal{T}' be topologies on X.X. The topology T′\mathcal{T}' is finer than T,\mathcal{T}, and T\mathcal{T} is coarser than T′,\mathcal{T}', if and only if T⊆T′.\mathcal{T}\subseteq\mathcal{T}'. The discrete topology is the finest topology on XX and the indiscrete topology is the coarsest.

Let (X,T)\left(X,\mathcal{T}\right) be a topological space and x∈X.x\in X. A neighbourhood of xx is a set that contains an open set containing x.x.

Let (X,T)\left(X,\mathcal{T}\right) be a topological space and A⊆X.A\subseteq X. The interior points, limit points and isolated points of A,A, and the interior, closure and boundary of AA and the density of AA in X,X, are defined as in a metric space with “open ball centred at xx” replaced by “neighbourhood of xx”. The interior remains the largest open set contained in AA and the closure remains the smallest closed set containing A.A.

Let (X,T)\left(X,\mathcal{T}\right) be a topological space, (xn)\left(x_n\right) be a sequence in XX and x∈X.x\in X. The sequence (xn)\left(x_n\right) converges to xx if and only if every neighbourhood of xx contains all but finitely many of its terms.

Let (X,T)\left(X,\mathcal{T}\right) be a topological space. A basis for T\mathcal{T} is a collection B⊆T\mathcal{B}\subseteq\mathcal{T} of open sets such that every open set is a union of sets in B.\mathcal{B}. The open balls form a basis for the metric topology, as do the open balls with rational radii, and the open intervals with rational endpoints form a countable basis for the usual topology on R.\mathbb{R}.

Let XX be a set and B\mathcal{B} be a collection of subsets of X.X. The collection B\mathcal{B} is a basis for some topology on XX if and only if B\mathcal{B} covers XX and the intersection of any two sets in B\mathcal{B} is a union of sets in B.\mathcal{B}. The topology generated by B\mathcal{B} is the coarsest topology containing B.\mathcal{B}.

Let (X,T)\left(X,\mathcal{T}\right) be a topological space and A⊆X.A\subseteq X. The subspace topology on AA is the collection of intersections of AA with the open sets of X.X.

TA:={U∩A:U∈T}\mathcal{T}_A:=\left\{U\cap A:U\in\mathcal{T}\right\}

Let (X,T)\left(X,\mathcal{T}\right) be a topological space and A⊆X.A\subseteq X. The set AA with the subspace topology is a subspace of X.X. Subspaces have the following properties:

  • a metric subspace carries the subspace topology;
  • a set that is open in a subspace need not be open in the whole space: [0,12)\left[0,\frac{1}{2}\right) is open in the subspace [0,1]\left[0,1\right] of R;\mathbb{R};
  • if AA is open in XX then the open sets of the subspace are exactly the open subsets of XX contained in A,A, and likewise for closed sets if AA is closed.

Let (X,TX)\left(X,\mathcal{T}_X\right) and (Y,TY)\left(Y,\mathcal{T}_Y\right) be topological spaces. The product topology on the Cartesian product X×YX\times Y is the topology generated by the basis of products of open sets.

B:={U×V:U∈TX, V∈TY}\mathcal{B}:=\left\{U\times V:U\in\mathcal{T}_X,\,V\in\mathcal{T}_Y\right\}

The product of finitely many spaces is defined in the same way. The product topology has the following properties:

  • the product topology on Rm×Rn\mathbb{R}^m\times\mathbb{R}^n is the usual topology on Rm+n;\mathbb{R}^{m+n};
  • the product of the metric spaces (X,dX)\left(X,d_X\right) and (Y,dY)\left(Y,d_Y\right) is metrisable by the product metric d((x,y),(x′,y′)):=max⁡{dX(x,x′),dY(y,y′)},d\left(\left(x,y\right),\left(x',y'\right)\right):=\max\left\{d_X\left(x,x'\right),d_Y\left(y,y'\right)\right\}, which is strongly equivalent to dX+dYd_X+d_Y and to dX2+dY2;\sqrt{d_X^2+d_Y^2};
  • a sequence in a product converges if and only if each of its coordinate sequences converges.

Let (X,TX)\left(X,\mathcal{T}_X\right) and (Y,TY)\left(Y,\mathcal{T}_Y\right) be topological spaces and f:X→Yf:X\rightarrow Y be a function. The function ff is continuous if and only if the inverse image of every open set is open.

f−1(V)∈TX  ∀ V∈TYf^{-1}(V)\in\mathcal{T}_X\,\,\forall\,V\in\mathcal{T}_Y

For metric spaces this agrees with the earlier definition. Equivalently, ff is continuous if and only if the inverse image of every closed set is closed, or if and only if the inverse image of every set in a basis for TY\mathcal{T}_Y is open.

Let XX and YY be topological spaces. The coordinate projections of the product X×YX\times Y are the functions (x,y)↦x\left(x,y\right)\mapsto x and (x,y)↦y.\left(x,y\right)\mapsto y. Continuous functions between topological spaces have the following properties:

  • constant functions, the identity function, the inclusion of a subspace and the coordinate projections of a product are continuous;
  • a composition of continuous functions is continuous;
  • the restriction of a continuous function to a subspace is continuous;
  • a function into a product is continuous if and only if each of its coordinate functions is continuous;
  • a continuous function maps convergent sequences to convergent sequences, but in a general topological space the converse can fail, so continuity is not determined by sequences alone.

Let XX and YY be topological spaces and f:X→Yf:X\rightarrow Y be a function. The function ff is a homeomorphism if and only if ff is a bijection and both ff and f−1f^{-1} are continuous. The spaces XX and YY are homeomorphic if and only if there exists a homeomorphism between them. A homeomorphism induces a bijection between the topologies of XX and Y.Y.

A topological property is a property of topological spaces that is preserved by homeomorphisms. Being metrisable and having a countable basis are topological properties. Boundedness and completeness are not topological properties, since x↦tan⁡xx\mapsto\tan x is a homeomorphism from the bounded incomplete space (−π2,π2)\left(-\frac{\pi}{2},\frac{\pi}{2}\right) onto R.\mathbb{R}.

Let XX and YY be topological spaces and f:X→Yf:X\rightarrow Y be a continuous function. The function ff is an open map if and only if it maps open sets to open sets. The function ff is a closed map if and only if it maps closed sets to closed sets. A continuous bijection need not be a homeomorphism: t↦eitt\mapsto e^{it} is a continuous bijection from [0,2π)\left[0,2\pi\right) onto the unit circle whose inverse is discontinuous at 1.1. A continuous bijection is a homeomorphism if and only if it is an open map, if and only if it is a closed map.

Let (X,T)\left(X,\mathcal{T}\right) be a topological space. The space XX is Hausdorff if and only if any two distinct points have disjoint neighbourhoods.

∀ x≠y∈X ∃ U,V∈T:x∈U, y∈V, U∩V=∅\forall\,x\neq y\in X\,\exists\,U,V\in\mathcal{T}:x\in U,\,y\in V,\,U\cap V=\varnothing

Hausdorff spaces have the following properties:

  • every metric space is Hausdorff, since B(x,r2)B\left(x,\frac{r}{2}\right) and B(y,r2)B\left(y,\frac{r}{2}\right) are disjoint when r=d(x,y);r=d(x,y);
  • the indiscrete topology on a set with more than one point is not Hausdorff;
  • subspaces and products of Hausdorff spaces are Hausdorff;
  • in a Hausdorff space finite sets are closed and a convergent sequence has exactly one limit, whereas in the indiscrete topology every sequence converges to every point.