Tutorials › Measure Theory › Semirings of Sets and Standard Examples

Premeasures and the Extension Theorem · Tutorial 72 of 798

Semirings of Sets and Standard Examples

Learn how to check the semiring axioms and explicitly decompose differences for three standard families of sets.

Advanced 10 min read

What You'll Learn

  • State the two closure conditions in the definition of a semiring of sets.
  • Compute intersections and differences of half-open intervals, including disjoint and degenerate cases.
  • Decompose the difference of two half-open rectangles into finitely many disjoint rectangles.
  • Verify that finite subsets of any set form a semiring.
  • Identify why an overlapping or incorrectly endpointed decomposition fails.

What a Semiring of Sets Requires

A semiring is a useful set system when intersections stay within the system and differences can be broken into finitely many simple pieces. The difference condition does not require the difference itself to be a member; it requires a finite disjoint union of members. This distinction is important for intervals and rectangles: cutting one such set by another can produce multiple pieces.

All definitions below concern an ambient set \(X\). They are statements about families of subsets of \(X\); no measure or measure space is needed to verify them. When we use intervals, \(X=\mathbb{R}\); for rectangles, \(X=\mathbb{R}^d\) with \(d\) a positive integer.

Definition: A family \(\mathcal{S}\) of subsets of \(X\) is a semiring of sets if:
  1. \(\varnothing\in\mathcal{S}\).
  2. If \(A,B\in\mathcal{S}\), then \(A\cap B\in\mathcal{S}\).
  3. If \(A,B\in\mathcal{S}\), there are finitely many pairwise disjoint sets \(C_1,\ldots,C_k\in\mathcal{S}\) such that \(A\setminus B=\bigcup_{j=1}^k C_j\). The case \(k=0\) is allowed and represents the empty union \(\varnothing\).
Here “pairwise disjoint” means \(C_i\cap C_j=\varnothing\) whenever \(i\ne j\).

The axioms do not say that \(X\in\mathcal{S}\), that arbitrary unions belong to \(\mathcal{S}\), or that \(A\setminus B\) must itself be in \(\mathcal{S}\). In particular, a semiring is not being defined as a sigma-algebra. We now verify the axioms for standard families, paying close attention to endpoint conventions.

Half-Open Intervals on the Real Line

Let \(\mathcal{I}\) consist of \(\varnothing\) and all bounded half-open intervals \([a,b)\subseteq\mathbb{R}\) with \(a<b\). The left endpoint belongs to \([a,b)\), while the right endpoint does not. The interval is empty when the lower endpoint is at least the upper endpoint, so it is convenient to use the convention \([u,v)=\varnothing\) whenever \(u\ge v\).

Proposition: The family \(\mathcal{I}\) is a semiring of subsets of \(\mathbb{R}\).

Proof. By definition, \(\varnothing\in\mathcal{I}\). For two nonempty members \([a,b)\) and \([c,d)\), their intersection is \([\max(a,c),\min(b,d))\), interpreted as empty if \(\max(a,c)\ge\min(b,d)\). Thus the intersection belongs to \(\mathcal{I}\); intersections involving the empty set are also empty.

It remains to decompose the difference. If either interval is empty, then \([a,b)\setminus\varnothing=[a,b)\), and \(\varnothing\setminus[c,d)=\varnothing\), so the required decompositions hold. Suppose both intervals are nonempty. The part of \([a,b)\) lying strictly to the left of \([c,d)\) is \([a,\min(b,c))\), and it is nonempty exactly when \(a<\min(b,c)\). The part lying to the right is \([\max(a,d),b)\), and it is nonempty exactly when \(\max(a,d)<b\). Omitting either piece when its lower endpoint is not less than its upper endpoint gives \[ [a,b)\setminus[c,d) = [a,\min(b,c))\ \cup\ [\max(a,d),b). \] The two displayed pieces are disjoint: every point in the first is less than \(c\), while every point in the second is at least \(d\), and \(c<d\). To see that they exhaust the difference, take \(x\in[a,b)\setminus[c,d)\). Since \(x\notin[c,d)\), either \(x<c\) or \(x\ge d\). In the first case \(x\) lies in the left piece, and in the second it lies in the right piece. Conversely, both pieces consist of points in \([a,b)\) outside \([c,d)\). Thus the difference is a union of at most two disjoint members of \(\mathcal{I}\), proving the final axiom. \(\square\)

