# Meagre set

In the mathematical field of general topology, a meagre set (also called a meager set or a set of first category) is a subset of a topological space that is small or negligible in a precise sense detailed below. A set that is not meagre is called nonmeagre, or of the second category. See below for definitions of other related terms.

The meagre subsets of a fixed space form a σ-ideal of subsets; that is, any subset of a meagre set is meagre, and the union of countably many meagre sets is meagre.

Meagre sets play an important role in the formulation of the notion of Baire space and of the Baire category theorem, which is used in the proof of several fundamental results of functional analysis.

## Definitions

Throughout, ${\displaystyle X}$ will be a topological space.

A subset of ${\displaystyle X}$ is called meagre in ${\displaystyle X,}$ a meagre subset of ${\displaystyle X,}$ or of the first category in ${\displaystyle X}$ if it is a countable union of nowhere dense subsets of ${\displaystyle X}$ (where a nowhere dense set is a set whose closure has empty interior).[1] The qualifier "in ${\displaystyle X}$" can be omitted if the ambient space is fixed and understood from context.

A subset that is not meagre in ${\displaystyle X}$ is called nonmeagre in ${\displaystyle X,}$ a nonmeagre subset of ${\displaystyle X,}$ or of the second category in ${\displaystyle X.}$[1]

A topological space is called meagre (respectively, nonmeagre) if it is a meagre (respectively, nonmeagre) subset of itself.

A subset ${\displaystyle A}$ of ${\displaystyle X}$ is called comeagre in ${\displaystyle X,}$ or residual in ${\displaystyle X,}$ if its complement ${\displaystyle X\setminus A}$ is meagre in ${\displaystyle X}$. (This use of the prefix "co" is consistent with its use in other terms such as "cofinite".) A subset is comeagre in ${\displaystyle X}$ if and only if it is equal to a countable intersection of sets, each of whose interior is dense in ${\displaystyle X.}$

The notions of nonmeagre and comeagre should not be confused. If the space ${\displaystyle X}$ is meagre, every subset is both meagre and comeagre, and there are no nonmeagre sets. If the space ${\displaystyle X}$ is nonmeager, no set is at the same time meagre and comeager, every comeagre set is nonmeagre, and there can be nonmeagre sets that are not comeagre, that is, with nonmeagre complement. See the Examples section below.

As an additional point of terminology, if a subset ${\displaystyle A}$ of a topological space ${\displaystyle X}$ is given the subspace topology induced from ${\displaystyle X}$, one can talk about it being a meagre space, namely being a meagre subset of itself (when considered as a topological space in its own right). In this case ${\displaystyle A}$ can also be called a meagre subspace of ${\displaystyle X}$, meaning a meagre space when given the subspace topology. Importantly, this is not the same as being meagre in the whole space ${\displaystyle X}$. (See the Properties and Examples sections below for the relationship between the two.) Similarly, a nonmeagre subspace will be a set that is nonmeagre in itself, which is not the same as being nonmeagre in the whole space. Be aware however that in the context of topological vector spaces some authors may use the phrase "meagre/nonmeagre subspace" to mean a vector subspace that is a meagre/nonmeagre set relative to the whole space.[2]

The terms first category and second category were the original ones used by René Baire in his thesis of 1899.[3] The meagre terminology was introduced by Bourbaki in 1948.[4][5]

## Properties

Every nowhere dense subset of ${\displaystyle X}$ is meagre. Consequently, any closed subset with empty interior is meagre. Thus a closed nonmeagre subset of ${\displaystyle X}$ must have nonempty interior.

(1) Any subset of a meagre set is meagre; (2) any countable union of meagre sets is meagre. Thus the meagre subsets of a fixed space form a σ-ideal of subsets, a suitable notion of negligible set. And, equivalently to (1), any superset of a nonmeagre set is nonmeagre.

Dually, (1) any superset of a comeagre set is comeagre; (2) any countable intersection of comeagre sets is comeagre.

Suppose ${\displaystyle A\subseteq Y\subseteq X,}$ where ${\displaystyle Y}$ has the subspace topology induced from ${\displaystyle X.}$ The set ${\displaystyle A}$ may be meagre in ${\displaystyle X}$ without being meagre in ${\displaystyle Y.}$ However the following results hold:[5]

• If ${\displaystyle A}$ is meagre in ${\displaystyle Y,}$ then ${\displaystyle A}$ is meagre in ${\displaystyle X.}$
• If ${\displaystyle Y}$ is open in ${\displaystyle X,}$ then ${\displaystyle A}$ is meagre in ${\displaystyle Y}$ if and only if ${\displaystyle A}$ is meagre in ${\displaystyle X.}$
• If ${\displaystyle Y}$ is dense in ${\displaystyle X,}$ then ${\displaystyle A}$ is meagre in ${\displaystyle Y}$ if and only if ${\displaystyle A}$ is meagre in ${\displaystyle X.}$

And correspondingly for nonmeagre sets:

