Bases and Subbases for a Topology
How do you describe a topology without listing every open set? For the real line, we do not enumerate every open subset. Instead, we say a set is open if it is a union of open intervals. This single idea is the subject of bases and subbases. The idea is that a small collection of "generating" sets can determine an entire topology. It matters because most topologies encountered in practice are defined this way. Metric topologies, product topologies, order topologies — these are typical examples. They are defined not by their full list of open sets. Instead, they are defined by a compact generating family. Knowing when a family of sets can generate a topology is essential. Knowing how to check openness relative to it is also essential. This is a basic working skill in topology. The big picture is this: a basis is a collection of "elementary" open sets. These sets are large enough to build every open set as a union. They are also small enough to check via a simple local criterion. A subbasis is an even more economical device. It is a collection whose finite intersections form a basis. Both notions let us pass from a small family of sets to a well-defined topology. This family is often geometrically transparent. They also let us verify continuity, openness, and convergence. We can test only on the generating family, rather than on all open sets. This article gives the precise definitions of basis and subbasis. It states and proves the basis criterion. This criterion characterizes which collections of sets qualify as a basis for some topology. It also proves the companion fact. Any collection of subsets of a set generates a topology. This happens via finite intersections and arbitrary unions. We work carefully through the logical order. First, we fix what a basis for a given topology means. Then, we show how an abstract collection can construct a topology from scratch. This collection must satisfy certain axioms. By the end, you will be able to certify whether a given family is a basis. You will be able to construct the topology it generates. You will distinguish basis-generation from the coarser subbasis-generation. You will also see why these tools matter. They are the natural setup for later constructions, such as The Product Topology. They are also useful for testing Continuity of Maps.
- A basis for a topology is a subcollection such that every open set is a union of basis elements.
- The basis criterion tells you exactly when an abstract family of subsets of is a basis for some topology: cover , and intersections of basis elements are unions of basis elements.
- A subbasis need not have the intersection property; the topology it generates is built from finite intersections of -elements, then arbitrary unions.
- The topology generated by a basis (or subbasis) is the coarsest topology containing that family — it is unique and well-defined.
- Openness of a set can be checked purely locally: is open iff every point of has a basis element around it contained in .
- Key idea: small structured families of sets — bases and subbases — freely generate topologies, and open sets are exactly unions (or unions of finite intersections) drawn from them.
Where this lives today
Bases and subbases are the workhorse for constructing every standard topology efficiently.
- Product and box topologies: the The Product Topology on a product is defined via a subbasis (cylinder sets restricted in one coordinate), then generated exactly by the finite-intersection/union recipe proved here — this is the very next construction that relies directly on this article's corollary.
- Continuity testing: to prove a map is continuous, it suffices to check that is open for every in a basis (or even subbasis) of ; this reduces Continuity of Maps checks from "all open sets" to a small generating family.
- Metric and normed spaces: open balls of rational radius centered at points of a countable dense set form a countable basis for separable metric spaces, underlying second-countability arguments in analysis.
- Zariski topology in algebraic geometry: the subbasis of complements of zero-sets of single polynomials generates the Zariski topology on affine space, a construction formally identical to the subbasis recipe here.
- Computer science and domain theory: Scott topologies on partially ordered sets (used in denotational semantics of programming languages) are specified via bases of "way-below" sets, directly invoking the basis criterion.
- Probability and measure theory: the Borel -algebra is generated from a basis (open intervals, or open sets) via a closure operation analogous in spirit to subbasis generation, though closing under countable rather than finite operations.
Ask the tutor: Can you show why the collection of open balls in a metric space always satisfies the basis intersection property, using the triangle inequality?
Let be a set.
Basis for a topology. Let be a topological space. A subcollection is a basis for if for every open set and every point , there exists with
Equivalently, every can be written as a union of members of .
Basis for generating a topology (abstract basis). A collection of subsets of is called a basis (in the generative sense) if: 1. (Covering) For every , there exists with . 2. (Intersection property) For all and every , there exists with
Given such , define
This is called the topology generated by .
Subbasis. A collection of subsets of with is called a subbasis. The topology generated by , denoted , is defined as the smallest topology on containing ; equivalently, it is where
is the collection of all finite intersections of members of (with the empty intersection, , taken to be ).
Intuition
Think of as a stock of "elementary tiles" you're allowed to lay down. A set counts as open exactly when it can be assembled — perhaps using infinitely many tiles — as a union of these elementary pieces. On , the tiles are open intervals ; every open set, however wild its shape, decomposes as a countable union of disjoint open intervals. The interval basis is small (parametrized by two real numbers) yet it generates the entire, vastly larger, standard topology. The two basis axioms encode exactly what you need for "union of tiles" to behave like a topology. Covering ensures itself, which must be open, is assembled from tiles. The intersection property ensures that when two tiles overlap, the overlap region is itself coverable by tiles — this is precisely what guarantees that finite intersections of open sets (unions of tiles) remain open (unions of tiles). Without it, intersecting two "open" unions of tiles might produce a set that cannot be redecomposed into tiles, breaking the topology axioms. A subbasis relaxes this further: its elements need not overlap nicely at all. To repair this, we first close the subbasis under finite intersections — manufacturing the missing overlap regions by brute force — and then take all unions. This two-stage process (finite intersect, then arbitrarily union) is the generic recipe for building a topology from any starting family whatsoever, however badly behaved.
Let be a set and let be a collection of subsets of satisfying: 1. (Covering) . 2. (Intersection property) For all and every , there is with . Define
Then is a topology on , and with a basis for in the sense of the definition above. Moreover is the coarsest topology on containing : if is any topology on with , then . Conversely, if is a basis (in the first, relative sense) for some topology on , then satisfies conditions 1 and 2 above, and .
We use direct verification of the topology axioms — the standard proof technique for basis-generation theorems — together with a double-inclusion argument for coarseness, and finish with the converse direction.
Step 1: . The empty set vacuously satisfies the defining condition of (there is no to check), so . For : by the covering axiom, every lies in some , and trivially ; hence .
Step 2: is closed under arbitrary unions. Let and let . Take any . Then for some . Since , there exists with . Since was arbitrary, .
Step 3: is closed under finite intersections. It suffices to show closure under intersection of two sets, then induct. Let and . Since , there is with . Since , there is with . Now , so by the intersection property (axiom 2) there is with
Since was arbitrary, . By induction on , any finite intersection of members of lies in : the base case is trivial and the inductive step applies the two-set case to and . Steps 1–3 show satisfies all three topology axioms, so is a topology on .
Step 4: , and is a basis for . Let . For any , take ; then , so the defining condition of is met with . Hence , proving . To see is a basis for in the relative sense: let and . By definition of , there is with . This is exactly the basis condition.
Step 5: Coarseness — is the smallest topology containing . Let be any topology on with . Let . For each choose with (possible by definition of ). Then
since each gives one inclusion, and each lies in its own giving the reverse inclusion. Each , and is closed under arbitrary unions (it is a topology), so . Hence , as claimed.
Step 6: Converse. Suppose is a basis for a topology on , in the relative sense: and every is a union of members of . Covering: Since , is a union of members of , so ; axiom 1 holds. Intersection property: Let . Since is a topology, . Since is a basis for , is a union of members of ; in particular for any there is some in that union with . This is axiom 2. So satisfies conditions 1 and 2, and by Steps 1–5 above, is a well-defined topology with as a basis for it. It remains to see . : since , Step 5 (applied with ) gives — wait, we need the reverse; let us verify directly. Let . Since is a basis for , for each there is with ; this is exactly the condition for . So . : this is Step 5 applied with , since . Both inclusions hold, so .
∎Let be a set and a collection of subsets of with . Let
be the collection of all finite intersections of members of (with giving by convention). Then satisfies the basis axioms of the Basis Criterion, and is a topology on — the topology generated by — which is the smallest topology on containing .
Covering: (the empty intersection), so trivially . Intersection property: Let and be two finite intersections of subbasis elements. Then
is itself a finite intersection of subbasis elements, hence . So for any , taking gives trivially (equality, in fact). This is even stronger than required by axiom 2. By the Basis Criterion, is a topology on containing . To see minimality: let be any topology with . Since is closed under finite intersections, every finite intersection of subbasis elements lies in , so . By the coarseness clause of the Basis Criterion (Step 5 of its proof), . Hence is the smallest topology containing .
∎Worked examples
Example 1: A basis on that is not the standard one, built from half-open "tick" rectangles. Let and let
be the collection of half-open rectangles, closed on the left/bottom edges, open on the right/top edges. We check the basis axioms directly. Covering: Given any point , the rectangle contains and belongs to . So . Intersection property: Take and . Their intersection is
which is again of the required rectangular form — provided it is nonempty, i.e. and similarly in the second coordinate. If it is nonempty it is itself a member of , so for any point in the intersection we may take . If the intersection is empty, axiom 2 is vacuous. Either way the axiom holds. Concretely, let and . Then
which is a nonempty member of , confirming the mechanics of the calculation. By the Basis Criterion, is a genuine topology on : it is called the lower-limit (or Sorgenfrey-type) product topology. Notice that a set like is open here but is also open, since it is a union of basis rectangles with decreasing to — but the singleton edge behavior differs from the standard topology: the set is not open in the standard topology on but is not open here either (no rectangle with fits inside a set of zero width in the first coordinate). This shows the generated topology, while sharing many open sets with the Euclidean topology, is a genuinely different, strictly finer topology than the standard one on (every standard-open rectangle is a union of these half-open ones, but not conversely).
Example 2: A subbasis on generating a non-obvious topology. Let and let where is the set of multiples of . First check the covering requirement: omits only and ? Let's check: for every (since ), so is covered. But an integer like or is divisible by no , so . Hence as stated fails the covering axiom for a subbasis on all of . To fix this, enlarge the subbasis: let , or equivalently work on together with excluded from consideration if desired — but the cleanest fix is to adjoin the whole space. Set ; now , and every integer lies in at least one member, so covers . Now compute a piece of the generated basis from the corollary: finite intersections of 's. Take (even integers) and (multiples of 3). Their intersection is
since and are coprime, . More generally for any , by the standard number-theoretic fact that an integer is divisible by both and exactly when it is divisible by . So the basis generated by alone is up to relabeling by lcm's — no genuinely new sets appear beyond further 's, because the family is already closed under the "intersection produces another " operation. This is a case where the subbasis, remarkably, is already a basis (once we also throw in the covering fix above), since finite intersections of subbasis elements stay inside the same family. The topology on (after the covering fix) consists precisely of arbitrary unions of sets of the form (multiples of ) together with -type pieces — a set is open iff it is a union of "multiples of " congruence classes-unions and the co-zero patch, an arithmetic topology quite different from the discrete or cofinite topologies on .
The intersection property (axiom 2 in the Basis Criterion) cannot be dropped: without it, as defined may fail to be a topology, because finite intersections of "basis-unions" can fail to be basis-unions. Let and let
Covering holds: . Intersection property fails: consider and ; their intersection is . For we would need some with . But every element of has two points, so no satisfies . Axiom 2 fails. Now define exactly as before: iff every has some with . Let us list the members of .
- : vacuously in .
- : for , take ; for , take . So .
- : similarly in .
- : for each point, the corresponding works (both basis sets sit inside ). So .
- Is in ? We would need with ; neither nor works. So .
- Is in ? Need with ; no such . So . Similarly .
So . But this collection is not closed under intersection: , and we just showed . Hence fails the finite-intersection topology axiom and is not a topology on . This shows precisely why the intersection property is essential in the Basis Criterion: without it, the "unions of basis elements" construction can produce a family that is not closed under finite intersections, so it fails to be a topology at all.
Scope, edge cases & common traps
| Situation | What holds | What to watch for |
|---|---|---|
| already known to be a basis for a given topology | Axioms 1, 2 automatically hold (proved in the converse direction) | Don't re-derive ; just use |
| is an abstract family with no topology yet specified | Must verify axioms 1 and 2 before concluding is a topology | Skipping axiom 2 is the single most common error (see counterexample) |
| is a subbasis | Take finite intersections first, then arbitrary unions | Taking unions of directly, without first intersecting, generally gives too small a family, not a topology |
| Empty intersection convention | The empty finite intersection of subbasis elements equals | Forgetting this makes fail to appear as generated open, breaking the topology axiom that is open |
| Two bases generate the same topology | Possible even if (e.g. open balls vs. open balls of rational radius in ) | "Basis" is not unique to a topology; never say "the" basis without context |
The mathematician behind it
Origins · 1 minFelix Hausdorff and how this was discovered
Hausdorff's 1914 treatise Grundzüge der Mengenlehre laid down the axiomatic apparatus of general topological spaces, including the systematic use of neighborhood bases to define topologies economically. Long before "basis" became standard vocabulary, Hausdorff showed that specifying a rich-enough local structure — what we would now call a basis of neighborhoods at each point — suffices to reconstruct an entire consistent notion of open set, continuity, and convergence. His name is permanently attached to the separation axiom ("Hausdorff space") that guarantees points can be separated by disjoint open sets drawn from any basis.
What exactly is the difference between a basis "for a topology" and a basis that "generates a topology"?
These are two views of the same object at different logical stages. If a topology is already given, a basis for is simply a subcollection such that every open set is a union of members of — this is a relative, descriptive notion. Separately, if you start with only an abstract family of subsets (no topology yet), and it satisfies the covering and intersection axioms, you can generate a topology from it. The Basis Criterion proves these views coincide: the topology generated by has as a basis for it in the relative sense, and conversely, any basis for a topology satisfies the generative axioms.
Do finite intersections of basis elements always need to equal another single basis element, or just contain one?
Just contain one — this is a frequent point of confusion. The intersection axiom only requires that for each point in , there exists some with ; it does not require . In many familiar examples (open balls in a metric space) the intersection itself is not a ball, but every point of the intersection has a smaller ball around it contained in the intersection, which is exactly what the axiom demands.
Why do we need the intersection property at all — isn't covering enough?
No: covering alone only guarantees is open in the generated family, not that the family is closed under finite intersections. The counterexample in this article, with and , covers perfectly but fails the intersection axiom, and the resulting "unions of basis elements" family is not closed under intersection — hence not a topology. The intersection property is precisely the condition that repairs this, guaranteeing overlaps of basis elements are themselves coverable by basis elements.
Is every subbasis-generated basis (finite intersections of ) automatically a basis in the generative sense?
Yes, and this is exactly what the corollary on subbasis generation proves. The key computation is that a finite intersection of finite intersections of -elements is again a finite intersection of -elements — this makes the intersection axiom hold with equality ( itself lies in ), which is even stronger than the basis criterion requires. Covering is arranged by hypothesis on (or by convention that the empty intersection, , equals ).
Can a topology fail to have a basis at all?
No — trivially, every topology is its own basis, since every open set is (trivially) a union consisting of itself. The interesting question is not existence but size: whether a topology admits a small basis, e.g. a countable one (this is the property of second countability). Many important spaces, like with the Euclidean topology, have a countable basis (rational-radius balls at rational-coordinate centers), which is a much stronger and more useful fact than mere existence of a basis.
How does the basis criterion interact with continuity of functions?
If is a function and is a basis for the topology on , then is continuous if and only if is open in for every . This follows because every open is a union of basis elements, so , a union of open sets (hence open) in provided each preimage of a basis element is open. This reduces the Continuity of Maps check to a much smaller test family, exactly analogous to the reduction bases give for describing open sets.
Does the choice of basis or subbasis affect properties like compactness or connectedness of the resulting space?
No — once the topology or is generated, all topological properties (compactness, connectedness, Hausdorffness, etc.) depend only on itself, not on which generating family produced it. Different bases or subbases can generate the identical topology, and topological properties are properties of the topology, not of the choice of generators. The generators are a computational convenience for verifying membership in , not additional structure on the space.