Worked Example: Cutting One Half-Open Interval by Another

Take \(A=[-2,5)\) and \(B=[1,3)\). Their intersection is \[ A\cap B=[\max(-2,1),\min(5,3))=[1,3). \] For the difference, the left piece is \([-2,\min(5,1))=[-2,1)\), and the right piece is \([\max(-2,3),5)=[3,5)\). Hence \[ A\setminus B=[-2,1)\cup[3,5). \] The pieces are disjoint: the first contains only numbers less than \(1\), and the second contains only numbers at least \(3\). They also handle the boundary points correctly: \(1\in B\), so \(1\notin A\setminus B\); \(3\notin B\), so \(3\in A\setminus B\). As a check, the three sets \([-2,1)\), \([1,3)\), and \([3,5)\) are disjoint and their union is \([-2,5)\).

Half-Open Rectangles in Finite Dimensions

Fix a positive integer \(d\). For each coordinate \(i\), take an interval \(I_i\in\mathcal{I}\), and form the rectangle \(I_1\times\cdots\times I_d\subseteq\mathbb{R}^d\). Let \(\mathcal{R}_d\) consist of all such products. This convention includes the empty set, since a product with an empty coordinate interval is empty. A nonempty member is a product \(\prod_{i=1}^d[a_i,b_i)\) with \(a_i<b_i\) for every \(i\).

Proposition: For every positive integer \(d\), the family \(\mathcal{R}_d\) is a semiring of subsets of \(\mathbb{R}^d\).

Proof. The empty set belongs to \(\mathcal{R}_d\), for example as \(\varnothing\times\mathbb{R}\times\cdots\times\mathbb{R}\) would not be appropriate because \(\mathbb{R}\) is not a bounded interval; instead, the product of \(d\) members of \(\mathcal{I}\) with at least one coordinate \(\varnothing\) is the empty set and belongs to \(\mathcal{R}_d\). If \(A=\prod_{i=1}^d A_i\) and \(B=\prod_{i=1}^d B_i\), then \[ A\cap B=\prod_{i=1}^d(A_i\cap B_i). \] Each coordinate intersection belongs to \(\mathcal{I}\) by the interval result, so \(A\cap B\in\mathcal{R}_d\).

We prove the difference condition for nonempty \(A\) and \(B\); if \(A=\varnothing\), the difference is empty, and if \(B=\varnothing\), it is \(A\) itself. Write \(A_i=[a_i,b_i)\) and \(B_i=[c_i,d_i)\), and set \(J_i=A_i\cap B_i\). By the interval result, \(A_i\setminus B_i\) is a union of at most two disjoint half-open intervals; call its nonempty pieces \(K_{i,1},\ldots,K_{i,r_i}\), where \(0\le r_i\le2\).

For each coordinate \(i\) and each piece \(K_{i,q}\), form the rectangle \[ J_1\times\cdots\times J_{i-1}\times K_{i,q}\times A_{i+1}\times\cdots\times A_d, \] omitting any empty rectangle. Each is in \(\mathcal{R}_d\). A point of \(A\setminus B\) has at least one coordinate outside the corresponding interval \(B_i\). Let \(i\) be its first such coordinate. Its earlier coordinates belong to \(J_1,\ldots,J_{i-1}\), its \(i\)-th coordinate belongs to one of the \(K_{i,q}\), and its later coordinates belong to the corresponding \(A_j\). Thus the point lies in one of the displayed rectangles. Conversely, every point in one of those rectangles belongs to \(A\), and its \(i\)-th coordinate is outside \(B_i\), so it is outside \(B\). The rectangles are pairwise disjoint: rectangles assigned different indices \(i\) impose, at the earlier index, membership in \(J_i\) for the rectangle with the larger index and membership outside \(B_i\) for the rectangle with the smaller index. Those conditions cannot both hold. For a fixed \(i\), different \(K_{i,q}\) are disjoint by the interval result. There are at most \(2d\) rectangles. This proves the difference axiom and completes the proof. \(\square\)

Worked Example: Decomposing a Rectangle Difference