• If ${\displaystyle A}$ is nonmeagre in ${\displaystyle X,}$ then ${\displaystyle A}$ is nonmeagre in ${\displaystyle Y.}$
• If ${\displaystyle Y}$ is open in ${\displaystyle X,}$ then ${\displaystyle A}$ is nonmeagre in ${\displaystyle Y}$ if and only if ${\displaystyle A}$ is nonmeagre in ${\displaystyle X.}$
• If ${\displaystyle Y}$ is dense in ${\displaystyle X,}$ then ${\displaystyle A}$ is nonmeagre in ${\displaystyle Y}$ if and only if ${\displaystyle A}$ is nonmeagre in ${\displaystyle X.}$

In particular, every subset of ${\displaystyle X}$ that is meagre in itself is meagre in ${\displaystyle X.}$ Every subset of ${\displaystyle X}$ that is nonmeagre in ${\displaystyle X}$ is nonmeagre in itself. And for an open set or a dense set in ${\displaystyle X,}$ being meagre in ${\displaystyle X}$ is equivalent to being meagre in itself, and similarly for the nonmeagre property.

Any topological space that contains an isolated point is nonmeagre (because no set containing the isolated point can be nowhere dense). In particular, every nonempty discrete space is nonmeagre.

A topological space ${\displaystyle X}$ is nonmeagre if and only if every countable intersection of dense open sets in ${\displaystyle X}$ is nonempty.[6]

Every nonempty Baire space is nonmeagre. In particular, by the Baire category theorem every nonempty complete metric space and every nonempty locally compact Hausdorff space is nonmeagre.

Banach category theorem:[7] In any topological space ${\displaystyle X,}$ the union of an arbitrary family of meagre open sets is a meagre set.

### Meagre subsets and Lebesgue measure

A meagre set in ${\displaystyle \mathbb {R} }$ need not have Lebesgue measure zero, and can even have full measure. For example, in the interval ${\displaystyle [0,1]}$ fat Cantor sets are closed nowhere dense and they can be constructed with a measure arbitrarily close to ${\displaystyle 1.}$ The union of a countable number of such sets with measure approaching ${\displaystyle 1}$ gives a meagre subset of ${\displaystyle [0,1]}$ with measure ${\displaystyle 1.}$[8]

Dually, there can be nonmeagre sets with measure zero. The complement of any meagre set of measure ${\displaystyle 1}$ in ${\displaystyle [0,1]}$ (for example the one in the previous paragraph) has measure ${\displaystyle 0}$ and is comeagre in ${\displaystyle [0,1],}$ and hence nonmeagre in ${\displaystyle [0,1]}$ since ${\displaystyle [0,1]}$ is a Baire space.

Here is another example of a nonmeagre set in ${\displaystyle \mathbb {R} }$ with measure ${\displaystyle 0}$:

${\displaystyle \bigcap _{m=1}^{\infty }\bigcup _{n=1}^{\infty }\left(r_{n}-\left({\tfrac {1}{2}}\right)^{n+m},r_{n}+\left({\tfrac {1}{2}}\right)^{n+m}\right)}$

where ${\displaystyle \left(r_{n}\right)_{n=1}^{\infty }}$ is a sequence that enumerates the rational numbers.

### Relation to Borel hierarchy

Just as a nowhere dense subset need not be closed, but is always contained in a closed nowhere dense subset (viz, its closure), a meagre set need not be an ${\displaystyle F_{\sigma }}$ set (countable union of closed sets), but is always contained in an ${\displaystyle F_{\sigma }}$ set made from nowhere dense sets (by taking the closure of each set).

Dually, just as the complement of a nowhere dense set need not be open, but has a dense interior (contains a dense open set), a comeagre set need not be a ${\displaystyle G_{\delta }}$ set (countable intersection of open sets), but contains a dense ${\displaystyle G_{\delta }}$ set formed from dense open sets.

## Examples

The empty set is a meagre subset of every topological space.

In the nonmeagre space ${\displaystyle X=[0,1]\cup ([2,3]\cap \mathbb {Q} )}$ the set ${\displaystyle [2,3]\cap \mathbb {Q} }$ is meagre. The set ${\displaystyle [0,1]}$ is nonmeagre and comeagre.

In the nonmeagre space ${\displaystyle X=[0,2]}$ the set ${\displaystyle [0,1]}$ is nonmeagre. But it is not comeagre, as its complement ${\displaystyle (1,2]}$ is also nonmeagre.

A countable T1 space without isolated point is meagre. So it is also meagre in any space that contains it as a subspace. For example, ${\displaystyle \mathbb {Q} }$ is both a meagre subspace of ${\displaystyle \mathbb {R} }$ (that is, meagre in itself with the subspace topology induced from ${\displaystyle \mathbb {R} }$) and a meagre subset of ${\displaystyle \mathbb {R} .}$

The Cantor set is nowhere dense in ${\displaystyle \mathbb {R} }$ and hence meagre in ${\displaystyle \mathbb {R} .}$ But it is nonmeagre in itself, since it is a complete metric space.

