set theory
set theory
Apart from classical logic, we assume the usual informal concept of sets. The reader (only) needs to
know the concepts of
-
subsets:\(S \subset X\);
-
complements \(X \setminus S\) of subsets;
-
image sets \(f(X)\) and [[pre-image]] sets \(f^{-1}(Y)\) under a [[function]]
\(f \colon X \to Y\); -
unions \(\underset{i \in I}{\cup} S_i\) and intersections \(\underset{i \in I}{\cap} S_i\) of dependent type subsets \(\{S_i \subset X\}_{i \in I}\).
The only rules of set theory that we use are the
- 1.interactions of images and pre-images with unions and intersections
- de Morgan duality
For reference, we recall these:
(images preserve unions but not in general intersections)
Let \(f \colon X \longrightarrow Y\) be a function between sets. Let \(\{S_i \subset X\}_{i \in I}\) be a set of subsets of \(X\). Then
-
\(f\left( \underset{i \in I}{\cup} S_i\right) = \left(\underset{i \in I}{\cup} f(S_i)\right)\) (the image under \(f\) of a union of subsets is the union of the images)
-
\(f\left( \underset{i \in I}{\cap} S_i\right) \subset \left(\underset{i \in I}{\cap} f(S_i)\right)\) (the image under \(f\) of the intersection of the subsets is contained in the intersection of the images).
The injective function in the second item is in general proper. If \(f\) is an [[injective function]] and if \(I\) is non-empty, then this is a bijection:
- \((f\,\text{injective}) \Rightarrow \left(f\left( \underset{i \in I}{\cap} S_i\right) = \left(\underset{i \in I}{\cap} f(S_i)\right)\right)\)
pre-images preserve unions and intersections
Let \(f \colon X \longrightarrow Y\) be a function between sets. Let \(\{T_i \subset Y\}_{i \in I}\) be a set of subsets of \(Y\). Then
-
\(f^{-1}\left( \underset{i \in I}{\cup} T_i\right) = \left(\underset{i \in I}{\cup} f^{-1}(T_i)\right)\) (the pre-image under \(f\) of a [[union]] of subsets is the union of the pre-images),
-
\(f^{-1}\left( \underset{i \in I}{\cap} T_i\right) = \left(\underset{i \in I}{\cap} f^{-1}(T_i)\right)\) (the pre-image under \(f\) of the intersection of the subsets is contained in the intersection of the pre-images).
de Morgan's law
Given a set \(X\) and a set of subsets
then the complement of their union is the intersection of their complements
and the complement of their intersection is the union of their complements
Moreover, taking complements reverses inclusion relations: