# Set Theory/Sets

## Sets and elementsEdit

A mathematical set is defined as an unordered collection of distinct elements. That is, elements of a set can be listed in any order and elements occurring more than once are equivalent to occurring only once.

We say that an element is a member of a set. An element of a set can be anything. It's easiest to begin with only numbers as elements. For that reason, most of the examples in this book will only include numbers, but this is only a technique to make the topic less abstract.

### TerminologyEdit

For a set ${\displaystyle A}$  having an element ${\displaystyle x}$  , the following are all used synonymously:

${\displaystyle x}$  is a member of ${\displaystyle A}$
${\displaystyle x}$  is contained in ${\displaystyle A}$
${\displaystyle x}$  is included in ${\displaystyle A}$
${\displaystyle x}$  is an element of the set ${\displaystyle A}$
${\displaystyle A}$  contains ${\displaystyle x}$
${\displaystyle A}$  includes ${\displaystyle x}$

### NotationEdit

We specify a set by specifying its members. The curly brace notation is used for this purpose.

${\displaystyle \{1,2,3\}}$

is the set containing 1, 2, 3 as members. Or, {mother, this ipod, my school, the planet Jupiter, 12} is also a set. The curly brace notation can be extended to specify a set by specifying a rule for set membership. ("|" means "such that".)

${\displaystyle {\Big \{}x{\Big |}x=1{\text{ or }}x=2{\text{ or }}x=3{\Big \}}}$

is again the set containing 1, 2, and 3 as members.

${\displaystyle {\Big \{}x{\Big |}x{\text{ is a natural number}}{\Big \}}}$

is the set of all natural numbers. This form or representing set can be generalized as:

${\displaystyle {\Big \{}x{\Big |}P(x){\Big \}}}$

where ${\displaystyle P(x)}$  is a statement about the variable ${\displaystyle x}$  . The set defined by above notation is a set of all objects ${\displaystyle x}$  such that ${\displaystyle P(x)}$  is true. **** (For a concrete example, consider ${\displaystyle A={\Big \{}x\in \mathbb {R} :x^{2}=1{\Big \}}}$  . Here the property ${\displaystyle P}$  is “${\displaystyle x^{2}=1}$ ” Thus, ${\displaystyle A}$  is the set of all real numbers whose square is one.). EXPLANATION: [A set may be defined by a property. For instance, the set of all planets in the solar system, the set of all even integers, the set of all polynomials with real coefficients, and so on. For a property ${\displaystyle P}$  and an element ${\displaystyle s}$  of a set ${\displaystyle S}$  , we write ${\displaystyle P(s)}$  to indicate that ${\displaystyle s}$  has the property ${\displaystyle P}$  . Then the notation ${\displaystyle {\Big \{}s\in S{\Big |}P(s){\Big \}}}$  indicates that the set consists of all elements ${\displaystyle s}$  of ${\displaystyle S}$  having the property ${\displaystyle P}$  . The vertical bar | is commonly read as “such that,” and can be also written using a colon instead. So ${\displaystyle {\Big \{}s\in S:P(s){\Big \}}}$  is an alternative notation for ${\displaystyle {\Big \{}s\in S|P(s){\Big \}}}$  . For a concrete example, consider ${\displaystyle A={\Big \{}x\in \mathbb {R} {\Big |}x^{2}=1{\Big \}}}$ . Here the property ${\displaystyle P}$  is ${\displaystyle x^{2}=1}$  . Thus, ${\displaystyle A}$  is the set of all real numbers (${\displaystyle x}$  of ${\displaystyle \mathbb {R} }$  (i.e. 1)) whose square ${\displaystyle (1^{2}=1)}$  is one.] ***

A modified epsilon notation is used for set membership. Thus

${\displaystyle x\in A}$

means that ${\displaystyle x}$  is a member of ${\displaystyle A}$  . We can also say that ${\displaystyle x}$  is not a member of ${\displaystyle A}$  :

${\displaystyle x\notin A}$

### Characteristics of setsEdit

