Content
3: Sets & more
Sets

The most basic object

In mathematics, a set constitutes the most basic object. We define a mathematical object by the properties of the operations we can perform on it.

In the case of sets, we only have a single operation: the membership predicate takes two sets and maps them to a truth value. In infix notation:

x∈Ax∉A  ⟺  ¬(x∈A)x \in A \\ x \notin A \iff \neg (x \in A)

Finite sets can be written by enumerating their elements:

{A,B,C}\{ A, B, C \}
💡

When enumerating sets, the order of elements does not matter. Elements can be repeated without an effect: {A,B,C}={A,C,B}={A,B,C,A}\{ A, B, C \} = \{ A, C, B \} = \{ A, B, C, A \}

In the following, we define some shorthand notation and some properties of the membership predicate. If you want a more formal treatment of set theory have a look at the Zermelo-Fraenkel set theory (opens in a new tab).

  1. Empty set: There exists an empty set, usually denoted as ∅\emptyset. ∀x¬(x∈∅)\forall x \neg (x \in \emptyset)
  2. Subset: A⊆B  ⟺  ∀x(x∈A→x∈B)A⊂B  ⟺  A⊆B∧A≠B\begin{align*} A \subseteq B &\iff \forall x (x \in A \to x \in B) \\ A \subset B &\iff A \subseteq B \land A \neq B \\ \end{align*}
  3. Equality: A=B  ⟺  ∀x(x∈A↔x∈B)  ⟺  A⊆B∧B⊆A\begin{align*} A = B &\iff \forall x (x \in A \leftrightarrow x \in B) \\ &\iff A \subseteq B \land B \subseteq A \end{align*}
  4. Axiom of pairing: For any sets A,BA, B there exists a set {A,B}\{A, B\}.
  5. Union: For any sets A,BA, B there exists a set A∪BA \cup B. Defined as: x∈A∪B  ⟺  x∈A∨x∈Bx \in A \cup B \iff x \in A \lor x \in B
  6. Intersection: For any sets A,BA, B there exists a set A∩BA \cap B. Defined as: x∈A∩B  ⟺  x∈A∧x∈Bx \in A \cap B \iff x \in A \land x \in B
  7. Difference: For any sets A,BA, B there exists a set A∖BA \setminus B. Defined as: x∈A∖B  ⟺  x∈A∧x∉Bx \in A \setminus B \iff x \in A \land x \notin B
  8. Filter: For any predicate PP and set AA there exists a set containing all the elements of AA for which PP holds. In set notation: {x∈A∣P(x)}\{ x \in A \mid P(x) \}
  9. Power set: For any set AA there exists a set P(A)\mathcal{P}(A) containing all subsets of AA. x∈P(A)  ⟺  x⊆Ax \in \mathcal{P}(A) \iff x \subseteq A
Existence of SingletonsSource:  Max Obreiter

Prove that for any set AA there exists a set {A}\{ A \} containing only AA.

Proving Consistency (Theorem 3.4)Source:  Noah Tittelbach

Prove that: A⊆B  ⟺  A=A∩BA\subseteq B \iff A = A\cap B (The lemma also includes B=A∪BB = A\cup B, but we will skip that here.)