Tutorials › Measure Theory › Countable Box Covers of Subsets of Rn

Lebesgue Measure on R^n · Tutorial 163 of 798

Countable Box Covers of Subsets of Rn

Learn how to build half-open box covers in bounded and unbounded settings and compute the total coordinate volume of the boxes used.

Advanced 9 min read

What You'll Learn

  • Define axis-parallel half-open boxes and their coordinate volume.
  • Cover a bounded subset of R^n by finitely many grid boxes with an explicit volume bound.
  • Cover any countable subset of R^n by boxes with arbitrarily small total coordinate volume.
  • Construct a countable box cover of an arbitrary unbounded subset using expanding shells.
  • Check endpoint inclusion and distinguish a cover's total coordinate volume from the volume of the set.

From Bounded Regions to Countable Covers

A box cover is a way to describe a set using simpler axis-parallel pieces. In this tutorial, the pieces are half-open boxes, and the quantity we calculate for each box is its coordinate volume. The goal is geometric: construct covers and add the coordinate volumes of their boxes. No measure or integral is being defined here, and a cover's total coordinate volume need not equal the size of the set it covers.

Definition: An axis-parallel half-open box in \(\mathbb{R}^n\) is a set \(B=\prod_{i=1}^n[a_i,b_i)\), where \(a_i,b_i\in\mathbb{R}\) and \(a_i<b_i\) for every \(i\). Its coordinate volume is \(v(B)=\prod_{i=1}^n(b_i-a_i)\). A finite or countable collection \((B_j)\) covers \(E\subseteq\mathbb{R}^n\) if \(E\subseteq\bigcup_j B_j\); its total coordinate volume is \(\sum_jv(B_j)\), possibly \(+\infty\).

The half-open convention assigns a shared grid boundary to one cell rather than both adjacent cells. It also requires attention to the upper endpoint: \(b_i\) is not in \([a_i,b_i)\). We will choose the grid indices so that points at the edge of the bounded region are included in a cell to their right.

Finite Grid Covers for Bounded Sets

Every bounded set is contained in some cube \([-N,N]^n\), with \(N\) a positive integer. Divide each coordinate axis into intervals of length \(1/q\), where \(q\) is a positive integer. The cells that meet \([-N,N]^n\) can be listed using integer indices from \(-Nq\) to \(Nq\), inclusive. That final index is needed to cover the point whose coordinate equals \(N\).

Proposition: Let \(E\subseteq[-N,N]^n\), where \(N,q\) are positive integers. The \((2Nq+1)^n\) boxes \(B_k=\prod_{i=1}^n[k_i/q,(k_i+1)/q)\), indexed by \(k_i\in\{-Nq,-Nq+1,\ldots,Nq\}\), cover \(E\). Their total coordinate volume is \((2N+1/q)^n\).

Proof. Fix \(x=(x_1,\ldots,x_n)\in[-N,N]^n\). For each coordinate \(i\), the integer \(k_i=\lfloor qx_i\rfloor\) satisfies \(k_i\le qx_i<k_i+1\). Since \(-Nq\le qx_i\le Nq\), we have \(-Nq\le k_i\le Nq\); in particular, if \(x_i=N\), then \(k_i=Nq\). Thus \(x_i\in[k_i/q,(k_i+1)/q)\) for every \(i\), and \(x\in B_k\). There are \(2Nq+1\) choices for each of the \(n\) indices, giving \((2Nq+1)^n\) boxes. Each box has coordinate volume \((1/q)^n\), so the total is \((2Nq+1)^n/q^n=(2N+1/q)^n\). \(\square\)

This bound is an estimate from a particular finite cover; it is not a claim that the covered set has that coordinate volume. Increasing \(q\) makes the grid finer, but the total for this cover approaches \((2N)^n\), rather than zero. A bounded set may be large, so boundedness alone does not provide small-total-volume covers.

Worked Example: A Grid Cover of a Closed Square

Cover \(E=[-1,1]^2\) using grid boxes of side \(1/2\), and calculate the total coordinate volume.

Here \(n=2\), \(N=1\), and \(q=2\). The allowed indices in each coordinate are \(-2,-1,0,1,2\). Thus the cover consists of the 25 boxes \([k_1/2,(k_1+1)/2)\times[k_2/2,(k_2+1)/2)\), with \(k_1,k_2\in\{-2,-1,0,1,2\}\). Each box has area \((1/2)(1/2)=1/4\), so their total coordinate volume is \(25(1/4)=25/4\).

