The first part of our course is set theory. But… why do we study set theory? Why it is here where the whole higher mathematics starts?

I think that there are many answers to those questions. Set theory simply is in the heart of mathematics. It supplies the rest of maths with notions and assumptions. It gives mathematics its language. So that mathematicians are able to communicate in a precise way, which is easy to understand why such a precision is crucial in mathematics. Mathematicians achieved it fully (somehow in contrast to layers, where more precision is also needed…).

But there is more to that. Set theory is also a discipline which has elaborated perfect mathematical reasoning. Precise, logical, but also amazingly ingenious and spectacular reasoning. Ability to create such a reasoning, which one can improve studying set theory, seems to be the most basic ability of a good mathematician. And, I dare say, the most basic ability of an intelligent human.

Finally, the most elusive argument. Set theory magnificently shows the greatness of human mind. It describes an elusive part of the world, going on in a human mind. But it is not just thinking up things, it is discovering them. It feels extraordinary to be able to discover something using only your own mind.

What do we discover? We discover phenomena the most elusive matters, finding answers to the most extraordinary questions. Questions about infinity, about the sense of logical reasoning, about the nature of the world. The answers are absolutely rational and metaphysical in the same time, and show that between these two aspects there is no contradiction.

### Mathematical language

This first class is devoted to introducing mathematical language, first attempts to proving things and dealing with sets.

Main notions:

- means “for all natural numbers “, means “there exists a natural number “.
- so means “for all natural numbers there exists a natural number such that “.
- to prove the above statement we should find such for any given , so for given we let and we are done.
- to disprove a statement we usually show a counterexample, e.g. to , we set and notice that there does not exist such that .
- means the set of all natural numbers which satisfy the given condition (in this case n is divisible by 2).
- operations on sets:
- — union of sets and — all the elements which are in or in
- — intersection of sets and — all the elements which are in both and
- — difference of sets and — all the elements which are in but not in
- — symmetric difference of sets and — all the elements which are exactly in one of the sets and .

- you should get used to the situation that the elements of sets are sets. Actually in mathematics it is always the case.
- we can denote finite sets simply listing their elements, e.g.: . Sets do not have anything like order or multiplicity, so e.g.: .
- We say that something is an element of some set denoting it by . E.g. .
- Set is a subset of a set , if every element of is also in . We denote it in the following way: , e.g. . We say sometimes that is included in .
- E.g.: set has 3 elements: 2, 3 and 5, and 8 subsets: (the empty set), .

### Proving equality between two sets

Now, let us talk about proving that two sets (usually defined by some set operations) are always equal, e.g. we will prove, that for all sets . You already know from the lecture that there are three methods, out of which we will prefer the third one, because it is the most general method and it will be useful further in the course.

- Venn’s diagrams method. We draw a diagram of the set which is on the left side of the equation and a diagram of the set which is on the right, computing the subsequent set operations. This method works for at most 3 sets, because it is impossible to draw more independent sets on a plane in an easy way (it is possible but not with circles and becomes definitely more complicated when number of sets increases).

- independent family method. We construct an independent family of sets, i.e. such family of sets that each intersection of sets or their complements is non-empty. For three sets it is sufficient to take the set and set . Then it is sufficient to check the equality on this family of sets — and we know it will work for any family. In our case we calculate left-hand side: and right-hand side: , and we are done.
- the third method starts with an observation that if and only if and . We can therefore split our proof into two parts: proving the first inclusion and proving the second one.

But how to prove that ? We start our prove by taking form , so let . Next by a sequence of implications we prove that also , which proves the inclusion.

Sometimes proving that , the proofs of and of can be easily done simultaneously. We simply pay attention whether the implications in the proof of that if , then , work also in the other direction. Whether the implications are actually equivalences.

When we prove that a given statement if false, it is sufficient to show a counterexample, i.e. an example of such sets that the statement is false for them.

In our case:

We prove that: . Let , then oraz , so lub , but , so , so or , therefore .

Now we prove that: : Let , so or , therefore lub , but in both cases if . Therefore , but , so .

When we prove that one statement holds if and only if some other statement holds, then usually we split the proof into two proofs of left side and right side implications.

Sometimes proving that an implication holds we use a proof by contradiction. We assume the assumption and a negation of the hypothesis, and next we try to get a contradiction.