{
  "id": "basis-topology",
  "title": "Basis (topology)",
  "lang": "en",
  "source_lang": "en",
  "summary": "A basis is a collection of open sets whose arbitrary unions constitute every open set of a topological space.",
  "category": "mathematics",
  "subcategory": "geometry",
  "type": "concept",
  "aliases": [
    "Base (topology)",
    "Topological basis",
    "Topological base",
    "Basis for a topology"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/basis-topology/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/basis-topology/",
      "json": "https://aiwiki.page/zh/basis-topology.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "In topology, a basis, or base, for a topological space is a collection of open sets from which every open set can be obtained by taking unions. Its members are called basis elements or basic open sets. A basis describes a topology without requiring an explicit list of all its open sets, and provides local criteria for openness and continuity. (leanprover-community.github.io)"
    },
    {
      "heading": "Definition and basis axioms",
      "text": "Let \\((X,\\tau)\\) be a topological space. A family \\(\\mathcal B\\subseteq\\tau\\) is a basis for \\(\\tau\\) if every \\(U\\in\\tau\\) is a union of members of \\(\\mathcal B\\). Equivalently, whenever \\(x\\in U\\) and \\(U\\) is open, there exists \\(B\\in\\mathcal B\\) such that\n\n\\[x\\in B\\subseteq U.\\]\n\nThis condition expresses that basic open sets can fit inside every open neighborhood of each point. (math.toronto.edu)\n\nA basis can also be specified before a topology is chosen. A family of subsets of \\(X\\) generates a topology by unions precisely when it satisfies two conditions:\n\n- Coverage: every \\(x\\in X\\) belongs to some \\(B\\in\\mathcal B\\).\n- Local 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\\) satisfying\n\n\\[x\\in B_3\\subseteq B_1\\cap B_2.\\]\n\nThe intersection itself need not be a basis element; it need only be a union of basis elements. (math.toronto.edu)\n\nThe generated topology is\n\n\\[\\tau_{\\mathcal B} =\\left\\{\\bigcup\\mathcal C:\\mathcal C\\subseteq\\mathcal B\\right\\}.\\]\n\nCoverage ensures that \\(X\\) is open. The empty set is the union of the empty subfamily. Arbitrary unions remain unions of basis elements, while the refinement condition ensures closure under finite intersections. These observations verify the topology axioms. (pi.math.cornell.edu)"
    },
    {
      "heading": "Examples",
      "text": "On the real line \\(\\mathbb R\\), all open intervals \\((a,b)\\) form a basis for the usual topology. Intervals with rational endpoints also suffice: every point of an open interval lies in a smaller interval with rational endpoints. Thus different bases can generate exactly the same topology. (math.mit.edu)\n\nIn a metric space \\((X,d)\\), the open balls\n\n\\[B_d(x,r)=\\{y\\in X:d(x,y)<r\\},\\qquad r>0,\\]\n\nform a basis. In Euclidean space \\(\\mathbb R^n\\), open boxes provide another basis for the same topology. For example, disks and axis-parallel open squares generate the same topology in the plane because either shape can be fitted around a point inside the other. (pi.math.cornell.edu)\n\nFor the discrete topology, the singleton sets form a basis: every subset is a union of singletons. For the indiscrete topology on a nonempty set \\(X\\), the family \\(\\{X\\}\\) is a basis. (pi.math.cornell.edu)"
    },
    {
      "heading": "Comparing bases and subbases",
      "text": "Suppose \\(\\mathcal B_1\\) and \\(\\mathcal B_2\\) generate topologies \\(\\tau_1\\) and \\(\\tau_2\\) on the same set. Then \\(\\tau_2\\) is finer than \\(\\tau_1\\), meaning \\(\\tau_1\\subseteq\\tau_2\\), exactly when every point of every \\(\\mathcal B_1\\)-element lies in a \\(\\mathcal B_2\\)-element contained within it. The topologies agree when this refinement condition holds in both directions. (math.toronto.edu)\n\nA subbasis is a family whose finite intersections form a basis. Consequently, generating a topology from a subbasis generally requires two operations: finite intersections, followed by arbitrary unions. Under the convention that the empty intersection equals \\(X\\), any family of subsets generates a topology this way. This distinction is reflected in the formal definition of topological bases in Mathlib: unions alone must suffice. (math.toronto.edu)"
    },
    {
      "heading": "Local bases and countability",
      "text": "A local basis at \\(x\\) is a family of neighborhoods of \\(x\\) such that every neighborhood of \\(x\\) contains one of its members. Unlike a basis for the entire topology, it concerns only one point. Given a global basis \\(\\mathcal B\\), the family\n\n\\[\\mathcal B_x=\\{B\\in\\mathcal B:x\\in B\\}\\]\n\nis a local basis at \\(x\\). (math.mit.edu)\n\nA first-countable space has a countable local basis at every point. A second-countable space has a global basis that is a countable set. Second countability implies first countability, but the converse fails: an uncountable discrete space has singleton local bases, yet every global basis must contain every singleton. (math.mit.edu)\n\nSecond-countable spaces are separable and Lindelöf. Choosing one point from each nonempty basic open set produces a countable dense set. For an arbitrary open cover, choosing a covering member for each basic set contained in some covering member produces a countable subcover. (math.ucla.edu)"
    },
    {
      "heading": "Constructions and applications",
      "text": "If \\(A\\subseteq X\\), the family\n\n\\[\\{A\\cap B:B\\in\\mathcal B\\}\\]\n\nis a basis for the subspace topology on \\(A\\). If \\(\\mathcal B_X\\) and \\(\\mathcal B_Y\\) are bases, the products \\(B_X\\times B_Y\\) form a basis for the product topology on \\(X\\times Y\\). In an arbitrary product, basic sets restrict only finitely many coordinates, leaving all others unrestricted. (pi.math.cornell.edu)\n\nTo check that a map \\(f:X\\to Y\\) is a continuous function, it suffices to verify that \\(f^{-1}(B)\\) is open for every member \\(B\\) of a basis for \\(Y\\). Every open set in \\(Y\\) is a union of such members, and inverse images preserve unions. Bases therefore reduce continuity tests to a specified collection of open sets. (leanprover-community.github.io)"
    }
  ],
  "links": [
    "topology",
    "topological-space",
    "open-set",
    "neighborhood-topology",
    "subset",
    "empty-set",
    "real-number",
    "rational-number",
    "metric-space",
    "open-ball",
    "euclidean-space",
    "first-countable-space",
    "countable-set",
    "separable-space",
    "dense-set",
    "subspace-topology",
    "cartesian-product",
    "product-topology",
    "continuous-function"
  ],
  "sources": [
    {
      "title": "leanprover-community.github.io/mathlib4_docs/Mathlib/Topology/Bases.html",
      "url": "https://leanprover-community.github.io/mathlib4_docs/Mathlib/Topology/Bases.html"
    },
    {
      "title": "math.toronto.edu/~herzig/MAT327-lecturenotes03.pdf",
      "url": "https://www.math.toronto.edu/~herzig/MAT327-lecturenotes03.pdf"
    },
    {
      "title": "pi.math.cornell.edu/~hatcher/Top/TopNotes.pdf",
      "url": "https://pi.math.cornell.edu/~hatcher/Top/TopNotes.pdf"
    },
    {
      "title": "math.mit.edu/~hrm/palestine/munkres-topology.pdf",
      "url": "https://math.mit.edu/~hrm/palestine/munkres-topology.pdf"
    },
    {
      "title": "math.ucla.edu/~sharifi/notes/topology-ch04.html",
      "url": "https://www.math.ucla.edu/~sharifi/notes/topology-ch04.html"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}