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:

xAxA    ¬(xA)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: AB    x(xAxB)AB    ABAB\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(xAxB)    ABBA\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 ABA \cup B. Defined as: xAB    xAxBx \in A \cup B \iff x \in A \lor x \in B
  6. Intersection: For any sets A,BA, B there exists a set ABA \cap B. Defined as: xAB    xAxBx \in A \cap B \iff x \in A \land x \in B
  7. Difference: For any sets A,BA, B there exists a set ABA \setminus B. Defined as: xAB    xAxBx \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: {xAP(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. xP(A)    xAx \in \mathcal{P}(A) \iff x \subseteq A
Existance 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: AB    A=ABA\subseteq B \iff A = A\cap B (The lemma also includes B=ABB = A\cup B, but we will skip that here.)