Lecture 11: the powerset Boolean algebra; disjoint unions of subsets; families of subsets; big unions and big intersections of families of subsets [01GP]
- November 15, 2026
- Marcelo Fiore, Jon Sterling
These lecture notes were prepared by Jon Sterling using Marcelo Fiore’s lectures as source material. Any mistakes were introduced by Jon Sterling. Generative AI was not used to write these lecture notes.
Boolean structure of subsets [01GS]
- November 15, 2026
- Marcelo Fiore, Jon Sterling
If you have some programming experience, you will be used to a number of basic constants and operations involving the booleans. For example, we have the constants true and false corresponding to \top and \bot , and the operations && and || corresponding to conjunction \land and disjunction \lor , and the operation not corresponding to negation \lnot . These operations satisfy certain algebraic laws, which we have not attempted to minimise:
- \land and \lor are both commutative and associative.
- \top is a unit for \land , i.e. {\mathopen {}\left (\top \land P\right )\mathclose {}} = P.
- \bot is a unit for \lor , i.e. {\mathopen {}\left (\bot \lor P\right )\mathclose {}}=P.
- \land and \lor distribute over each other: P\land {\mathopen {}\left (Q\lor R\right )\mathclose {}} = {\mathopen {}\left (P\land Q\right )\mathclose {}}\lor {\mathopen {}\left (P\land R\right )\mathclose {}}, and P\lor {\mathopen {}\left (Q\land R\right )\mathclose {}} = {\mathopen {}\left (P\lor Q\right )\mathclose {}}\land {\mathopen {}\left (P\lor R\right )\mathclose {}}.
- \land and \lor absorb each other: {\mathopen {}\left (P\lor {\mathopen {}\left (P\land Q\right )\mathclose {}}\right )\mathclose {}} = P and P\land {\mathopen {}\left (P\lor Q\right )\mathclose {}} = P.
- \land and \lor are idempotent, i.e. P\land P = P and P \lor P = P.
- De Morgan’s laws hold: \lnot \bot = \mathsf {true}, \lnot \top =\bot , \lnot {\mathopen {}\left (P\lor Q\right )\mathclose {}} = \lnot P \land \lnot Q, and \lnot {\mathopen {}\left (P\land Q\right )\mathclose {}} = \lnot P \lor \lnot Q.
- Negation is an involution: \lnot \lnot P = P.
- Complementation laws: P\land \lnot P = \bot and P\lor \lnot P = \top .
A set satisfying this “API” (i.e. equipped with this operations and satisfying these laws) is called a Boolean algebra. We will see that subsets of a fixed set can be equipped with operations like these, so that the powerset \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} becomes a Boolean algebra.
Definition The total subset [01GT]
- November 15, 2026
- Jon Sterling
Given a set A, we can view A as a subset of itself: it is the subset that contains all elements of A, which corresponds to the predicate P{\mathopen {}\left (x\right )\mathclose {}} = \top . It is equivalently the subset comprehension {\mathopen {}\left \{x:A\,\middle \vert \,\top \right \}\mathclose {}}.
Definition The empty subset [01GW]
- November 15, 2026
- Jon Sterling
Definition The intersection of two subsets [01GU]
- November 15, 2026
- Jon Sterling
Let U,V be two subsets of A. Then the intersection of U and V, written U\cap V, is the following subset of A which we may define using subset comprehension and conjunction:
U\cap V \coloneqq {\mathopen {}\left \{x:A\,\middle \vert \,x\in U\land x\in V\right \}\mathclose {}}Definition The union of two subsets [01GV]
- November 15, 2026
- Jon Sterling
Let U,V be two subsets of A. Then the union of U and V, written U\cup V, is the following subset of A which we may define using subset comprehension and disjunction:
U\cup V \coloneqq {\mathopen {}\left \{x:A\,\middle \vert \,x\in U\lor x\in V\right \}\mathclose {}}Definition The complement of a subset [01GX]
- November 15, 2026
- Jon Sterling
Let U be a subset of A. Then the complement of U, written A\setminus U, is the subset containing every element not in U:
A\setminus U\coloneqq {\mathopen {}\left \{x:A\,\middle \vert \,x\not \in U\right \}\mathclose {}}Example The powerset boolean algebra [01GY]
- November 15, 2026
- Marcelo Fiore, Jon Sterling
For a set A, the powerset \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} is endowed the structure of a boolean algebra by the total subset, empty subset, intersection, union, and complement:
\begin {aligned} \top _{\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}} &\coloneqq A \\ \bot _{\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}} &\coloneqq \varnothing \\ U\land _{\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}} V &\coloneqq U\cap V \\ U\lor _{\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}} V &\coloneqq U\cup V \\ \lnot _{\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}}U &\coloneqq A\setminus U \end {aligned}Indeed, all the following identities can be seen to hold:
\begin {gathered} U\cap V = V\cap U \quad U\cap (V\cap W) = (U\cap V)\cap W \\ U\cup V = V\cup U \quad U\cup (V\cup W) = (U\cup V)\cup W \\ A\cap U = U\qquad \varnothing \cup U = \varnothing \\ U\cap {\mathopen {}\left (V\cup W\right )\mathclose {}} = {\mathopen {}\left (U\cap V\right )\mathclose {}}\cup {\mathopen {}\left (U\cap W\right )\mathclose {}} \quad U\cup {\mathopen {}\left (V\cap W\right )\mathclose {}} = {\mathopen {}\left (U\cup V\right )\mathclose {}}\cap {\mathopen {}\left (U\cup W\right )\mathclose {}} \\ U\cap {\mathopen {}\left (U\cup V\right )\mathclose {}} = U \quad U\cup {\mathopen {}\left (U\cap V\right )\mathclose {}} = U \\ U\cap U = U = U\cup U \\ A\setminus \varnothing = A \quad A\setminus A = \varnothing \\ A\setminus {\mathopen {}\left (U\cup V\right )\mathclose {}} = {\mathopen {}\left (A\setminus U\right )\mathclose {}}\cap {\mathopen {}\left (A\setminus V\right )\mathclose {}} \quad A\setminus {\mathopen {}\left (U\cap V\right )\mathclose {}} = {\mathopen {}\left (A\setminus U\right )\mathclose {}}\cup {\mathopen {}\left (A\setminus V\right )\mathclose {}} \\ A\setminus {\mathopen {}\left (A\setminus U\right )\mathclose {}} = U \\ U\cap A\setminus U = \varnothing \quad U\cup A\setminus U = A \end {gathered}Definition Disjoint subsets and unions [01GZ]
- November 15, 2026
- Jon Sterling
Two subsets U,V\subseteq A are said to be disjoint when they have no elements in common; in other words, when any of the following equivalent conditions hold: \begin {gathered} U\cap V = \bot \\ U\cap V \subseteq \bot \\ V \subseteq A\setminus U \\ U\subseteq A\setminus V \\ \lnot \exists x:A\mathpunct {.} x\in U \land x \in V \\ \forall x:A\mathpunct {.} \lnot {\mathopen {}\left (x\in U \land x \in V\right )\mathclose {}} \\ \forall x:A\mathpunct {.} x\not \in U \lor x \not \in V \end {gathered}
When U and V are disjoint subsets of A, their union U\cup V is said to be a disjoint union. In this case we may write U \mathbin {\dot \cup } V for emphasis.
Lemma Interaction between boolean structure and the subset ordering [01H2]
- November 15, 2026
- Marcelo Fiore, Jon Sterling
Let A be a fixed set. Then for all subsets U,V,W\subseteq A we have U\cup V \subseteq W \Longleftrightarrow U\subseteq W \land V\subseteq W and W\subseteq U\cap V \Longleftrightarrow W\subseteq U \land W\subseteq V\text {.}
Remark Functions out of unions and disjoint unions [01H1]
- November 15, 2026
- Jon Sterling
When U,V are disjoint subsets of a set A, there is a simple way to define any function f\colon U\mathbin {\dot \cup }V\to B:
- First define a function f_U\colon U\to B;
- Then define a a function f_V\colon V\to B.
Then f\colon U\mathbin {\dot \cup }V\to B is defined to use f_U on elements in U and to use f_V on elements in V:
f{\mathopen {}\left (x\right )\mathclose {}} \coloneqq \begin {cases} f_U{\mathopen {}\left (x\right )\mathclose {}}&\textbf {when } x\in U \\ f_V{\mathopen {}\left (x\right )\mathclose {}}&\textbf {when } x\in V \end {cases}What is U and V are not disjoint? Then the definition of f\colon U\cup V\to B might not be well-defined on inputs that lie in both U and V. In the case of unions that we do not know to be disjoint, defining a function f\colon U\cup V\to B has three steps:
- First define a function f_U\colon U\to B;
- Then define a function f_V\colon V\to B;
- Finally check that the two functions agree on the intersection of U and V, i.e. that \forall x\in U\cap V\mathpunct {.} f_U{\mathopen {}\left (x\right )\mathclose {}} = f_V{\mathopen {}\left (x\right )\mathclose {}}\text {.}
Top secret category theory comment! (Click at your peril!)
- November 15, 2026
- Jon Sterling
The two-step method for defining functions out of a disjoint union U\mathbin {\dot \cup } V is the universal property of U\mathbin {\dot \cup } V as the sum of U and V viewed as sets.
The three-step method for defining functions U\cup V\to B out of a possibly non-disjoint union is the universal property of U\cup V as the pushout of the span U\gets U\cap V\to V of sets. If this kind of thing interests you, talk to me!
Families and sets of subsets; “big” union and intersection [01H0]
- November 15, 2026
- Jon Sterling
Definition Family of subsets [01H3]
- November 15, 2026
- Jon Sterling
A family of subsets of a set A is given by a set I of indices together with an assignment U_i\subseteq A to each i: I. Equivalently, a family of subsets of A is given by a set I together with a function U_{{\mathopen {}\left (-\right )\mathclose {}}}\colon I\to \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} from the indexing set to the powerset.
A family of subsets may be referred to with many different notations. Here are a few examples that you might see in the future:
{\mathopen {}\left (U_i\right )\mathclose {}}_{i:I} \qquad {\mathopen {}\left (U_i\mid i:I\right )\mathclose {}} \qquad i:I\mapsto U_iDefinition Set of subsets [01H4]
- November 15, 2026
- Jon Sterling
Families of subsets and sets of subsets are very similar, and often can be used interchangeably; but they are not the same concept. We use a family when we want to remember “names” of some chosen subsets, and we use a set of subsets when we don’t care about that.
Converting between families and sets of subsets [01H5]
- November 15, 2026
- Jon Sterling
Given a family of subsets U_{{\mathopen {}\left (-\right )\mathclose {}}}\colon I \to \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}, we may construct its image \mathrm {Im}{\mathopen {}\left (U\right )\mathclose {}}\subseteq \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} as follows:
\mathrm {Im}{\mathopen {}\left (U\right )\mathclose {}}\coloneqq {\mathopen {}\left \{W:\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}\,\middle \vert \,\exists i:I\mathpunct {.} W = U_i\right \}\mathclose {}}Conversely, every set of subsets \mathcal {S}\subseteq \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} gives rise to a family whose index set is \mathcal {S} itself, and assigns each U\in \mathcal {S} to itself:
\begin {aligned} \mathcal {S}&\to \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}\\ U &\mapsto U \end {aligned}Lemma Sets of subsets form a “retract” of families of subsets [01HU]
- November 30, 2026
- Jon Sterling
Let S\subseteq \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} be a set of subsets; if we turn it into a family of subsets {\mathopen {}\left (U\right )\mathclose {}}_{U\in S} and then take its image to get a set of subsets, we get S again.
Proof.
- November 30, 2026
- Jon Sterling
We compute the round-trip as follows:
\begin {aligned} \mathrm {Im}{\mathopen {}\left ( {\mathopen {}\left (U\right )\mathclose {}}_{U\in S} \right )\mathclose {}} &= {\mathopen {}\left \{ W:\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} \,\middle \vert \, \exists U\in S\mathpunct {.} W = U \right \}\mathclose {}} \\ &= {\mathopen {}\left \{W:\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}\,\middle \vert \,W\in S\right \}\mathclose {}} \\ &= S \end {aligned}The other round-trip does not hold. We will later on learn that this means the two constructions form a section-retraction pair but not a bijection.
Beyond Boolean algebras: “big” operations on subsets [01H6]
- November 15, 2026
- Jon Sterling
We have seen that the logical constants and operations \top ,\bot ,\land ,\lor ,\lnot correspond to A,\varnothing ,\cap ,\cup ,A\setminus - in the Boolean algebra of subsets of a fixed set A. But what about logical quantifiers like \exists and \forall ? Already, existential and universal quantification refer not to logical statements but rather to families of statements:
Given a set I and a family of statements {\mathopen {}\left (P_i\right )\mathclose {}}_{i: I}, we may form the existential quantification \exists i:I\mathpunct {.} P_i and the universal quantification \forall i:I\mathpunct {.} P_i.
Just as \top ,\bot ,\land ,\lor ,\lnot make logical statements form a Boolean algebra, the logical quantifiers make the class of families of statements form what some logicians call a Boolean “hyperdoctrine”. Don‘t worry about the frightening terminology, as we will not have need for that level of generality. But we will see today that our analogy between logical statements and subsets, by which we constructed the Boolean algebra of subsets, will extend to an analogy between families of statements and families of subsets, in which \exists becomes “big union” and \forall becomes “big intersection”.
Definition The intersection of a family of subsets [01H7]
- November 15, 2026
- Jon Sterling
The intersection of a family of subsets U_{{\mathopen {}\left (-\right )\mathclose {}}}\colon I\to \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} is defined as follows in terms of universal quantification:
\bigcap _{i:I} U_i \coloneqq {\mathopen {}\left \{x:A\,\middle \vert \, \forall i:I\mathpunct {.} x\in U_i \right \}\mathclose {}}Definition The union of a family of subsets [01H8]
- November 15, 2026
- Jon Sterling
The union of a family of subsets U_{{\mathopen {}\left (-\right )\mathclose {}}}\colon I\to \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} is defined as follows in terms of existential quantification:
\bigcup _{i:I} U_i \coloneqq {\mathopen {}\left \{x:A\,\middle \vert \, \exists i:I\mathpunct {.} x\in U_i \right \}\mathclose {}}Sometimes the above are called the “big intersection” and “big union” for emphasis, but it is not really necessary or helpful to do so.
Definition Unions and intersections of sets of subsets [01H9]
- November 15, 2026
- Jon Sterling
We have seen that any set of subsets \mathcal {S}\subseteq \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} can trivially as a family of subsets that assigns to each U\in \mathcal {S} the subset U\subseteq A itself. Using this transformation, we may directly extend the notation of “big” intersections and unions and to sets of subsets as follows:
\begin {aligned} \bigcap \mathcal {S} &\coloneqq \bigcap _{U\in \mathcal {S}}U \\ \bigcup \mathcal {S} &\coloneqq \bigcup _{U\in \mathcal {S}}U \end {aligned}Theorem Powerset Booelan algebra in terms of “big” operations [01HA]
- November 15, 2026
- Jon Sterling
Let A be a fixed set.
-
Let ¡_{\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}}\colon \varnothing \to \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} denote the empty family. Then:
- The total subset A\in \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} is the intersection \bigcap _{x: \varnothing }¡_{\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}}{\mathopen {}\left (x\right )\mathclose {}}.
- The empty subset \varnothing \in \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} is the union \bigcup _{x: \varnothing }¡_{\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}}{\mathopen {}\left (x\right )\mathclose {}}.
-
Let U,V\in \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} be two subsets of A, and define
{\mathopen {}\left [U,V\right ]\mathclose {}}\colon {\mathopen {}\left [2\right ]\mathclose {}}\to \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}
to be the following family of subsets indexed in the standard finite set with cardinality 2:
{\mathopen {}\left [U,V\right ]\mathclose {}}{\mathopen {}\left (i\right )\mathclose {}} \coloneqq
\begin {cases}
U &\textbf {when } i = 0
\\
V &\textbf {when } i = 1
\end {cases}
Then:
- The intersection U\cap V is the “big” intersection \bigcap _{i:{\mathopen {}\left [2\right ]\mathclose {}}}{\mathopen {}\left [U,V\right ]\mathclose {}}{\mathopen {}\left (i\right )\mathclose {}}.
- The union U\cup V is the “big” union \bigcup _{i:{\mathopen {}\left [2\right ]\mathclose {}}}{\mathopen {}\left [U,V\right ]\mathclose {}}{\mathopen {}\left (i\right )\mathclose {}}.