With a countable dense set D, the set where d(X,Y) is below t is the countable union, over points q of D and positive rationals r, s with r + s below t, of the events that X lies within r and Y within s of q.
Throughout, is nonnegative and symmetric and satisfies the triangle inequality (Metric Space (ii), Metric Space (iv), Metric Space (v)), and countable unions and intersections of events are events (Unions and Intersections over a Countable Index Set in a Ο-Algebra (i), Unions and Intersections over a Countable Index Set in a Ο-Algebra (ii)). The formula defines a function by Maps and Relations Given by Formulas (i) and Maps and Relations Given by Formulas (ii); we write for , and similarly for .
Step 1 (balls give events). For and real , the open ball is open (Open Ball in a Metric Space is Open (i)), hence belongs to the -algebra generated by the open sets, which is (Borel Sigma-Algebra of a Metric Space (i), The Ο-Algebra Generated by a Set of Subsets (i)). As and are random elements of (Probability Spaces, Events and Random Elements (iii), Measurable Map, and the Set of Measurable Maps (i)), the sets
are events.
Step 2 (the index set and its events). Let be a countable dense set (Separable Metric Space and Separable Real Normed Space (i)), and let be the image of the rationals under the canonical embedding . Fix a real number . For let
Each is an event. If , then
an intersection of two events of Step 1. If , then , since ; and if , then also , since .
Step 3 (the sets below a level). We show
For , let . By the triangle inequality and symmetry,
For , let . By the density of the rationals (The Real Numbers, with the Natural Numbers, Integers and Rationals Identified with Subsets of the Reals, and Completeness (x), Infima, the Archimedean Property, Density of the Rationals and Rational Approximation from Below in an Ordered Field Whose Nonempty Sets Bounded Above Have Suprema (iii)) there is with . Let , so that
Density of gives with , and density of the rationals gives with . Then, by the triangle inequality,
so .
Step 4 (a countable union of events). The set is countable as the image of the countable set (Countable Sets: a Bijection from β onto βΓβ, Finite Sets, Subsets, Surjective Images, Images, Products, and the Integers and Rationals (ix), Countable Sets: a Bijection from β onto βΓβ, Finite Sets, Subsets, Surjective Images, Images, Products, and the Integers and Rationals (vi)), so is countable by Countable Sets: a Bijection from β onto βΓβ, Finite Sets, Subsets, Surjective Images, Images, Products, and the Integers and Rationals (vii). By Steps 2 and 3, is a countable union of events, hence an event.
Step 5 (conclusion). As was arbitrary, criterion (d) of Measurable Maps: Generators, Composition, Continuous Maps, Restrictions, and Criteria for Real- and [0,β]-Valued Maps (v) shows that is measurable as a function into , that is, a random variable (Probability Spaces, Events and Random Elements (iv)).
Loadingβ¦