MathipediaThe free math encyclopedia

Set Theory

Set theory is the mathematical idea of putting things into collections and seeing what properties may arrise from those collections. Let us define a simple set of numbers, SS, that contains the number 1,2,31, 2, 3:

S={1,2,3}S=\left\{1, 2, 3\right\}

We are now prepared to ask questions about this set. Lets ask a few questions.

  1. Is the number 22 in the set SS?
  2. Is the number 44 in the set SS?
  3. If any element of the set SS were to be squared, would that value be greater than or equal to 1010?

The first two questions are simple to answer, and we can do so with some simple notation. We use the \in symbol to mean “in”, so 1S1\in S means “the number 11 is in the set SS”. Similarly we can put a strike (meaning “not”) through the symbol to mean “not in”, like 4∉S4 \not \in S.

The third question is a bit more abstract, because we want to answer a question about the entire set. To do this, we will use the \forall symbol (an upside-down A) meaning “for all”. The answer, first in text, looks like this: For all members xx in the set SS, it is true that x2<10x^2 < 10. With some mathematical notation is would look like this:

{xS:x2<10}\left\{\forall x \in S: x^2<10\right\}

Again: For all xx in SS, x2<10x^2 < 10. The colon is a seperator.

There is a similar operator to \forall, which is “exists” \exists. Instead of all members of a set needing to comply with a bound, only one or more members must comply. Try to understand this:

{xS:2x4}\left\{\exists x \in S : 2x \geq 4\right\}

“There exists xx in SS that satisfies the condition 2x42x \geq 4”. This of course is true, because 2(2)=42(2)=4 and 3(2)=63(2)=6.

Set-Builder Notation

Set-builder notation is the general notation that we use to define a set, which was implied above. To define a set of elements, we use curly braces surrounding the elements. If a \dots is present, that means that we intend the defined pattern to continue either indefinitely or to a point.

\begin{flalign} S_{1}=\left\{1,2,3\right\} \\ S_{2}=\left\{1,2,3,\dots\right\} \\ S_{3}=\left\{3,6,9,\dots,102,105\right\} \end{flalign}

The set S1S_1 contains only 1,2,31,2,3. The set S2S_2 contains all positive integers incrementing by 11. The set S3S_3 contains the positive integers divisible by 33 until 105105.

The Empty Set

When we are defining sets, we must define what an empty set looks like. An empty set is a set with no elements, and is commonly denoted with the greek phi, ϕ\phi.

ϕ={}\phi = \left\{\right\}

Set Operators

There are many operators of sets which let us interact and modify sets.

Subsets

Let A={1,2,3,4,5}A=\left\{1,2,3,4,5\right\}, and let SS be a subset of AA. This means that SS will have some combination of the elements of AA. For this example it is not important which elements, but it must only have elements from AA. This is handy because this guarentees that if element eSe\in S then eAe\in A. We again can show this with some new notation.

First we have the subset character, \subset. We can show that SS is a subset of AA with this character.

SAS \subset A

The second character is the implies arrow,     \implies. This arrow means that “if the thing on the left is true, then the thing on the right must be true”. We can use it to show the above property of the element ee in the subset.

eS    eAe\in S \implies e\in A

Proper Subsets

A proper subset is a subset of a set that is not equal to it.

AB  and  AB    ABA \subset B \ \text{ and }\ A \neq B \implies A \subsetneq B

Set Equality

Two sets are said to be equal if they are subsets of each other.

AB  and  BA    B=AA \subset B \ \text{ and }\ B \subset A \implies B = A

Unions of Sets

Two sets can be combined with the union operator, \cup.

AB={x:xA or xB}A \cup B = \left\{x : x \in A \text{ or } x \in B\right\}

Intersection of Sets

The intersection of sets AA and BB is the following:

AB={x:xA and xB}A \cap B = \left\{x : x \in A \text{ and } x \in B \right\}

Set Difference

The set difference of AA with respect to BB is set of elements that are only found in AA.

AB={xA and x∉B}A \setminus B = \{ x \in A \,\text{ and }\,x \not \in B \}

Set Compliment

The compliment of a set is the set of all elements that are not in A.

Ac={x:x∉A}A^c = \{ x : x\not\in A \}

You may also see the notation AA'.

Sources