{% set N = "\mathbb{N}" %} {% set U = "\mathcal{U}" %} {% set S = "\mathcal{S}" %} {% set E = "\emptyset" %}
The theory of sets is deep and has many subtleties. Strictly speaking, what exactly are sets and what behaviors one should expect from them are still matters of debate in mathematical philosophy and logic. However, at the informal level — the level at which this book uses set theory — sets are conceptually simple things. They are just unordered collections of arbitrary objects. Note that when I say "unordered collections" and "objects", I do not pretend to mean anything mathematically precise by them. In fact, I cannot do so without either circular reasoning or infinite regress. Rather, I am merely appealing to one's intuitive ideas of what an "unordered collection" and an "arbitrary object" should be and hope that everyone more or less agrees on those ideas.
Moving on, a set is denoted either in explicit form where all the elements of the set are written down between curly braces or in set builder form where the condition/predicate satisfied by the elements of the set is written down between curly braces. An example of the former is
If one thinks about the two notations for a while, one will realize that the set builder form is more expressive than the explicit form. One can, for example, easily denote and manipulate infinite sets with the set builder form, while one cannot humanly write down the explicit form of an infinite set. However, the set builder form is too powerful. In general, collections of the form
As discussed above, sets are collections containing objects. To show that an object
One of the most important, if trivial, examples of sets is the empty set that contains no objects. It is either denoted by
One calls a set
It should not be hard to see that two sets are equal if and only if each is a subset of the other. Furthermore, note the following useful observation: if
In this book, I primarily use three operations to make new sets from old ones (assuming a set theory where all objects being talked about are also sets):
-
Union: Given a set of many other sets
$${{S}}$$ , $$ \bigcup{{S}}={x\in{{U}}:\ x \in S\ \text{for some}\ S \in {{S}}} $$ i.e.$$\bigcup{{S}}$$ is the set of all objects that are in at least one of the sets inside$${{S}}$$ . -
Intersection: Given a set of many other sets
$${{S}}$$ , $$ \bigcap{{S}}={x\in{{U}}:\ x \in S\ \text{for all}\ S \in {{S}}} $$ i.e.$$\bigcap{{S}}$$ is the set of all objects that are common to all the sets inside$${{S}}$$ . Technically,$${{S}}$$ should be non-empty for$$\bigcap{{S}}$$ to be a set; otherwise, the intersection would be the whole of$${{U}}$$ which is not a set. -
Power: Given a set
$$S$$ $$ \mathcal{P}S={X\in{{U}}:\ X \subseteq S} $$ i.e.$$\mathcal{P}S$$ is the set of all subsets of$$S$$ .
Even though sets are unordered, one can manually construct order out of them. For instance, the ordered pair
A function
- For every
$$x \in X$$ , there is exactly one$$y\in Y$$ such that$$(x,y)\in f$$ . One says that$$x$$ is mapped to$$y$$ and denotes this fact as$$f(x)$$ . This denotation is unambiguous since, as said before, there is just a single$$y$$ that$$f(x)$$ could ever refer to.
Such a function
Given two functions
The set of all elements of
For a given element
One says that
On the other hand, one says that
$$f(X)=Y$$ -
$$f^{-1}(y)\neq{{E}}$$ for any$$y \in Y$$ . -
$$U \subseteq f(f^{-1}(U))$$ for every$$U \subseteq Y$$
Given two sets such that
If a function is both injective and surjective, it is called bijective. Hence, if
I now present some elementary results about functions in general.
Restriction to Subset and its Image is Surjection: For any function $$f:X \to Y$$ and $$U \subseteq X$$, restricting the function's domain and codomain to $$U$$ and $$f(U)$$, respectively, produces a surjection; furthermore, if $$f$$ is an injection, so is this restriction.
Proof: As per the theorem, let
Image of a Subset is a Subset of the Image: For any function $$f:X \to Y$$ and $$U \subseteq X$$, $$f(U) \subseteq Y$$. Furthermore, if $$f$$ is injective and $$U$$ is a strict subset of $$X$$, then $$f(U)$$ is a strict subset of $$Y$$.
Proof: This is left to the reader.
Left Inverse of a Bijection is a Bijection: If $$f:X \to Y$$ is a left inverse of a bijection $$f':Y \to X$$, then $$f$$ is bijection.
Proof: Let me first show that
Next, showing the surjectivity of
Composition of Bijections is a Bijection: Given bijections $$f:X \to Y$$ and $$f':Y \to Z$$, the composition $$(f' \circ f):X \to Z$$ is also a bijection.
Proof: This is left to the reader.