zettelkasten

Search IconIcon to open search
Dark ModeDark Mode

Sets

Based on 21-127 Concepts of Mathematics

H2 Defining Sets

  • Informal: a set is a collection of objects called elements
  • More formal: a set is a collections of objects from the universe of discourse called U\mathscr{U}, which is supposedly the set of all mathematical objects but not itself.
    • Note quantifiers in Pure Math - Logic

      Logic

      Based on Proposition and Proof A proposition is a statement to which it makes sense to assign a truth value (either...

      7/12/2025

      refers to U\mathscr{U} by default. So for example x,p(x)xU,p(x)\exists x, p(x) \equiv \exists x \in \mathscr{U}, p(x).
  • Ways to specify a set
    • Implied set - list some elements, hopefully readers learn the pattern. eg.
      • B=2,3,5,7,11,13,B = {2,3,5,7,11,13,…}
    • Set builder notation - specify set using property. ex.
      • C=xx>2C = {x | x>2}
      • D=xn is a prime numberD = {x | n \text{ is a prime number}}

H3 Some Number Sets

  • N\mathbb{N} = set of natural numbers (includes 0)
  • Z\mathbb{Z} = set of integers (from german word)
  • Q\mathbb{Q} = set of rational numbers (from italian word) = xx=ab for some a,bZ with b0{x|x=\frac{a}{b} \text{ for some } a, b \in \mathbb{Z} \text{ with } b \neq 0}
  • R\mathbb{R} = set of real numbers
  • C\mathbb{C} = set of complex numbers

Fun fact: the truth value of ππR\pi^{\pi}\in \mathbb{R} is unknown yet.

H3 Intervals

Let a,bRa, b \in \mathbb{R} with a<ba < b, then:

  • (a,b)(a, b) = xRa<x<b{x \in \mathbb{R} \mid a<x<b} - open interval
  • [a,b][a, b] = xRaxb{ x \in \mathbb{R} \mid a \leq x \leq b} closed interval

Variants on notation

  • mixing ${$ and $($ works.
  • using infinity works
  • but don’t do [,][-\infty, \infty]

H3 Membership of a set

  • xAx \in A indicates xx is an element of the set AA
  • xAx \notin A indicates xx is not an element of the set AA

H3 Set being empty or non-empty

  • A set XX is non-empty or inhabited iff x,xX\exists x, x \in X. Otherwise, a set is empty and we write X=X = \varnothing.
  • There exists a unique empty set.

H2 Subsets

Given sets AA and BB, AA is a subset of BB if aA,aB\forall a \in A, a \in B. We write ABA \subseteq B.

It follows that \varnothing is a subset of all sets because every element of the empty set is vacuously in another other set.

H3 Power Set

The power set of set XX denoted by P(X)\mathscr{P}(X) is the set of all subsets of XX. That is, U,(UP(X)UX)\forall U, (U \in \mathscr{P}(X) \Leftrightarrow U \subseteq X).

H3 Proof by Double Containment

Axiom: sets AA and BB are equal iff they are subset of each other viz. (A=B)(ABBA)(A = B) \Leftrightarrow (A \subseteq B \wedge B \subseteq A).

H3 Basic Operations

Let’s say we have sets XX and YY.

  • The intersection XY=aaXaYX \cap Y = {a \mid a \in X \wedge a \in Y}.
  • The union XY=aaXaYX \cup Y = {a \mid a \in X \vee a \in Y}.
  • The relative complement of XX in YY is XY=aaXaYX \setminus Y = {a \mid a \in X \wedge a \notin Y}.

H3 Indexed Operations

Let II be a set. Let XiX_{i} be a set for all iIi \in I.

  • \displaystyle \bigcap_{i \in I} X_i =\left{a \mid \forall i \in I, a \in X_i\right}. Essentially it’s the set of things all sets have in common.
  • \displaystyle \bigcup_{i \in I} X_i =\left{a \mid \exists i \in I, a \in X_i\right}. Essentially it’s the set of things that are in at least one of the sets.

Other notations:

  • i=1Xi\displaystyle \bigcap_{i = 1}^{\infty} X_i
  • i=1Xi\displaystyle \bigcup_{i = 1}^{\infty} X_i

H3 Cartesian Product

Let’s say we have sets XX and YY.

The cartesian product X \times Y={p \mid p=(x, y)$ for some $X \in X$ and $y \in Y} viz. the set of all ordered pairs of xx and yy with xXx \in X and yYy \in Y.

The kk-fold cartesian product X^k = { t \mid t = (x_{1}, x_{2}, \dots, x_{k})$ for some elements $x_{1}, x_{2}, \dots, x_{k} \in X}.

H2 Partitions

A set can be divided into disjoint chunks. One definition of partition says that given set XX and SP(X)\mathscr{S} \subseteq \mathscr{P}(X), we consider S\mathscr{S} to be a partition of XX if:

  • Every set in S\mathscr{S} is non-empty i.e. US,U\forall U \in \mathscr{S}, U \neq \varnothing.
  • Every element is in one and only one chunk. i.e. xX,(!US,xU)\forall x \in X, (\exists! U \in \mathscr{S}, x \in U).

The consequences is that the intersection of any two chunks is empty, and that all the chunks in S\mathscr{S} union to our big set XX.

Note that in Pure Math - Counting

Counting

Based on We're talking about counting how many things are in a set. Not to be confused with counting with...

7/12/2025

, we use finite partition, in which we are allowed to have empty partitions.