Sets¶
In this section we will review basic concepts of set theory.
Actually, it’s not a formal definition. It is just a working definition which we will use going forward.
- Sets are denoted by capital letters.
- Objects in a set are called members, elements or points.
- \(x \in A\) means that element \(x\) belongs to set \(A\).
- \(x \notin A\) means that \(x\) doesn’t belong to set \(A\).
- \(\{ a,b,c\}\) denotes a set with elements \(a\), \(b\), and \(c\). Their order is not relevant.
Clearly, \(A = B \iff (A \subseteq B \text{ and } B \subseteq A)\).
We define fundamental set operations below
- The union \(A \cup B\) of \(A\) and \(B\) is defined as
- The intersection \(A \cap B\) of \(A\) and \(B\) is defined as
- The difference \(A \setminus B\) of \(A\) and \(B\) is defined as
Some useful identities
- \((A \cup B) \cap C = (A \cup C) \cap (B \cup C)\).
- \((A \cap B) \cup C = (A \cap C) \cup (B \cap C)\).
- \((A \cup B) \setminus C = (A \setminus C) \cap (B \setminus C)\).
- \((A \cap B) \setminus C = (A \setminus C) \cap (B \setminus C)\).
Symmetric difference between \(A\) and \(B\) is defined as
i.e. the elements which are in \(A\) but not in \(B\) and the elements which are in \(B\) but not in \(A\).
Family of sets¶
Following are some examples of index sets
- \(\{1,2,3,4\}\): the family consists of only 4 sets.
- \(\{0,1,2,3\}\): the family consists again of only 4 sets but indices are different.
- \(\Nat\): The sets in family are indexed by natural numbers. They are countably infinite.
- \(\ZZ\): The sets in family are indexed by integers. They are countably infinite.
- \(\QQ\): The sets in family are indexed by rational numbers. They are countably infinite.
- \(\RR\): There are uncountably infinite sets in the family.
If \(\mathcal{F}\) is a family of sets, then by letting \(I=\mathcal{F}\) and \(A_i = i \quad \forall i \in I\), we can express \(\mathcal{F}\) in the form of \(\{ A_i\}_{i \in I}\).
Let \(\{ A_i\}_{i \in I}\) be a family of sets.
The union of the family is defined to be
\[\bigcup_{i\in I} A_i = \{ x : \exists i \in I \text{ such that } x \in A_i\}.\]The intersection of the family is defined to be
\[\bigcap_{i \in I} A_i = \{ x : x \in A_i \quad \forall i \in I\}.\]
We will also use simpler notation \(\bigcup A_i\), \(\bigcap A_i\) for denoting the union and inersection of family.
If \(I =\Nat = \{1,2,3,\dots\}\) (the set of natural numbers), then we will denote union and intersection by \(\bigcup_{i=1}^{\infty}A_i\) and \(\bigcap_{i=1}^{\infty}A_i\).
We now have the generalized distributive law:
In the following \(X\) is a big fixed set (sort of a frame of reference) and we will be considering different subsets of it.
Let \(X\) be a fixed set. If \(P(x)\) is a property well defined for all \(x \in X\), then the set of all \(x\) for which \(P(x)\) is true is denoted by \(\{x \in X : P(x)\}\).
We have
- \((A^c)^c = A\).
- \(A \cap A^c = \EmptySet\).
- \(A \cup A^c = X\).
- \(A\setminus B = A \cap B^c\).
- \(A \subseteq B \iff B^c \subseteq A^c\).
- \((A \cup B)^c = A^c \cap B^c\).
- \((A \cap B)^c = A^c \cup B^c\).