Given a
topological space (X,\tau), a
base (or
basis) for the
topology \tau (also called a
base for X if the topology is understood) is a
family \mathcal{B}\subseteq\tau of open sets such that every open set of the topology can be represented as the union of some subfamily of \mathcal{B}. The elements of \mathcal{B} are called
basic open sets. Equivalently, a family \mathcal{B} of subsets of X is a base for the topology \tau if and only if \mathcal{B}\subseteq\tau and for every open set U in X and point x\in U there is some basic open set B\in\mathcal{B} such that x\in B\subseteq U. For example, the collection of all
open intervals in the
real line forms a base for the standard topology on the real numbers. More generally, in a metric space M the collection of all open balls about points of M forms a base for the topology. In general, a topological space (X,\tau) can have many bases. The whole topology \tau is always a base for itself (that is, \tau is a base for \tau). For the real line, the collection of all open intervals is a base for the topology. So is the collection of all open intervals with rational endpoints, or the collection of all open intervals with irrational endpoints, for example. Note that two different bases need not have any basic open set in common. One of the
topological properties of a space X is the minimum
cardinality of a base for its topology, called the
weight of X and denoted w(X). From the examples above, the real line has countable weight. If \mathcal{B} is a base for the topology \tau of a space X, it satisfies the following properties: :(B1) The elements of \mathcal{B}
cover X, i.e., every point x\in X belongs to some element of \mathcal{B}. :(B2) For every B_1,B_2\in\mathcal{B} and every point x\in B_1\cap B_2, there exists some B_3\in\mathcal{B} such that x\in B_3\subseteq B_1\cap B_2. Property (B1) corresponds to the fact that X is an open set; property (B2) corresponds to the fact that B_1\cap B_2 is an open set. Conversely, suppose X is just a set without any topology and \mathcal{B} is a family of subsets of X satisfying properties (B1) and (B2). Then \mathcal{B} is a base for the topology that it generates. More precisely, let \tau be the family of all subsets of X that are unions of subfamilies of \mathcal{B}. Then \tau is a topology on X and \mathcal{B} is a base for \tau. (Sketch: \tau defines a topology because it is stable under arbitrary unions by construction, it is stable under finite intersections by (B2), it contains X by (B1), and it contains the empty set as the union of the empty subfamily of \mathcal{B}. The family \mathcal{B} is then a base for \tau by construction.) Such families of sets are a very common way of defining a topology. In general, if X is a set and \mathcal{B} is an arbitrary collection of subsets of X, there is a (unique) smallest topology \tau on X containing \mathcal{B}. (This topology is the
intersection of all topologies on X containing \mathcal{B}.) The topology \tau is called the
topology generated by \mathcal{B}, and \mathcal{B} is called a
subbase for \tau. The topology \tau consists of X together with all arbitrary unions of finite intersections of elements of \mathcal{B} (see the article about
subbase.) Now, if \mathcal{B} also satisfies properties (B1) and (B2), the topology generated by \mathcal{B} can be described in a simpler way without having to take intersections: \tau is the set of all unions of elements of \mathcal{B} (and \mathcal{B} is a base for \tau in that case). There is often an easy way to check condition (B2). If the intersection of any two elements of \mathcal{B} is itself an element of \mathcal{B} or is empty, then condition (B2) is automatically satisfied (by taking B_3=B_1\cap B_2). For example, the
Euclidean topology on the plane admits as a base the set of all open rectangles with horizontal and vertical sides, and a nonempty intersection of two such basic open sets is also a basic open set. But another base for the same topology is the collection of all open disks; and here the full (B2) condition is necessary. An example of a collection of open sets that is not a base is the set S of all semi-infinite intervals of the forms (-\infty,a) and (a,\infty) with a\in\mathbb{R}. The topology generated by S contains all open intervals (a,b)=(-\infty,b)\cap(a,\infty), hence S generates the standard topology on the real line. But S is only a subbase for the topology, not a base: a finite open interval (a,b) does not contain any element of S (equivalently, property (B2) does not hold). ==Examples==