Check: The intervals for one coordinate range from \([-1,-1/2)\) through \([1,3/2)\). Their union contains \([-1,1]\), including both endpoints: \(-1\) belongs to the first interval and \(1\) belongs to \([1,3/2)\). The grid formula also gives \((2N+1/q)^n=(2+1/2)^2=25/4\), agreeing with the direct count.

Countable Sets: Arbitrarily Small Total Coordinate Volume

For a countable set, a different construction is available. Give the \(j\)-th point a box whose coordinate volume is a prescribed part of a convergent series. To make a cube in \(\mathbb{R}^n\) have volume \(c\), choose its side length to be \(c^{1/n}\). Centering such a cube at the point and making it half-open ensures that the point itself is included.

Theorem: If \(E\subseteq\mathbb{R}^n\) is countable and \(\varepsilon>0\), then \(E\) has a finite or countable cover by axis-parallel half-open boxes with total coordinate volume at most \(\varepsilon/2\), and hence less than \(\varepsilon\).

Proof. If \(E\) is empty, the empty collection covers it and has total coordinate volume zero. Otherwise list its distinct points as \(x_j=(x_{j,1},\ldots,x_{j,n})\), with \(j=1,\ldots,m\) if \(E\) is finite, or \(j\ge1\) if it is infinite. Set \(s_j=(\varepsilon 2^{-j-1})^{1/n}\), and define \(B_j=\prod_{i=1}^n[x_{j,i}-s_j/2,x_{j,i}+s_j/2)\). Each coordinate interval has positive length \(s_j\), and \(x_{j,i}\) lies in that interval because its displacement from the left endpoint is \(s_j/2\), which is nonnegative and strictly less than \(s_j\). Hence \(x_j\in B_j\), so the boxes cover \(E\). Their total coordinate volume is \(\sum_j s_j^n=\sum_j\varepsilon 2^{-j-1}\). For an infinite list this sum is \(\varepsilon/2\), since \(\sum_{j=1}^{\infty}2^{-j-1}=1/2\). For a finite list its sum is no greater than \(\varepsilon/2\), because it is a partial sum of nonnegative terms. Finally, \(\varepsilon/2<\varepsilon\). \(\square\)

Worked Example: Covering an Unbounded Countable Set

For \(E=\{(j,(-1)^j):j\ge1\}\subseteq\mathbb{R}^2\), construct a cover with total coordinate volume less than \(\varepsilon=1/8\).

For each \(j\ge1\), take the half-open square \([j-s_j/2,j+s_j/2)\times[(-1)^j-s_j/2,(-1)^j+s_j/2)\), where \(s_j=(\varepsilon 2^{-j-1})^{1/2}\). Its area is \(s_j^2=\varepsilon 2^{-j-1}=2^{-j-4}\). The point \((j,(-1)^j)\) lies in its square: each coordinate equals the left endpoint plus \(s_j/2\), and \(0\le s_j/2<s_j\). Thus every point of \(E\) is covered.

The total area is \(\sum_{j=1}^{\infty}2^{-j-4}=(1/16)\sum_{j=1}^{\infty}2^{-j}=1/16\), which is less than \(1/8\). Check: the first two square areas are \(2^{-5}=1/32\) and \(2^{-6}=1/64\); the full geometric series sums to \(1/16\). The set is unbounded because its first coordinate \(j\) has no upper bound, but the prescribed total area is finite.

A Countable Shell Cover for Any Unbounded Set

The countable-point construction does not apply to every unbounded set: an unbounded set need not be countable. A general construction uses expanding cubes. Write \(C_j=[-j,j]^n\) for positive integers \(j\). Every point of \(\mathbb{R}^n\) belongs to some \(C_j\), so these cubes provide bounded stages that exhaust the space. For a set \(E\), the pieces \(E\cap C_j\) form a countable cover of \(E\); each can be enclosed in a single half-open box.

Proposition: For any \(E\subseteq\mathbb{R}^n\), including an unbounded set, the boxes \(Q_j=[-j,j+1)^n\), \(j\ge1\), cover \(E\). Their total coordinate volume is \(\sum_{j=1}^{\infty}(2j+1)^n\), which is infinite.