The set ${\displaystyle ([0,1]\cap \mathbb {Q} )\cup \{2\}}$ is not nowhere dense in ${\displaystyle \mathbb {R} }$, but it is meagre in ${\displaystyle \mathbb {R} }$. It is nonmeagre in itself (since as a subspace it contains an isolated point).

The line ${\displaystyle \mathbb {R} \times \{0\}}$ is meagre in the plane ${\displaystyle \mathbb {R} ^{2}.}$ But it is a nonmeagre subspace, that is, it is nonmeagre in itself.

The space ${\displaystyle (\mathbb {Q} \times \mathbb {Q} )\cup (\mathbb {R} \times \{0\})}$ (with the topology induced from ${\displaystyle \mathbb {R} ^{2}}$) is meagre. Its meagre subset ${\displaystyle \mathbb {R} \times \{0\}}$ is nonmeagre in itself.

There is a subset ${\displaystyle H}$ of the real numbers ${\displaystyle \mathbb {R} }$ that splits every nonempty open set into two nonmeagre sets. That is, for every nonempty open set ${\displaystyle U\subseteq \mathbb {R} }$, the sets ${\displaystyle U\cap H}$ and ${\displaystyle U\setminus H}$ are both nonmeagre.

In the space ${\displaystyle C([0,1])}$ of continuous real-valued functions on ${\displaystyle [0,1]}$ with the topology of uniform convergence, the set ${\displaystyle A}$ of continuous real-valued functions on ${\displaystyle [0,1]}$ that have a derivative at some point is meagre.[9][10] Since ${\displaystyle C([0,1])}$ is a complete metric space, it is nonmeagre. So the complement of ${\displaystyle A}$, which consists of the continuous real-valued nowhere differentiable functions on ${\displaystyle [0,1],}$ is comeagre and nonmeagre. In particular that set is not empty. This is one way to show the existence of continuous nowhere differentiable functions.

## Banach–Mazur game

Meagre sets have a useful alternative characterization in terms of the Banach–Mazur game. Let ${\displaystyle Y}$ be a topological space, ${\displaystyle {\mathcal {W}}}$ be a family of subsets of ${\displaystyle Y}$ that have nonempty interiors such that every nonempty open set has a subset belonging to ${\displaystyle {\mathcal {W}},}$ and ${\displaystyle X}$ be any subset of ${\displaystyle Y.}$ Then there is a Banach–Mazur game ${\displaystyle MZ(X,Y,{\mathcal {W}}).}$ In the Banach–Mazur game, two players, ${\displaystyle P}$ and ${\displaystyle Q,}$ alternately choose successively smaller elements of ${\displaystyle {\mathcal {W}}}$ to produce a sequence ${\displaystyle W_{1}\supseteq W_{2}\supseteq W_{3}\supseteq \cdots .}$ Player ${\displaystyle P}$ wins if the intersection of this sequence contains a point in ${\displaystyle X}$; otherwise, player ${\displaystyle Q}$ wins.

Theorem — For any ${\displaystyle {\mathcal {W}}}$ meeting the above criteria, player ${\displaystyle Q}$ has a winning strategy if and only if ${\displaystyle X}$ is meagre.

## Erdos-Sierpinski duality

Many arguments about meagre sets also apply to null sets, i.e. sets of Lebesgue measure 0. The Erdos-Sierpinski duality theorem states that if the continuum hypothesis holds, there is an involution from reals to reals where the image of a null set of reals is a meagre set, and vice versa.[11] In fact, the image of a set of reals under the map is null if and only if the original set was meagre, and vice versa.[12]

## Notes

1. ^ a b Narici & Beckenstein 2011, p. 389.
2. ^ Schaefer, Helmut H. (1966). "Topological Vector Spaces". Macmillan.
3. ^ Baire, René (1899). "Sur les fonctions de variables réelles". Annali di Mat. Pura ed Appl. 3: 1–123., page 65
4. ^ Oxtoby, J. (1961). "Cartesian products of Baire spaces" (PDF). Fundamenta Mathematicae. 49 (2): 157–166. doi:10.4064/fm-49-2-157-166."Following Bourbaki [...], a topological space is called a Baire space if ..."
5. ^ a b Bourbaki 1989, p. 192.
6. ^ Willard 2004, Theorem 25.2.
7. ^ Oxtoby 1980, p. 62.
8. ^ "Is there a measure zero set which isn't meagre?". MathOverflow.
9. ^ Banach, S. (1931). "Über die Baire'sche Kategorie gewisser Funktionenmengen". Studia Math. 3 (1): 174–179. doi:10.4064/sm-3-1-174-179.
10. ^ Willard 2004, Theorem 25.5.
11. ^ Quintanilla, M. (2022). "The real numbers in inner models of set theory". arXiv:2206.10754. (p.25)
12. ^ S. Saito, The Erdos-Sierpinski Duality Theorem, notes. Accessed 18 January 2023.