Borel Sets and Their Traces
The page on measure theory introduces the
Borel \(\sigma\)-algebra of the real line
\(\mathcal{B}(\mathbb{R})\), generated by the intervals \((a, b]\), and the
Lebesgue measure
\(\lambda\) on it. The same page also sketches how \(\lambda\) is built. This page proves what
that sketch and many later pages rely on. We show how \(\mathcal{B}(\mathbb{R})\) passes to
subsets of \(\mathbb{R}\), which other families of sets generate it, and which functions are Borel
measurable. We then carry \(\mathcal{B}(\mathbb{R})\) over to the extended real line. Starting
from the Lebesgue measure \(\mathbb{P}\) on \((0, 1]\), we give the full proof that \(\lambda\)
exists and is unique.
Probability needs more than the real line itself. Time runs over \([0, \infty)\), and a
uniform random number lives in \((0, 1]\). Each of these subsets of \(\mathbb{R}\) needs a
\(\sigma\)-algebra, and the natural choice is the one that \(\mathcal{B}(\mathbb{R})\)
induces on it. A subset of any measurable space inherits a \(\sigma\)-algebra in the same
way. Because a stopping time may also take the value \(+\infty\), the extended real line
receives a Borel \(\sigma\)-algebra of its own later on this page, and \([0, \infty]\)
receives the trace of that \(\sigma\)-algebra.
Definition: Trace \(\sigma\)-Algebra
Let \((\Omega, \mathcal{F})\) be a
measurable space
and let \(S \subseteq \Omega\) be any subset. The trace of \(\mathcal{F}\) on
\(S\) is the collection
\[
\mathcal{F}|_S = \{A \cap S : A \in \mathcal{F}\}.
\]
For \(E \subseteq \mathbb{R}\) we write \(\mathcal{B}(E) = \mathcal{B}(\mathbb{R})|_E\) and call
its members the Borel subsets of \(E\).
For a class \(\mathcal{C}\) of subsets of \(\Omega\) we write
\(\mathcal{C}|_S = \{C \cap S : C \in \mathcal{C}\}\) in the same way. For a class \(\mathcal{D}\)
of subsets of \(S\), \(\sigma_S(\mathcal{D})\) denotes the
\(\sigma\)-algebra generated by \(\mathcal{D}\), with \(S\) as
the underlying set.
Proposition: Properties of the Trace
Let \((\Omega, \mathcal{F})\) be a measurable space and \(S \subseteq \Omega\).
- The trace \(\mathcal{F}|_S\) is a \(\sigma\)-algebra on \(S\).
- If \(S \in \mathcal{F}\), then \(\mathcal{F}|_S = \{A \in \mathcal{F} : A \subseteq S\}\).
- If \(\mathcal{F} = \sigma(\mathcal{C})\) for a class \(\mathcal{C}\) of subsets of
\(\Omega\), then \(\mathcal{F}|_S = \sigma_S(\mathcal{C}|_S)\), the \(\sigma\)-algebra on
\(S\) generated by the sets \(C \cap S\) with \(C \in \mathcal{C}\).
Proof.
(1) The empty set is \(\emptyset \cap S\). If \(A \in \mathcal{F}\), the complement of
\(A \cap S\) in \(S\) is
\[
S \setminus (A \cap S) = A^c \cap S,
\]
and \(A^c \in \mathcal{F}\). If \(A_1, A_2, \ldots \in \mathcal{F}\), then
\(\bigcup_i (A_i \cap S) = \left(\bigcup_i A_i\right) \cap S\) with
\(\bigcup_i A_i \in \mathcal{F}\).
(2) If \(S \in \mathcal{F}\) and \(A \in \mathcal{F}\), then \(A \cap S\) is the intersection of
two members of \(\mathcal{F}\), so it lies in \(\mathcal{F}\) and is contained in \(S\).
Conversely, a set \(A \in \mathcal{F}\) with \(A \subseteq S\) equals \(A \cap S\).
(3) Since \(\mathcal{C} \subseteq \mathcal{F}\), the class \(\mathcal{C}|_S\) is contained in
\(\mathcal{F}|_S\), which is a \(\sigma\)-algebra on \(S\) by (1). Hence
\(\sigma_S(\mathcal{C}|_S)\), the smallest \(\sigma\)-algebra on \(S\) containing
\(\mathcal{C}|_S\), is contained in \(\mathcal{F}|_S\).
For the reverse inclusion, let
\[
\mathcal{G} = \{A \subseteq \Omega : A \cap S \in \sigma_S(\mathcal{C}|_S)\}.
\]
The class \(\mathcal{G}\) contains \(\emptyset\) and is closed under complements because
\(A^c \cap S = S \setminus (A \cap S)\), and under countable unions because intersection with
\(S\) commutes with unions. So \(\mathcal{G}\) is a \(\sigma\)-algebra on \(\Omega\). It
contains every \(C \in \mathcal{C}\), since \(C \cap S \in \mathcal{C}|_S\). Hence
\(\mathcal{F} = \sigma(\mathcal{C}) \subseteq \mathcal{G}\), which says that \(A \cap S\) lies
in \(\sigma_S(\mathcal{C}|_S)\) for every \(A \in \mathcal{F}\).
Part (3) identifies the Borel sets of an interval. Take \(\mathcal{C}\) to be the intervals
\((a, b]\) with \(a \lt b\), so that \(\sigma(\mathcal{C}) = \mathcal{B}(\mathbb{R})\), and let
\(S = (0, 1]\). For \(a \lt b\),
\[
(a, b] \cap (0, 1] = (\max(a, 0), \min(b, 1)],
\]
which is empty when \(\max(a, 0) \geq \min(b, 1)\) and is otherwise an interval contained in
\((0, 1]\). Every interval \((a, b] \subseteq (0, 1]\) arises this way, as its own intersection with
\((0, 1]\). So \(\mathcal{C}|_{(0, 1]}\) consists of the intervals \((a, b] \subseteq (0, 1]\)
together with \(\emptyset\), and adding \(\emptyset\) does not change the generated
\(\sigma\)-algebra on \((0, 1]\). By (3), \(\mathcal{B}((0, 1])\) is the
Borel \(\sigma\)-algebra of \((0, 1]\),
which the page on measure theory defines through these intervals.
The same computation with \(\max(a, n)\) and \(\min(b, n + 1)\) shows that, for every integer \(n\),
the intervals \((a, b] \subseteq (n, n + 1]\) generate \(\mathcal{B}((n, n + 1])\) as a
\(\sigma\)-algebra on \((n, n + 1]\). Since \((0, 1]\) and \((n, n + 1]\) are themselves intervals
in \(\mathcal{C}\), part (2) identifies \(\mathcal{B}((0, 1])\) and \(\mathcal{B}((n, n + 1])\) with
the Borel subsets of \(\mathbb{R}\) contained in \((0, 1]\) and in \((n, n + 1]\), respectively.
A measure passes to a measurable subset in two ways.
Definition: Restriction of a Measure
Let \(\mu\) be a measure
on a measurable space \((\Omega, \mathcal{F})\) and let \(S \in \mathcal{F}\).
- The restriction of \(\mu\) to \(S\) is the set function \(\mu|_S\) on
\(\mathcal{F}|_S\) given by \(\mu|_S(A) = \mu(A)\). It is defined because
\(\mathcal{F}|_S \subseteq \mathcal{F}\) by part (2) of the
properties of the trace.
- The set function on \(\mathcal{F}\) given by \(A \mapsto \mu(A \cap S)\) is also written
\(\mu|_S\), when the \(\sigma\)-algebra in use makes clear which of the two is meant.
The two constructions differ in kind from the restriction \(\mathbb{P}|_{\mathcal{G}}\) of a
probability measure \(\mathbb{P}\) on \(\mathcal{F}\) to a smaller \(\sigma\)-algebra
\(\mathcal{G} \subseteq \mathcal{F}\) on the same set. That restriction keeps the underlying
set and the values, discards the sets outside \(\mathcal{G}\), and is used in the study of
conditional expectation.
Both set functions are measures, and both give \(\emptyset\) the value \(\mu(\emptyset) = 0\). The
first lives on \(S\). Its domain \(\mathcal{F}|_S\) is a \(\sigma\)-algebra on \(S\) by part (1) of
the properties of the trace and consists of members of \(\mathcal{F}\) by part (2). A sequence of
disjoint sets in \(\mathcal{F}|_S\) is therefore a sequence of disjoint sets in \(\mathcal{F}\),
and countable additivity is inherited from \(\mu\).
The second set function lives on \(\Omega\). If \(A_1, A_2, \ldots \in \mathcal{F}\) are disjoint,
the sets \(A_i \cap S\) are disjoint members of \(\mathcal{F}\). Their union is
\(\left(\bigcup_i A_i\right) \cap S\), so countable additivity again follows from that of \(\mu\).
The two agree on the members of \(\mathcal{F}|_S\), and the second also assigns values to sets not
contained in \(S\).
Generators, Continuous Maps and Composition
The definition of \(\mathcal{B}(\mathbb{R})\) uses the intervals \((a, b]\), but arguments about
Borel sets usually involve open sets, closed sets or half-lines instead. Each of these families
generates the same \(\sigma\)-algebra. Here \(\mathbb{R}\) carries its usual metric
\(d(x, y) = |x - y|\), so that the open
ball of
radius \(r\) about \(x\) is the interval \((x - r, x + r)\).
The proof of the next proposition rests on one observation. If every member of a class
\(\mathcal{D}\) lies in a \(\sigma\)-algebra \(\mathcal{A}\), then
\(\sigma(\mathcal{D}) \subseteq \mathcal{A}\), because \(\sigma(\mathcal{D})\) is the smallest
\(\sigma\)-algebra containing \(\mathcal{D}\). Two classes therefore generate the same
\(\sigma\)-algebra as soon as each of them lies in the \(\sigma\)-algebra generated by the other.
Proposition: Generators of \(\mathcal{B}(\mathbb{R})\)
The Borel \(\sigma\)-algebra \(\mathcal{B}(\mathbb{R})\) is generated by each of
the following classes.
- The open intervals \((a, b)\) with \(a \lt b\).
- The open subsets of \(\mathbb{R}\).
- The closed subsets of \(\mathbb{R}\).
- The half-lines \((-\infty, x]\) with \(x \in \mathbb{R}\).
In particular, every open set, every closed set, every interval (bounded or not, with or
without its endpoints) and every singleton is a Borel set.
Proof.
Let \(\mathcal{C}\) be the class of intervals \((a, b]\) with \(a \lt b\), so that
\(\mathcal{B}(\mathbb{R}) = \sigma(\mathcal{C})\).
(1) Let \(a \lt b\) and choose \(N\) with \(1/N \lt b - a\). Then
\[
(a, b) = \bigcup_{n \geq N} \left(a, b - \tfrac{1}{n}\right],
\]
so every open interval lies in \(\sigma(\mathcal{C})\). Conversely,
\[
(a, b] = \bigcap_{n \geq 1} \left(a, b + \tfrac{1}{n}\right),
\]
so every member of \(\mathcal{C}\) lies in the \(\sigma\)-algebra generated by the open
intervals. Here we use that a \(\sigma\)-algebra is closed under countable intersections, since
\(\bigcap_n A_n = \left(\bigcup_n A_n^c\right)^c\).
(2) An open interval \((a, b)\) is the open ball of radius \((b - a)/2\) about
\((a + b)/2\), and
open balls are open.
So the \(\sigma\)-algebra generated by the open intervals is contained in the one generated by
the open sets.
For the converse, let \(U\) be open. By the
characterization of open sets by balls,
each \(x \in U\) has an \(r \gt 0\) with \((x - r, x + r) \subseteq U\). The rational numbers
are dense in \(\mathbb{R}\), so there are rationals \(p\) and \(q\) with
\(x - r \lt p \lt x \lt q \lt x + r\), and then \(x \in (p, q] \subseteq U\). Let
\(\mathcal{Q}_U\) be the class of intervals \((p, q] \subseteq U\) with rational endpoints
\(p \lt q\). Then
\[
U = \bigcup_{I \in \mathcal{Q}_U} I,
\]
a union of countably many members of \(\mathcal{C}\), because there are only countably many
pairs of rationals. So every open set lies in \(\sigma(\mathcal{C})\). By (1), the open
intervals also generate \(\mathcal{B}(\mathbb{R})\). Hence the \(\sigma\)-algebra generated by
the open sets contains \(\mathcal{B}(\mathbb{R})\) and is contained in it.
(3) A set \(F \subseteq \mathbb{R}\) is
closed
exactly when its complement is open. Indeed, the definition of a
boundary point
is symmetric in \(F\) and \(F^c\), so \(\partial F = \partial (F^c)\), and the condition
\(\partial F \subseteq F\) says that \(F^c \cap \partial (F^c) = \emptyset\). A
\(\sigma\)-algebra contains a set exactly when it contains its complement, so the closed sets
and the open sets generate the same \(\sigma\)-algebra.
(4) Each half-line is a countable union of members of \(\mathcal{C}\),
\[
(-\infty, x] = \bigcup_{n \geq 1} (x - n, x].
\]
Conversely,
\[
(a, b] = (-\infty, b] \cap (-\infty, a]^c,
\]
so every member of \(\mathcal{C}\) lies in the \(\sigma\)-algebra generated by the half-lines.
For the last statement, open and closed sets are Borel by (2) and (3). The intervals \((a, b]\)
are Borel by definition and \((a, b)\) by (1). The remaining intervals and the singletons are
countable intersections or unions of these intervals and of one another,
\[
\begin{align*}
[a, b] &= \bigcap_{n \geq 1} \left(a - \tfrac{1}{n}, b\right], \\\\
[a, b) &= \bigcap_{n \geq 1} \left(a - \tfrac{1}{n}, b\right), \\\\
(a, \infty) &= \bigcup_{n \geq 1} (a, a + n], \\\\
[a, \infty) &= \bigcap_{n \geq 1} \left(a - \tfrac{1}{n}, \infty\right), \\\\
(-\infty, b) &= \bigcup_{n \geq 2} \left(b - n, b - \tfrac{1}{n}\right], \\\\
\{x\} &= \bigcap_{n \geq 1} \left(x - \tfrac{1}{n}, x\right].
\end{align*}
\]
The half-lines \((-\infty, b]\) are Borel by (4), and \(\mathbb{R}\) belongs to every
\(\sigma\)-algebra on \(\mathbb{R}\).
Part (2) matches the definition used in more general settings. The page on the
Riesz representation theorem
defines the Borel \(\sigma\)-algebra of a locally compact Hausdorff space as
the smallest \(\sigma\)-algebra containing its open sets, and for the real line
this is \(\mathcal{B}(\mathbb{R})\).
Open sets are the language of continuity, and continuous functions are the main examples of the
following kind of function. A nonempty subset \(E\) of \(\mathbb{R}\) is a
metric subspace
with the same distance, and
continuity of
a function on \(E\) refers to that metric.
Definition: Borel Measurable Function
Let \(E \subseteq \mathbb{R}\). A function \(f : E \to \mathbb{R}\) is
Borel measurable if
\[
f^{-1}(B) \in \mathcal{B}(E) \quad \text{for every } B \in \mathcal{B}(\mathbb{R}).
\]
This is the notion of a
measurable function
on \((E, \mathcal{B}(E))\), stated with all Borel sets instead of half-lines. The two
formulations agree by the
measurability criterion.
Corollary: Continuous Functions Are Borel Measurable
Let \(E \subseteq \mathbb{R}\) be nonempty and let \(f : E \to \mathbb{R}\) be continuous. Then
\(f\) is Borel measurable.
Proof.
Let \(\mathcal{G} = \{B \subseteq \mathbb{R} : f^{-1}(B) \in \mathcal{B}(E)\}\). Preimages
respect complements and unions: \(f^{-1}(\mathbb{R} \setminus B) = E \setminus f^{-1}(B)\) and
\(f^{-1}\left(\bigcup_i B_i\right) = \bigcup_i f^{-1}(B_i)\). Since \(\mathcal{B}(E)\) is a
\(\sigma\)-algebra on \(E\) by part (1) of the
properties of the trace,
these identities and \(f^{-1}(\emptyset) = \emptyset\) make \(\mathcal{G}\) a
\(\sigma\)-algebra on \(\mathbb{R}\).
Let \(U \subseteq \mathbb{R}\) be open. By the
characterization of continuity by open sets,
\(f^{-1}(U)\) is open in \(E\). By the description of the
open sets of a metric subspace,
\(f^{-1}(U) = E \cap V\) for some open set \(V \subseteq \mathbb{R}\). The set \(V\) is Borel
by part (2) of the proposition on the
generators of \(\mathcal{B}(\mathbb{R})\),
so \(f^{-1}(U) \in \mathcal{B}(\mathbb{R})|_E = \mathcal{B}(E)\). Thus \(\mathcal{G}\) contains
every open set, and the same part (2) gives \(\mathcal{B}(\mathbb{R}) \subseteq \mathcal{G}\).
Taking \(B = (-\infty, a]\) shows that \(\{x \in E : f(x) \leq a\} \in \mathcal{B}(E)\) for every
\(a \in \mathbb{R}\), so \(f\) is also a
measurable function
on the measurable space \((E, \mathcal{B}(E))\). For example, \(t \mapsto t^p\) with \(p \gt 0\) is
continuous on \([0, \infty)\), so it is Borel measurable there, and \(x \mapsto |x|\) is Borel
measurable on \(\mathbb{R}\).
A Borel measurable function can be applied to a random quantity without losing measurability.
Proposition: Composition with a Borel Measurable Function
Let \((\Omega, \mathcal{F})\) be a measurable space and \(E \subseteq \mathbb{R}\). Let
\(X : \Omega \to E\) satisfy \(X^{-1}(A) \in \mathcal{F}\) for every \(A \in \mathcal{B}(E)\),
and let \(f : E \to \mathbb{R}\) be Borel measurable. Then
\[
(f \circ X)^{-1}(B) \in \mathcal{F} \quad \text{for every } B \in \mathcal{B}(\mathbb{R}).
\]
Proof.
For \(B \in \mathcal{B}(\mathbb{R})\), the set \(A = f^{-1}(B)\) lies in \(\mathcal{B}(E)\),
and \((f \circ X)^{-1}(B) = X^{-1}(A) \in \mathcal{F}\).
Every random variable
\(X\) with values in \(E\), regarded as a map into \(E\), satisfies the condition placed on \(X\)
in the proposition. Each \(A \in \mathcal{B}(E)\) has the form \(A = B \cap E\) with
\(B \in \mathcal{B}(\mathbb{R})\), and since \(X^{-1}(E) = \Omega\), we have
\[
\begin{align*}
X^{-1}(A) &= X^{-1}(B) \cap X^{-1}(E) \\\\
&= X^{-1}(B) \in \mathcal{F}.
\end{align*}
\]
So \(f(X)\) is a random variable whenever \(X\) is a random variable with values in \(E\) and \(f\)
is Borel measurable on \(E\), in particular whenever \(f\) is continuous on \(E\).
Insight: Why a Neuron's Output Has a Distribution
A single unit of a neural network applies an activation function \(\varphi\) to a scalar
pre-activation \(Z\). Common choices of \(\varphi\) are continuous on \(\mathbb{R}\). They
include the rectified linear unit \(\varphi(t) = \max(t, 0)\), the logistic sigmoid
\(\varphi(t) = 1/(1 + e^{-t})\) and \(\tanh\). When \(Z\) is a random variable on a
probability space \((\Omega, \mathcal{F}, \mathbb{P})\), the corollary and the composition
rule show that \(\varphi(Z)\) is again a random variable. Its
distribution
is therefore defined, and so is, for example, the probability
\(\mathbb{P}(\varphi(Z) = 0) = \mathbb{P}(Z \leq 0)\) that a rectified linear unit is
inactive. A layer acts on a whole vector of pre-activations at once, and that case needs the
Borel sets of \(\mathbb{R}^d\), which this page does not develop.
The Extended Real Line
Integrals and limits produce the values \(\pm \infty\), and the
Lebesgue integral is built for functions with
values in the extended real line \(\overline{\mathbb{R}} = [-\infty, \infty]\). Such functions need
a \(\sigma\)-algebra on \(\overline{\mathbb{R}}\), and the natural one consists of the Borel sets
of \(\mathbb{R}\) with one, both or neither of the points \(\pm \infty\) added.
Definition: Borel \(\sigma\)-Algebra of the Extended Real Line
The Borel \(\sigma\)-algebra of \(\overline{\mathbb{R}}\) is
\[
\mathcal{B}(\overline{\mathbb{R}}) = \{B \subseteq \overline{\mathbb{R}} : B \cap \mathbb{R} \in \mathcal{B}(\mathbb{R})\}.
\]
The collection \(\mathcal{B}(\overline{\mathbb{R}})\) is a \(\sigma\)-algebra on
\(\overline{\mathbb{R}}\). It contains \(\emptyset\). If
\(B \in \mathcal{B}(\overline{\mathbb{R}})\), then
\((\overline{\mathbb{R}} \setminus B) \cap \mathbb{R} = \mathbb{R} \setminus (B \cap \mathbb{R})\)
is Borel, so \(\overline{\mathbb{R}} \setminus B\) is a member as well. Since intersection with
\(\mathbb{R}\) commutes with countable unions, the collection is also closed under countable
unions. Every Borel subset of \(\mathbb{R}\) belongs to \(\mathcal{B}(\overline{\mathbb{R}})\), and
so do the singletons \(\{-\infty\}\) and \(\{+\infty\}\), whose intersections with \(\mathbb{R}\)
are empty.
For \(E \subseteq \mathbb{R}\) the trace of \(\mathcal{B}(\overline{\mathbb{R}})\) on \(E\) is
\(\mathcal{B}(E)\). Indeed, \(A \cap E = (A \cap \mathbb{R}) \cap E\) with
\(A \cap \mathbb{R} \in \mathcal{B}(\mathbb{R})\) for every
\(A \in \mathcal{B}(\overline{\mathbb{R}})\), and every \(B \in \mathcal{B}(\mathbb{R})\) lies
in \(\mathcal{B}(\overline{\mathbb{R}})\).
Proposition: Half-Lines Generate \(\mathcal{B}(\overline{\mathbb{R}})\)
The \(\sigma\)-algebra \(\mathcal{B}(\overline{\mathbb{R}})\) is generated by the sets
\([-\infty, a]\) with \(a \in \mathbb{R}\).
Proof.
Let \(\mathcal{A}\) be the \(\sigma\)-algebra on \(\overline{\mathbb{R}}\) generated by the
sets \([-\infty, a]\). Each of them lies in \(\mathcal{B}(\overline{\mathbb{R}})\), because
\([-\infty, a] \cap \mathbb{R} = (-\infty, a]\) is Borel by part (4) of the proposition on the
generators of \(\mathcal{B}(\mathbb{R})\).
Hence \(\mathcal{A} \subseteq \mathcal{B}(\overline{\mathbb{R}})\).
For the reverse inclusion, first note that
\[
\begin{align*}
\{-\infty\} &= \bigcap_{n \geq 1} [-\infty, -n], \\\\
\{+\infty\} &= \overline{\mathbb{R}} \setminus \bigcup_{n \geq 1} [-\infty, n]
\end{align*}
\]
lie in \(\mathcal{A}\), and so does
\(\mathbb{R} = \overline{\mathbb{R}} \setminus (\{-\infty\} \cup \{+\infty\})\). By parts (1)
and (2) of the
properties of the trace,
the trace \(\mathcal{A}|_{\mathbb{R}}\) is a \(\sigma\)-algebra on \(\mathbb{R}\), and it
consists of the members of \(\mathcal{A}\) contained in \(\mathbb{R}\). It contains every
half-line \((-\infty, a] = [-\infty, a] \cap \mathbb{R}\), so by part (4) of the proposition
on the generators of \(\mathcal{B}(\mathbb{R})\) it contains \(\mathcal{B}(\mathbb{R})\).
Finally, let \(B \in \mathcal{B}(\overline{\mathbb{R}})\). Then
\(B \cap \mathbb{R} \in \mathcal{B}(\mathbb{R}) \subseteq \mathcal{A}\), and each of
\(B \cap \{-\infty\}\) and \(B \cap \{+\infty\}\) is empty or one of the singletons above. So
the union \(B\) of these three sets lies in \(\mathcal{A}\).
Since the half-lines generate \(\mathcal{B}(\overline{\mathbb{R}})\), they also suffice to test
the measurability of extended-real-valued functions.
Proposition: Measurability Criterion
Let \((\Omega, \mathcal{F})\) be a measurable space and \(g : \Omega \to \overline{\mathbb{R}}\).
Consider the following conditions.
- For every \(a \in \mathbb{R}\), \(\{\omega \in \Omega : g(\omega) \leq a\} \in \mathcal{F}\).
- For every \(B \in \mathcal{B}(\overline{\mathbb{R}})\), \(g^{-1}(B) \in \mathcal{F}\).
- For every \(B \in \mathcal{B}(\mathbb{R})\), \(g^{-1}(B) \in \mathcal{F}\).
Conditions (1) and (2) are equivalent. If \(g\) takes only real values, they are also
equivalent to (3).
Proof.
Condition (2) implies (1), since \(\{g \leq a\} = g^{-1}([-\infty, a])\), where
\(\{g \leq a\}\) denotes \(\{\omega \in \Omega : g(\omega) \leq a\}\). Conversely, assume (1).
The class \(\{B \subseteq \overline{\mathbb{R}} : g^{-1}(B) \in \mathcal{F}\}\) is a
\(\sigma\)-algebra on \(\overline{\mathbb{R}}\), because \(g^{-1}(\emptyset) = \emptyset\) and
preimages respect complements and countable unions. It contains every \([-\infty, a]\) by (1),
so it contains \(\mathcal{B}(\overline{\mathbb{R}})\) by the
half-line generation of \(\mathcal{B}(\overline{\mathbb{R}})\).
If \(g\) is real-valued, (2) gives (3) because
\(\mathcal{B}(\mathbb{R}) \subseteq \mathcal{B}(\overline{\mathbb{R}})\), and (3) gives (1)
because \(\{g \leq a\} = g^{-1}((-\infty, a])\).
Condition (1) is the definition of a
measurable function,
so the criterion proves the equivalent form in terms of Borel subsets of \(\overline{\mathbb{R}}\)
that is stated there. For a real-valued function on a probability space, the equivalence of (1)
and (3) is the criterion of
measurability via half-lines
for random variables.
We can also apply the criterion to the measurable space \((E, \mathcal{B}(E))\). A function
\(f : E \to \mathbb{R}\) is then
Borel measurable
exactly when \(\{x \in E : f(x) \leq a\} \in \mathcal{B}(E)\) for every \(a \in \mathbb{R}\).
A stopping time takes values in \([0, \infty]\). We give \([0, \infty]\)
the trace \(\sigma\)-algebra
\[
\mathcal{B}([0, \infty]) = \mathcal{B}(\overline{\mathbb{R}})|_{[0, \infty]}
\]
and call its members the Borel subsets of \([0, \infty]\).
By the
half-line generation of \(\mathcal{B}(\overline{\mathbb{R}})\)
and part (3) of the properties of the trace, \(\mathcal{B}([0, \infty])\) is generated, as a
\(\sigma\)-algebra on \([0, \infty]\), by the sets \([-\infty, a] \cap [0, \infty]\). Since
\[
[-\infty, a] \cap [0, \infty] =
\begin{cases}
[0, a] & (a \geq 0), \\
\emptyset & (a \lt 0),
\end{cases}
\]
and adding \(\emptyset\) to a class does not change the \(\sigma\)-algebra it generates,
\(\mathcal{B}([0, \infty])\) is generated by the intervals \([0, s]\) with \(s \geq 0\). It
contains \(\{+\infty\} = [0, \infty] \setminus \bigcup_{n \geq 1} [0, n]\).
Lebesgue Measure on the Real Line
The page on measure theory states the
existence and uniqueness of Lebesgue measure on \(\mathbb{R}\).
There is exactly one measure \(\lambda\) on \((\mathbb{R}, \mathcal{B}(\mathbb{R}))\) with
\(\lambda((a, b]) = b - a\) whenever \(a \lt b\). That page sketches the idea of copying the
Lebesgue measure \(\mathbb{P}\) on \((0, 1]\)
to every interval \((n, n + 1]\) and adding the copies. This section carries out that
idea in full.
The construction of the starting point \(\mathbb{P}\) on that page uses two facts without
proof. One is the
countable additivity of length on finite
disjoint unions of intervals \((a, b] \subseteq (0, 1]\). The other is the existence half of
Carathéodory's extension theorem.
The proof below adds no further assumption.
Sums of nonnegative terms over a countable index set need one convention. For
\(c_i \in [0, \infty]\) indexed by a countable set \(I\), we let \(\sum_{i \in I} c_i\) be the
supremum of the finite sums \(\sum_{i \in J} c_i\) over finite \(J \subseteq I\). For
\(I = \{1, 2, \ldots\}\) this is the usual sum of the series, since the partial sums increase and
every finite \(J\) lies in some \(\{1, \ldots, k\}\). The definition does not refer to any order
of \(I\), and iterated sums over countable index sets \(I\) and \(K\) can be interchanged,
\[
\sum_{n \in I} \sum_{i \in K} c_{n, i} = \sum_{i \in K} \sum_{n \in I} c_{n, i}
\quad (c_{n, i} \in [0, \infty]).
\]
Indeed, each side equals the supremum of \(\sum_{(n, i) \in G} c_{n, i}\) over finite sets
\(G \subseteq I \times K\). A finite \(G \subseteq I \times K\) lies in some \(J \times L\) with
\(J\) and \(L\) finite. Then
\[
\begin{align*}
\sum_{(n, i) \in G} c_{n, i}
&\leq \sum_{n \in J} \sum_{i \in L} c_{n, i} \\\\
&\leq \sum_{n \in I} \sum_{i \in K} c_{n, i}.
\end{align*}
\]
Conversely, let \(J \subseteq I\) be finite and choose finite sets \(L_n \subseteq K\) for
\(n \in J\). With \(L = \bigcup_{n \in J} L_n\),
\(\sum_{n \in J} \sum_{i \in L_n} c_{n, i} \leq \sum_{n \in J} \sum_{i \in L} c_{n, i}\), a finite
sum over \(J \times L\). Taking the supremum over each \(L_n\) in turn, the others held fixed, and
then over \(J\), bounds \(\sum_{n \in I} \sum_{i \in K} c_{n, i}\) by the supremum over finite
subsets of \(I \times K\). The same argument with the roles of the two indices exchanged shows
that the right side equals this supremum as well.
Proof of the Existence and Uniqueness of Lebesgue Measure on \(\mathbb{R}\).
Step 1: copies of \(\mathbb{P}\). Fix \(n \in \mathbb{Z}\). For
\(B \subseteq (n, n + 1]\) write \(B - n = \{x - n : x \in B\} \subseteq (0, 1]\), and let
\[
\mathcal{D}_n = \{B \subseteq (n, n + 1] : B - n \in \mathcal{B}((0, 1])\}.
\]
This class contains \(\emptyset\) and is closed under complements in \((n, n + 1]\), because
\(((n, n + 1] \setminus B) - n = (0, 1] \setminus (B - n)\). Countable unions stay in it,
because \(\left(\bigcup_i B_i\right) - n = \bigcup_i (B_i - n)\). So \(\mathcal{D}_n\) is a
\(\sigma\)-algebra on \((n, n + 1]\). It contains every interval
\((a, b] \subseteq (n, n + 1]\), since \((a, b] - n = (a - n, b - n]\) is an interval
contained in \((0, 1]\). These intervals generate \(\mathcal{B}((n, n + 1])\) as a
\(\sigma\)-algebra on \((n, n + 1]\) by the example after the
properties of the trace,
so \(\mathcal{B}((n, n + 1]) \subseteq \mathcal{D}_n\). By the same example,
\(\mathcal{B}((0, 1])\) is the \(\sigma\)-algebra on which \(\mathbb{P}\) is defined. We
may therefore set
\[
\mathbb{P}_n(B) = \mathbb{P}(B - n) \quad (B \in \mathcal{B}((n, n + 1])).
\]
With this definition, \(\mathbb{P}_n(\emptyset) = 0\), and disjoint sets \(B_i\) have disjoint
shifts \(B_i - n\) whose union is \(\left(\bigcup_i B_i\right) - n\), so \(\mathbb{P}_n\) is
countably additive. It is a measure on \(\mathcal{B}((n, n + 1])\) with
\(\mathbb{P}_n((a, b]) = \mathbb{P}((a - n, b - n]) = b - a\) whenever \(a \lt b\) and
\((a, b] \subseteq (n, n + 1]\). The shift only serves to copy \(\mathbb{P}\). No invariance
of the final measure under translations is claimed here.
Step 2: the candidate. For \(A \in \mathcal{B}(\mathbb{R})\) and
\(n \in \mathbb{Z}\), the set \(A \cap (n, n + 1]\) lies in
\(\mathcal{B}(\mathbb{R})|_{(n, n + 1]} = \mathcal{B}((n, n + 1])\). This class consists of
the Borel subsets of \(\mathbb{R}\) contained in \((n, n + 1]\) (see
Borel sets and their traces). Define
\[
\mu(A) = \sum_{n \in \mathbb{Z}} \mathbb{P}_n\bigl(A \cap (n, n + 1]\bigr) \in [0, \infty].
\]
Step 3: \(\mu\) is a measure. Clearly \(\mu(\emptyset) = 0\). Let
\(A_1, A_2, \ldots \in \mathcal{B}(\mathbb{R})\) be disjoint. For each \(n\), the sets
\(A_i \cap (n, n + 1]\) are disjoint members of \(\mathcal{B}((n, n + 1])\) with union
\(\left(\bigcup_i A_i\right) \cap (n, n + 1]\). Countable additivity of \(\mathbb{P}_n\) and
the interchange of nonnegative sums give
\[
\begin{align*}
\mu\Bigl(\bigcup_i A_i\Bigr)
&= \sum_{n \in \mathbb{Z}} \sum_{i \geq 1} \mathbb{P}_n\bigl(A_i \cap (n, n + 1]\bigr) \\\\
&= \sum_{i \geq 1} \sum_{n \in \mathbb{Z}} \mathbb{P}_n\bigl(A_i \cap (n, n + 1]\bigr) \\\\
&= \sum_{i \geq 1} \mu(A_i).
\end{align*}
\]
Step 4: intervals get their length. Let \(a \lt b\). For every integer \(n\),
\[
(a, b] \cap (n, n + 1] = \bigl(\max(a, n), \min(b, n + 1)\bigr],
\]
which is nonempty exactly when \(n \lt b\) and \(n + 1 \gt a\). Such integers exist, since the
integer \(n\) with \(n \lt b \leq n + 1\) is one. They form a finite block of consecutive
integers \(n_0, n_0 + 1, \ldots, n_1\), possibly with \(n_0 = n_1\). Here \(n_0\) is the least
integer with \(n_0 + 1 \gt a\), and \(n_1\) is the largest with \(n_1 \lt b\). Hence
\(n_0 \leq a\) and \(n_1 + 1 \geq b\).
For \(n_0 \leq n \lt n_1\) the right endpoint of \((a, b] \cap (n, n + 1]\) is
\(\min(b, n + 1) = n + 1\), and for \(n_0 \lt n \leq n_1\) the left endpoint is
\(\max(a, n) = n\). By Step 1, the term of index \(n\) in \(\mu((a, b])\) is the length of
this interval when it is nonempty, and is \(\mathbb{P}_n(\emptyset) = 0\) otherwise, so only
\(n_0, \ldots, n_1\) contribute. The lengths therefore telescope,
\[
\begin{align*}
\mu((a, b]) &= \sum_{n = n_0}^{n_1} \bigl(\min(b, n + 1) - \max(a, n)\bigr) \\\\
&= \min(b, n_1 + 1) - \max(a, n_0) \\\\
&= b - a.
\end{align*}
\]
Step 5: uniqueness. Let \(\nu\) be a measure on \(\mathcal{B}(\mathbb{R})\)
with \(\nu((a, b]) = b - a\) whenever \(a \lt b\). The class \(\mathcal{P}\) of intervals
\((a, b]\) with \(a \lt b\), together with \(\emptyset\), is a
\(\pi\)-system.
Indeed, \((a, b] \cap (c, d] = (\max(a, c), \min(b, d)]\) is empty or an interval of this
kind. The class \(\mathcal{P}\) generates \(\mathcal{B}(\mathbb{R})\), and \(\mu\) and \(\nu\)
agree on it by Step 4 and the hypothesis on \(\nu\). The intervals \((-n, n]\), \(n \geq 1\),
lie in \(\mathcal{P}\), increase to \(\mathbb{R}\) and satisfy
\(\mu((-n, n]) = 2n \lt \infty\). Case (i) of the
uniqueness of measures
gives \(\mu(B) = \nu(B)\) for every \(B \in \mathcal{B}(\mathbb{R})\).
The measure \(\mu\) of the proof is the
Lebesgue measure
\(\lambda\). The intervals \((-n, n]\) of Step 5 show that \(\lambda\) is
\(\sigma\)-finite.
The restriction of
\(\lambda\) to \((0, 1]\) is \(\mathbb{P}\). For \(B \in \mathcal{B}((0, 1])\) and \(n \neq 0\),
the set \(B \cap (n, n + 1]\) is empty, so every term of the defining sum except the one with
\(n = 0\) vanishes, and \(\lambda(B) = \mathbb{P}_0(B) = \mathbb{P}(B)\).
Theorem: Outer Regularity of Lebesgue Measure
For every Borel set \(E \subseteq \mathbb{R}\) and every \(\eta \gt 0\), there is an open
set \(U \supseteq E\) with \(\lambda(U \setminus E) \lt \eta\).
An open set can enclose a Borel set while adding as little measure as we like. For an interval
\((a, b]\), this is visible directly. The open interval \((a, b + \eta/2)\) contains \((a, b]\),
and the difference of the two is \((b, b + \eta/2)\), a set of measure at most
\(\lambda((b, b + \eta/2]) = \eta/2\). For a general Borel set, the proof works with a finite
measure first and squeezes each Borel set between a closed set and an open set that differ by as
little measure as we like.
Proof.
Two elementary facts about a measure \(\nu\) on \(\mathcal{B}(\mathbb{R})\) are used
throughout. The measure \(\nu\) is monotone, that is, \(\nu(A) \leq \nu(B)\) for
Borel sets \(A \subseteq B\), since \(\nu(B) = \nu(A) + \nu(B \setminus A)\). It is
also countably subadditive, that is,
\(\nu\bigl(\bigcup_i B_i\bigr) \leq \sum_i \nu(B_i)\) for Borel sets
\(B_1, B_2, \ldots\), since the disjoint Borel sets
\(B_i \setminus (B_1 \cup \cdots \cup B_{i-1}) \subseteq B_i\) have the same union
as the \(B_i\).
Three facts about open and closed sets of \(\mathbb{R}\) are also used. A union of open sets
is open, since each point of the union lies in one of the sets, and that set contains an open
interval around the point. The intersection of finitely many open sets \(W_1, \ldots, W_k\) is
open, since a common point \(x\) has an interval \((x - r_j, x + r_j)\) inside \(W_j\) for
each \(j\), and the smallest \(r_j\) serves for all of them. A finite union of closed sets is
closed, since its complement is a finite intersection of open sets. Open and closed sets are
Borel by parts (2) and (3) of the proposition on the generators of
\(\mathcal{B}(\mathbb{R})\), so \(\nu\) is defined on every set to which it is applied below.
Step 1: a finite measure. Let \(\nu\) be a finite measure on
\(\mathcal{B}(\mathbb{R})\), and let \(\mathcal{G}\) be the class of Borel sets \(E\) with the
following property. For every \(\varepsilon \gt 0\) there are a closed set \(F\) and an open
set \(V\) with \(F \subseteq E \subseteq V\) and \(\nu(V \setminus F) \lt \varepsilon\). We
show that \(\mathcal{G}\) is a \(\sigma\)-algebra containing every closed set.
Let \(F\) be closed. For \(m \geq 1\), the set \(V_m = \bigcup_{y \in F} (y - 1/m, y + 1/m)\)
is open and contains \(F\), and \(V_1 \supseteq V_2 \supseteq \cdots\). A point \(x \notin F\)
has an interval \((x - 1/m, x + 1/m)\) disjoint from \(F\) for some \(m\), because the
complement of \(F\) is open. For this \(m\), no \(y \in F\) satisfies \(|x - y| \lt 1/m\), so
\(x \notin V_m\). Hence \(\bigcap_m V_m = F\). Since \(\nu\) is finite,
continuity from above
gives \(\nu(V_m \setminus F) = \nu(V_m) - \nu(F) \to 0\). With \(F\) itself as the closed set
inside, \(F \in \mathcal{G}\).
If \(F \subseteq E \subseteq V\) as in the definition, then
\(\mathbb{R} \setminus V \subseteq \mathbb{R} \setminus E \subseteq \mathbb{R} \setminus F\).
Here \(\mathbb{R} \setminus V\) is closed, \(\mathbb{R} \setminus F\) is open, and
\((\mathbb{R} \setminus F) \setminus (\mathbb{R} \setminus V) = V \setminus F\). So
\(\mathcal{G}\) is closed under complements.
Let \(E_1, E_2, \ldots \in \mathcal{G}\), \(E = \bigcup_i E_i\) and \(\varepsilon \gt 0\).
Choose closed \(F_i\) and open \(V_i\) with \(F_i \subseteq E_i \subseteq V_i\) and
\(\nu(V_i \setminus F_i) \lt \varepsilon / 2^{i+1}\). The set \(V = \bigcup_i V_i\) is open
and contains \(E\). The closed sets \(F_1 \cup \cdots \cup F_k\) increase to \(\bigcup_i F_i\)
as \(k \to \infty\), so by continuity from below and finiteness of \(\nu\) there is an \(N\)
with
\(\nu\bigl(\bigcup_i F_i \setminus (F_1 \cup \cdots \cup F_N)\bigr) \lt \varepsilon / 2\).
The finite union \(F = F_1 \cup \cdots \cup F_N\) is closed and lies in \(E\), and
\[
V \setminus F \subseteq \bigcup_i (V_i \setminus F_i) \cup \Bigl( \bigcup_i F_i \setminus F \Bigr).
\]
By monotonicity and countable subadditivity,
\[
\nu(V \setminus F) \lt \sum_i \varepsilon / 2^{i+1} + \varepsilon / 2 = \varepsilon.
\]
So \(E \in \mathcal{G}\).
The class \(\mathcal{G}\) contains the empty set, which is closed, and is closed under
complements and countable unions. It is therefore a \(\sigma\)-algebra containing the closed
sets, which generate \(\mathcal{B}(\mathbb{R})\) by part (3) of the proposition on the
generators of \(\mathcal{B}(\mathbb{R})\).
Hence \(\mathcal{G} = \mathcal{B}(\mathbb{R})\).
Step 2: Lebesgue measure. Let \(E\) be a Borel set and \(\eta \gt 0\). For
\(n \in \mathbb{Z}\), the function \(\nu_n(A) = \lambda\bigl(A \cap (n - 1, n + 2)\bigr)\) on
\(\mathcal{B}(\mathbb{R})\) is the set function \(\lambda|_{(n - 1, n + 2)}\) of part (2) of
the definition of the
restriction of a measure.
Since \((n - 1, n + 2)\) is Borel, \(\nu_n\) is a measure, as shown after that definition. It
is finite since \(\nu_n(\mathbb{R}) \leq \lambda((n - 1, n + 2]) = 3\).
Put \(E_n = E \cap (n, n + 1]\). Step 1, applied to \(\nu_n\) and \(E_n\), gives a closed set
\(F_n\) and an open set \(V_n\) with \(F_n \subseteq E_n \subseteq V_n\) and
\(\nu_n(V_n \setminus F_n) \lt \eta / 2^{|n| + 2}\). By monotonicity,
\(\nu_n(V_n \setminus E_n) \leq \nu_n(V_n \setminus F_n)\). The set
\(U_n = V_n \cap (n - 1, n + 2)\) is open and contains \(E_n\), and
\[
\lambda(U_n \setminus E_n) = \nu_n(V_n \setminus E_n) \lt \eta / 2^{|n| + 2},
\]
because \(U_n \setminus E_n = (V_n \setminus E_n) \cap (n - 1, n + 2)\).
The union \(U = \bigcup_{n \in \mathbb{Z}} U_n\) is an open set containing
\(\bigcup_n E_n = E\). A point of \(U \setminus E\) lies in some \(U_n\) and not in
\(E_n\), so \(U \setminus E \subseteq \bigcup_n (U_n \setminus E_n)\). Monotonicity and
countable subadditivity, with the sum over \(\mathbb{Z}\) taken as in the convention of
this section, give
\[
\lambda(U \setminus E) \leq \sum_{n \in \mathbb{Z}} \frac{\eta}{2^{|n| + 2}} = \frac{3\eta}{4} \lt \eta.
\]