Canonical: https://knowlpedia.com/topology/basis-of-topology/

# Basis of a topology

A collection of sets whose unions give all open sets.

A **basis for a topology** on a [set](https://knowlpedia.com/shared-foundations/set/) \(X\) is a collection \(\mathcal B\) of [subsets](https://knowlpedia.com/shared-foundations/subset/) of \(X\) satisfying:

1. **Covering:** for every \(x\in X\), there is \(B\in\mathcal B\) with \(x\in B\).
2. **Intersection refinement:** if \(x\in B_1\cap B_2\) with \(B_1,B_2\in\mathcal B\), there is \(B_3\in\mathcal B\) such that \(x\in B_3\subseteq B_1\cap B_2\).

## Generated topology

The [topology](https://knowlpedia.com/topology/topology/) generated by \(\mathcal B\) consists of all unions of members of \(\mathcal B\), including the empty union. Its open sets are exactly the sets \(U\) such that each \(x\in U\) lies in some \(B\in\mathcal B\) with \(B\subseteq U\).

For an already specified topology \(\mathcal T\), saying that \(\mathcal B\) is a basis **of \(\mathcal T\)** means that \(\mathcal B\subseteq\mathcal T\) and every member of \(\mathcal T\) is a union of members of \(\mathcal B\). This is equivalent to \(\mathcal B\) generating \(\mathcal T\).

## Examples

- In \(\mathbb{R}\) with the usual topology, the open intervals \((a,b)\) form a basis.
- In a [metric space](https://knowlpedia.com/topology/metric-space/), the family of [open balls](https://knowlpedia.com/topology/open-ball/) forms a basis for the [metric-induced topology](https://knowlpedia.com/topology/metric-induced-topology/).
- In a product \(X\times Y\) with the [product topology](https://knowlpedia.com/topology/product-topology/), the sets \(U\times V\) with \(U\) open in \(X\) and \(V\) open in \(Y\) form a basis.