A set is uniquely identified by its members.

{\displaystyle {\begin{aligned}&{\Big \{}x{\Big |}x{\text{ is an even prime}}{\Big \}}\\&{\Big \{}x{\Big |}x{\text{ is a positive square root of }}4{\Big \}}\\&\{2\}\end{aligned}}}

Moreover, the sets ${\displaystyle A,B}$  are said to be equal if and only if every element of ${\displaystyle A}$  is also an element of ${\displaystyle B}$  , and every element of ${\displaystyle B}$  is an element of ${\displaystyle A}$  .

All the above expressions specify the same set even though the concept of an even prime is different from the concept of a positive square root. Repetition of members is inconsequential in specifying a set. The expressions

{\displaystyle {\begin{aligned}&\{1,2,3\}\\&{\Big \{}1,1,1,1,2,3{\Big \}}\\&{\Big \{}x{\Big |}x{\text{ is an even prime or }}x{\text{ is a positive square root of }}4{\text{ or }}x=1{\text{ or }}x=2{\text{ or }}x=3{\Big \}}\end{aligned}}}

all specify the same set.

Sets are unordered. The expressions

{\displaystyle {\begin{aligned}\{1,2,3\}\\\{3,2,1\}\\\{2,1,3\}\end{aligned}}}

all specify the same set.

Sets can have other sets as members. There is, for example, the set

${\displaystyle {\Big \{}\{1,2\},\{2,3\},\{1,{\text{Newton}}\}{\Big \}}}$

### Some special setsEdit

As stated above, sets are defined by their members. However some sets are given names to ease referencing them.

The set with no members is the empty or null set. The expressions

{\displaystyle {\begin{aligned}&\{\}\\&\varnothing \\&{\Big \{}x:x\neq x{\Big \}}\end{aligned}}}

all specify the empty set.

A set with exactly one member is called a singleton. A set with exactly two members is called a doubleton. Thus ${\displaystyle \{1\}}$  is a singleton and ${\displaystyle \{1,2\}}$  is a doubleton.

## Subsets, power sets, set operationsEdit

### SubsetsEdit

A set ${\displaystyle S}$  is a subset of set ${\displaystyle A}$  if every member of ${\displaystyle S}$  is a member of ${\displaystyle A}$  . We use the horseshoe notation to indicate subsets. The expression

${\displaystyle \{1,2\}\subseteq \{1,2,3\}}$

says that ${\displaystyle \{1,2\}}$  is a subset of ${\displaystyle \{1,2,3\}}$  . The empty set is a subset of every set. Every set is a subset of itself. A proper subset of ${\displaystyle A}$  is a subset of ${\displaystyle A}$  that is not identical with ${\displaystyle A}$  . The expression

${\displaystyle \{1,2\}\subset \{1,2,3\}}$

says that ${\displaystyle \{1,2\}}$  is a proper subset of ${\displaystyle \{1,2,3\}}$  .

### Power setsEdit

A power set of a set is the set of all its subsets. ${\displaystyle {\mathcal {P}}}$  is used for the power set. Note that the empty set and the set itself are members of the power set.

${\displaystyle {\mathcal {P}}\{1,2,3\}={\Big \{}\varnothing ,\{1\},\{2\},\{3\},\{1,\ 2\},\{1,3\},\{2,3\},\{1,2,3\}{\Big \}}}$

### UnionEdit

The union of two sets A and B, written ${\displaystyle A\cup B}$ , is the set that contains all the members of A and all the members of B (and nothing else). That is,

${\displaystyle A\cup B={\Big \{}x:x\in A{\text{ or }}x\in B{\Big \}}}$

As an example,

${\displaystyle \{1,2,3\}\cup \{2,3,4\}=\{1,2,3,4\}}$

### IntersectionEdit

The intersection of two sets ${\displaystyle A,B}$  , written ${\displaystyle A\cap B}$  , is the set that contains everything that is a member of both ${\displaystyle A}$  and ${\displaystyle B}$  (and nothing else). That is,

