{
  "id": "baire-category-theorem",
  "title": "Baire Category Theorem",
  "lang": "en",
  "source_lang": "en",
  "summary": "The Baire category theorem states that countable intersections of dense open sets are dense in complete metric spaces and locally compact Hausdorff spaces.",
  "category": "mathematics",
  "subcategory": "analysis",
  "type": "concept",
  "aliases": [
    "Baire's category theorem",
    "Baire theorem"
  ],
  "generated_at": "2026-11-05",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/baire-category-theorem/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/baire-category-theorem/",
      "json": "https://aiwiki.page/zh/baire-category-theorem.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The Baire category theorem is a fundamental result in topology and mathematical analysis asserting that certain spaces cannot be exhausted by countably many topologically small sets. Its standard metric form states that in a complete metric space, every countable intersection of dense open sets is dense. A second standard form holds for locally compact Hausdorff spaces. The theorem underlies major results in functional analysis and provides a way to prove that a property is generic: it holds outside a set that is small in the sense of category."
    },
    {
      "heading": "Category and topological smallness",
      "text": "Let \\(X\\) be a topological space. A subset \\(A\\subseteq X\\) is nowhere dense if its closure has empty interior:\n\n\\[\\operatorname{int}_X\\!\\left(\\overline{A}^{\\,X}\\right)=\\varnothing.\\]\n\nEquivalently, every nonempty open subset of \\(X\\) contains a nonempty open subset disjoint from \\(A\\). Thus, even after taking its closure, a nowhere dense set contains no open region of the space.\n\nA set is meagre, or of first category, if it is a countable union of nowhere dense sets:\n\n\\[M=\\bigcup_{n=1}^{\\infty}A_n.\\]\n\nA set that is not meagre is of second category. A set is comeagre, or residual, if its complement is meagre. These notions constitute Baire category, a topological theory of smallness distinct from both cardinality and measure.\n\nThe ambient space matters. A singleton is nowhere dense in the real line, but it is not nowhere dense when regarded as a one-point space. Likewise, a subset may be meagre in one ambient space and nonmeagre in another.\n\nA space \\(X\\) is called a Baire space if every countable intersection of dense open subsets of \\(X\\) is dense in \\(X\\). Equivalently, every nonempty open subset of \\(X\\) is nonmeagre in \\(X\\).\n\nThe word category here is historical terminology for classifying sets. It is unrelated to category theory."
    },
    {
      "heading": "Statements of the theorem",
      "text": "Complete metric spaces\n\nLet \\((X,d)\\) be a complete metric space, and let \\(G_1,G_2,\\ldots\\) be open subsets, each a dense set in \\(X\\). Then\n\n\\[\\bigcap_{n=1}^{\\infty}G_n\\]\n\nis dense in \\(X\\).\n\nExplicitly, for every nonempty open set \\(U\\subseteq X\\),\n\n\\[U\\cap\\bigcap_{n=1}^{\\infty}G_n\\ne\\varnothing.\\]\n\nAn equivalent formulation is that no nonempty open subset of a complete metric space can be covered by countably many nowhere dense subsets of that space. In particular, a nonempty complete metric space is not meagre in itself.\n\nA useful consequence concerns a countable closed cover. If \\(X\\ne\\varnothing\\) is complete and\n\n\\[X=\\bigcup_{n=1}^{\\infty}F_n,\\]\n\nwhere each \\(F_n\\) is a closed set, then at least one \\(F_n\\) has nonempty interior. This often converts pointwise information, expressed as a countable cover, into a statement valid on an open region.\n\nLocally compact Hausdorff spaces\n\nEvery locally compact Hausdorff space is also a Baire space. Here local compactness means that each point has a compact neighborhood.\n\nThis form does not require a metric. Its proof uses nested compact neighborhoods instead of completeness.\n\nTopological versus metric completeness\n\nThe Baire property is preserved by a homeomorphism, whereas completeness depends on the chosen metric. Consequently, a topological space is Baire whenever its topology can be induced by some complete metric, even if another compatible metric is incomplete.\n\nCompleteness is sufficient, not necessary. For example, the interval \\((0,1)\\) with its usual distance is incomplete, but it is locally compact and therefore Baire."
    },
    {
      "heading": "Proof in a complete metric space",
      "text": "The standard proof constructs nested closed balls whose radii tend to zero.\n\nLet \\(U\\subseteq X\\) be nonempty and open. Since \\(G_1\\) is open and dense, \\(U\\cap G_1\\) is nonempty and open. Choose a closed ball\n\n\\[K_1=\\overline{B}(x_1,r_1)\\subseteq U\\cap G_1, \\qquad 0<r_1<2^{-1}.\\]\n\nInductively, suppose \\(K_n=\\overline{B}(x_n,r_n)\\) has been chosen. The intersection\n\n\\[B(x_n,r_n)\\cap G_{n+1}\\]\n\nis nonempty and open. Choose a closed ball\n\n\\[K_{n+1}=\\overline{B}(x_{n+1},r_{n+1}) \\subseteq B(x_n,r_n)\\cap G_{n+1}, \\qquad 0<r_{n+1}<2^{-(n+1)}.\\]\n\nThe resulting balls satisfy\n\n\\[K_1\\supseteq K_2\\supseteq K_3\\supseteq\\cdots.\\]\n\nFor \\(m\\ge n\\), the center \\(x_m\\) belongs to \\(K_n\\), so\n\n\\[d(x_m,x_n)\\le r_n.\\]\n\nHence \\((x_n)\\) is a Cauchy sequence. Completeness gives a limit \\(x\\in X\\).\n\nFor each fixed \\(n\\), all later centers lie in the closed set \\(K_n\\), so \\(x\\in K_n\\). Since \\(K_n\\subseteq G_n\\) and \\(K_1\\subseteq U\\),\n\n\\[x\\in U\\cap\\bigcap_{n=1}^{\\infty}G_n.\\]\n\nAs \\(U\\) was arbitrary, the intersection is dense.\n\nThe locally compact Hausdorff proof follows the same pattern: choose nested nonempty open sets whose compact closures lie inside successive \\(G_n\\). Compactness then supplies a point common to all the closures."
    },
    {
      "heading": "Examples and consequences",
      "text": "The real line and the rational numbers\n\nThe real line \\(\\mathbb{R}\\) is complete and therefore Baire. Each singleton is nowhere dense in \\(\\mathbb{R}\\), so every countable subset is meagre. In particular, the rational numbers form a dense meagre subset of \\(\\mathbb{R}\\). Their complement, the irrational numbers, is comeagre.\n\nThis illustrates an important distinction: dense does not mean large in category. A dense set can be meagre.\n\nThe rational numbers, considered as a metric space in their own right, are not Baire. They are countable, and each singleton is nowhere dense in \\(\\mathbb{Q}\\), so \\(\\mathbb{Q}\\) is meagre in itself.\n\nWriting \\(\\mathbb{Q}=\\{q_1,q_2,\\ldots\\}\\), each set\n\n\\[G_n=\\mathbb{Q}\\setminus\\{q_n\\}\\]\n\nis open and dense in \\(\\mathbb{Q}\\), yet\n\n\\[\\bigcap_{n=1}^{\\infty}G_n=\\varnothing.\\]\n\nThus completeness cannot simply be dropped from the metric theorem without a replacement hypothesis.\n\nGeneric properties\n\nSuppose a property holds on each of a sequence of open dense sets \\(G_n\\). In a Baire space, the set where all these properties hold simultaneously,\n\n\\[G=\\bigcap_{n=1}^{\\infty}G_n,\\]\n\nis dense and comeagre.\n\nMore generally, the complement of any meagre set contains a countable intersection of open dense sets: replace the nowhere dense sets in its defining union by their closures and take complements. Thus every comeagre subset of a Baire space is dense.\n\nThis is the basis of many genericity arguments. A theorem may establish that an object satisfies countably many requirements without explicitly constructing a particular object satisfying them all.\n\n“Generic” should not be read as “everywhere.” In a nonempty Baire space, a comeagre set can have a dense exceptional complement, as the irrational numbers do in \\(\\mathbb{R}\\).\n\nTypical continuous functions\n\nThe space \\(C([0,1])\\) of real-valued continuous functions, equipped with the supremum norm\n\n\\[\\|f\\|_\\infty=\\sup_{x\\in[0,1]}|f(x)|,\\]\n\nis a Banach space and hence a Baire space.\n\nA classical application shows that the functions having no finite derivative at any point of \\((0,1)\\) form a comeagre subset of this space. Thus a typical continuous function, in the category sense, is nowhere differentiable on the interior of its domain.\n\nThe category argument requires more than the theorem alone: suitable sets encoding bounded difference quotients must be shown to be nowhere dense. The theorem then ensures that their countable union cannot exhaust the function space."
    },
    {
      "heading": "Role in functional analysis",
      "text": "The Baire category theorem is a central ingredient in several basic theorems about bounded linear operators.\n\nUniform boundedness principle\n\nThe uniform boundedness principle, also called the Banach–Steinhaus theorem, states that a pointwise bounded family of bounded linear operators from a Banach space \\(X\\) into a normed space \\(Y\\) is uniformly bounded in operator norm.\n\nFor a family \\(\\mathcal T\\), define\n\n\\[E_n= \\left\\{ x\\in X:\\sup_{T\\in\\mathcal T}\\|Tx\\|\\le n \\right\\}.\\]\n\nEach \\(E_n\\) is closed, and pointwise boundedness gives\n\n\\[X=\\bigcup_{n=1}^{\\infty}E_n.\\]\n\nThe Baire category theorem implies that some \\(E_N\\) contains an open ball \\(B(x_0,r)\\).\n\nFor \\(\\|h\\|<r\\), both \\(x_0\\) and \\(x_0+h\\) belong to \\(E_N\\), so\n\n\\[\\|Th\\| \\le \\|T(x_0+h)\\|+\\|Tx_0\\| \\le 2N\\]\n\nfor every \\(T\\in\\mathcal T\\). Scaling yields a bound on all the operator norms. This illustrates the theorem's characteristic use: a countable closed cover produces an open region on which an estimate is uniform.\n\nOpen mapping and closed graph theorems\n\nThe open mapping theorem states that a bounded surjective linear operator between Banach spaces maps open sets to open sets. Its proof uses Baire category to obtain a neighborhood inside the closure of the image of a ball, followed by an approximation argument that removes the closure.\n\nThe closed graph theorem states that a linear operator between Banach spaces is bounded if its graph is closed in the product space. It follows from the open mapping theorem by viewing the graph as a Banach space and applying the theorem to a coordinate projection.\n\nCompleteness is essential to these general results; analogous assertions for arbitrary normed spaces can fail."
    },
    {
      "heading": "Category and measure",
      "text": "Category and measure theory provide different notions of smallness. A meagre set need not have measure zero, and a set of measure zero need not be meagre.\n\nFor example, a fat Cantor set can be closed and nowhere dense while having positive Lebesgue measure. Conversely, there are dense countable intersections of open subsets of \\(\\mathbb{R}\\) that have measure zero. Such sets are comeagre as well as null.\n\nOne construction chooses, for each \\(n\\), an open dense set \\(U_n\\) containing all rational numbers and satisfying\n\n\\[m(U_n)<2^{-n}.\\]\n\nThese sets can be obtained by covering the enumerated rationals with intervals of sufficiently small total length. Then\n\n\\[G=\\bigcap_{n=1}^{\\infty}U_n\\]\n\nis dense by the Baire category theorem, while \\(m(G)=0\\).\n\nConsequently, “generic” in the category sense and “almost everywhere” in the measure-theoretic sense are not interchangeable. Their comparison requires both a topology and a specified measure."
    },
    {
      "heading": "Scope and history",
      "text": "The theorem concerns countable intersections. Arbitrary intersections of dense open sets can be empty even in \\(\\mathbb{R}\\):\n\n\\[\\bigcap_{x\\in\\mathbb{R}} \\bigl(\\mathbb{R}\\setminus\\{x\\}\\bigr)=\\varnothing.\\]\n\nNor is being nonmeagre in itself enough to make a space Baire: the Baire condition requires every nonempty open subset to be nonmeagre in the ambient space.\n\nThe theorem is named after René Baire, whose work on discontinuous functions in 1899 established category methods as a basic tool of analysis. Its later use in operator theory and the study of function spaces made it one of the principal links between topological structure and analytic existence arguments."
    }
  ],
  "links": [
    "topology",
    "mathematical-analysis",
    "complete-metric-space",
    "functional-analysis",
    "topological-space",
    "closure-topology",
    "category-theory",
    "metric-space",
    "dense-set",
    "open-set",
    "closed-set",
    "hausdorff-space",
    "homeomorphism",
    "cauchy-sequence",
    "rational-number",
    "banach-space",
    "derivative",
    "measure-theory",
    "lebesgue-measure",
    "almost-everywhere"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}