A subcollection B⊆T of a topology T on a topological space X is a basis for the topology T if given an open set U and point p∈U, there is an open set B∈B such that p∈B⊂U, i.e. ∀U∈T,∀p∈U,∃B∈B:p∈B⊂U.We also say that B generates the topology T or that B is a basis for the topological space X.
A collection B of open sets of X is a if and only if every open set in X is a union of sets in B i.e. B is a basis⟺∀U∈T,∃(Bn​)n≥1​⊆B:U=n⋃​Bn​