In \(\mathbb{R}^2\), let \(A=[0,4)\times[1,5)\) and \(B=[2,3)\times[0,3)\). Coordinatewise intersection gives \[ A\cap B=[2,3)\times[1,3). \] For points of \(A\) whose first coordinate is outside \([2,3)\), the first-coordinate difference is \([0,2)\cup[3,4)\). This gives the two rectangles \([0,2)\times[1,5)\) and \([3,4)\times[1,5)\). For points whose first coordinate is inside \([2,3)\), the second coordinate must be outside \([0,3)\); within \([1,5)\), that part is \([3,5)\). The remaining rectangle is \([2,3)\times[3,5)\). Therefore \[ A\setminus B= ([0,2)\times[1,5))\cup([3,4)\times[1,5))\cup([2,3)\times[3,5)). \] The three pieces are disjoint. The first two have disjoint first-coordinate intervals; each is also disjoint from the third because its first coordinate is outside \([2,3)\). Their union has the required membership rule: either the first coordinate is outside \([2,3)\), or it is inside that interval and the second coordinate is at least \(3\).

Check: using rectangle areas as an independent check, \(A\) has area \(4\cdot4=16\), and \(A\cap B\) has area \(1\cdot2=2\), so the difference has area \(16-2=14\). The three pieces have areas \(2\cdot4=8\), \(1\cdot4=4\), and \(1\cdot2=2\); their sum is \(8+4+2=14\).

Finite Subsets and a Boundary Pitfall

Let \(X\) be any set, possibly infinite, and let \(\mathcal{F}\) be the family of all finite subsets of \(X\). The empty set is finite, so it belongs to \(\mathcal{F}\). If \(A,B\in\mathcal{F}\), then \(A\cap B\) and \(A\setminus B\) are finite. In particular, \(A\cap B\in\mathcal{F}\), and the difference condition holds with the single piece \(A\setminus B\) when that set is nonempty, or with the empty union when it is empty. Thus \(\mathcal{F}\) is a semiring. This example differs from intervals and rectangles: here the difference is itself a member, so no splitting is needed.

Worked Example: A Semiring of Finite Subsets

Let \(X=\{p,q,r,s,t\}\), \(A=\{p,q,r\}\), and \(B=\{q,s\}\). Then \(A\cap B=\{q\}\), which is finite, and \(A\setminus B=\{p,r\}\). The difference decomposition has one piece, namely \(\{p,r\}\), which belongs to \(\mathcal{F}\). The pieces in a one-piece decomposition are disjoint by definition. Checking membership directly, \(p\) and \(r\) are in \(A\) but not \(B\), while \(q\) is in both and is therefore excluded from the difference.

Common mistake: treating a half-open endpoint as if it belonged to both adjacent pieces. For \(A=[0,4)\) and \(B=[2,3)\), a wrong calculation is \(A\setminus B=[0,2]\cup[3,4)\). It incorrectly includes \(2\), even though \(2\in B\), and \(4\), even though \(4\notin A\). The correct calculation is \([0,2)\cup[3,4)\): the first piece ends just before \(2\), while the second begins at \(3\), which is excluded from \(B\). Endpoint conventions are part of the set calculation, not cosmetic notation.

These examples show why the semiring conditions are stated in terms of finite disjoint decompositions rather than closure under differences. Intersections are computed coordinatewise for rectangles, while differences are organized by the first coordinate that leaves the second rectangle. For finite subsets, the same axioms hold for a simpler reason: intersections and differences remain finite.

Check Your Understanding

For each question, specify the sets at boundary points when relevant, and verify the required semiring condition.

  1. Compute \([0,6)\setminus[2,5)\) as a disjoint union of half-open intervals.
  2. For \(A=[0,3)\times[0,2)\) and \(B=[1,2)\times[1,4)\), find \(A\cap B\) and describe a disjoint rectangular decomposition of \(A\setminus B\).
  3. Explain why the empty union is needed to represent \(A\setminus B\) when \(A\subseteq B\).
  4. For a set \(X\), verify the intersection and difference conditions for the family of all finite subsets of \(X\), including \(X=\varnothing\).
  5. In the interval difference \([1,4)\setminus[2,4)\), determine whether \(2\) and \(4\) belong to the difference, and justify both answers.