Proof. Fix \(x\in E\). Since its finitely many coordinates are real, there is a positive integer \(j\) with \(|x_i|\le j\) for all \(i\). Thus \(x\in C_j\). For each coordinate, \(-j\le x_i\le j<j+1\), so \(x_i\in[-j,j+1)\) and \(x\in Q_j\). This proves coverage. Each \(Q_j\) has side length \((j+1)-(-j)=2j+1\) in every coordinate, and therefore \(v(Q_j)=(2j+1)^n\). Since \(n\ge1\), each term is at least \(1\), so the partial sum through \(j=M\) is at least \(M\). These partial sums are unbounded as \(M\to\infty\), proving that the total is infinite. \(\square\)

Worked Example: A Shell-Based Cover of the Plane

Apply the expanding-box construction to \(E=\mathbb{R}^2\) and compute the total coordinate volume through the first three boxes.

The first three boxes are \(Q_1=[-1,2)^2\), \(Q_2=[-2,3)^2\), and \(Q_3=[-3,4)^2\). Their side lengths are \(3,5,7\), respectively, so their areas are \(3^2=9\), \(5^2=25\), and \(7^2=49\). The total through \(j=3\) is \(9+25+49=83\). For all \(j\ge1\), the total is \(\sum_{j=1}^{\infty}(2j+1)^2\), which is infinite: each term is at least \(1\), so the partial sum through \(M\) is at least \(M\).

Check: The union of the first \(M\) boxes contains \([-M,M]^2\), because \(Q_M=[-M,M+1)^2\) contains that cube. As \(M\) increases, every point of the plane eventually belongs to one of these boxes. The computed areas also match the formula \((2j+1)^2\) at \(j=1,2,3\), giving \(9,25,49\).

A Common Mistake: The Side Length Is Not the Volume

To allocate a target coordinate volume \(c_j\) to a cube in \(\mathbb{R}^n\), one must set its side length to \(c_j^{1/n}\), not \(c_j\). A side length \(c_j\) gives volume \(c_j^n\). In dimensions greater than one, confusing these quantities changes the assigned volumes and may invalidate the intended estimate.

Worked Example: Correcting a Square-Cover Calculation

Suppose the \(j\)-th point in \(\mathbb{R}^2\) is to be covered by a square of area \(c_j=2^{-j}\). Taking side length \(2^{-j}\) would give area \(2^{-2j}=4^{-j}\), not \(2^{-j}\). The correct side length is \(\sqrt{2^{-j}}=2^{-j/2}\), and its area is \(2^{-j/2}2^{-j/2}=2^{-j}\). A valid box centered at \((x_{j,1},x_{j,2})\) is therefore \([x_{j,1}-2^{-j/2}/2,x_{j,1}+2^{-j/2}/2)\times[x_{j,2}-2^{-j/2}/2,x_{j,2}+2^{-j/2}/2)\). It includes the point and has the specified area.

There is a separate endpoint pitfall: an open cube centered at a point is not a half-open box under the definition used here. The correction is to use \(\prod_{i=1}^n[x_{j,i}-s_j/2,x_{j,i}+s_j/2)\). Its left endpoints are included, its right endpoints are excluded, and the center lies strictly between them in each coordinate. This verifies both the required box form and coverage.

The constructions serve different purposes. A grid gives a finite, explicit cover of any bounded set inside a known cube. The countable-point construction gives arbitrarily small total coordinate volume for countable sets, whether bounded or unbounded. Expanding boxes give a countable cover of every subset of \(\mathbb{R}^n\), but the particular shell cover has infinite total coordinate volume. The amount calculated is always the sum for the chosen cover; estimating or defining an outer measure from such covers is a separate step.

Check Your Understanding

In each question, identify the boxes and verify their coordinate volumes and endpoint behavior.

  1. For \(E\subseteq[-2,2]^3\), use the grid with \(q=2\). How many boxes are listed, and what is their total coordinate volume?
  2. In the countable-set construction, why is the side length \((\varepsilon 2^{-j-1})^{1/n}\) rather than \(\varepsilon 2^{-j-1}\)?
  3. Construct half-open squares around the points \((j,0)\), \(j\ge1\), in \(\mathbb{R}^2\), with total area less than \(1/4\).
  4. Explain why the index \(Nq\) is included in the bounded grid cover even though the grid is intended to cover \([-N,N]^n\).
  5. For \(E=\mathbb{R}^3\), write the first two expanding boxes \(Q_1,Q_2\) and calculate their coordinate volumes.