${\displaystyle A\cap B={\Big \{}x:x\in A{\text{ and }}x\in B{\Big \}}}$

As an example,

${\displaystyle \{1,2,3\}\cap \{2,3,4\}=\{2,3\}}$

Two sets are disjoint if their intersection is empty. That is, if ${\displaystyle A}$  and ${\displaystyle B}$  are disjoint sets,

${\displaystyle A\cap B=\varnothing }$

### Relative complementEdit

The relative complement of ${\displaystyle A,B}$  , denoted ${\displaystyle B\setminus A}$  (sometimes ${\displaystyle B-A}$ ), is the set containing all the members of ${\displaystyle B}$  that are not members of ${\displaystyle A}$  . That is,

${\displaystyle B\setminus A={\Big \{}x:x\in B{\text{ and }}x\notin A{\Big \}}}$

As an example,

${\displaystyle \{2,3,4\}\setminus \{1,3\}=\{2,4\}}$

### Absolute complementEdit

If we define a universe, or a set containing all of the elements we wish to consider, then we can discuss the absolute complement of a set. For a universe ${\displaystyle U}$  , define the absolute complement of a subset ${\displaystyle A}$  of ${\displaystyle U}$  to be

${\displaystyle U\setminus A}$

The absolute complement of ${\displaystyle A}$  is denoted by ${\displaystyle A^{C},\complement _{U}A,\complement A,{\overline {A}}}$  (according to the ISO 31-11 standard) if ${\displaystyle U}$  is fixed.

## Some properties of set operationsEdit

### Union and intersectionEdit

Based on the preceding definitions, we can derive some useful properties for the operations on sets. The proofs of these properties are left as an exercise to the reader.

The union and intersection operations are symmetric. That is, for sets ${\displaystyle A,B}$

{\displaystyle {\begin{aligned}A\cup B=B\cup A\\A\cap B=B\cap A\end{aligned}}}

Furthermore, they are associative. That is, for sets ${\displaystyle A,B,C}$

{\displaystyle {\begin{aligned}(A\cup B)\cup C=A\cup (B\cup C)\\(A\cap B)\cap C=A\cap (B\cap C)\end{aligned}}}

Furthermore, union distributes over intersection and intersection distributes over union. That is, for sets ${\displaystyle A,B,C}$

{\displaystyle {\begin{aligned}A\cap (B\cup C)=(A\cap B)\cup (A\cap C)\\A\cup (B\cap C)=(A\cup B)\cap (A\cup C)\end{aligned}}}

### De Morgan's lawsEdit

Two important propositions for sets are De Morgan's laws. They state that, for sets ${\displaystyle A,B,C}$

{\displaystyle {\begin{aligned}A\setminus (B\cup C)=(A\setminus B)\cap (A\setminus C)\\A\setminus (B\cap C)=(A\setminus B)\cup (A\setminus C)\end{aligned}}}

When ${\displaystyle A}$  is a universe to which ${\displaystyle B}$  and ${\displaystyle C}$  belong, De Morgan's laws can be stated more simply as,

{\displaystyle {\begin{aligned}(B\cup C)^{C}=B^{C}\cap C^{C}\\(B\cap C)^{C}=B^{C}\cup C^{C}\end{aligned}}}

## Families of setsEdit

A set of sets is usually referred to as a family or collection of sets. Often, families of sets are written with either a script or Fraktur font to easily distinguish them from other sets. For a family of sets ${\displaystyle {\mathfrak {A}}}$  , define the union and intersection of the family by,

{\displaystyle {\begin{aligned}\bigcup {\mathfrak {A}}&=\bigcup _{A\in {\mathfrak {A}}}A=\{x:x{\text{ is in some }}A\in {\mathfrak {A}}\}\\\bigcap {\mathfrak {A}}&=\bigcap _{A\in {\mathfrak {A}}}A=\{x:x{\text{ is in all }}A\in {\mathfrak {A}}\}\end{aligned}}}

For a family of sets, we say that it is pairwise disjoint if any two distinct sets we choose from the family are disjoint.