Sets

Definition: Set

A set is a collection of well-defined objects, called elements.

NOTE

  • A set can contain pretty much anything - numbers, letters, cars, sentences, people, colours and even other sets.
  • A set can contain either finitely many or infinitely many elements.

Definition: Singleton

A singleton is a set with exactly one element.

Definition: Equality

Two set are equal if they contain the same elements.

Axiom: Existence of an Empty Set

There exists a set with no elements.

NOTATION

There are three main ways to represent and define sets.

The descriptive form uses words to describe a set. For example, the set is the set of all odd natural numbers which are less than 12.

The set-builder form defines a set by specifying a condition that all of its members satisfies and looks like this:

The placeholder is simply there so you can use it to more easily write the condition. The | character can be read as “such that”. For example, specifying the aforementioned set using set-builder notation will look like the following.

The final way to define a set is simply by listing all of its elements or listing enough of them, so that whoever is reading the definition can easily establish the pattern they follow. For example, the aforementioned set will be written as

Subsets

Definition: Subset

A set is a subset of another set if all elements of are also elements of .

NOTATION

If is a subset of , we write . Some people also write , but this notation can be ambiguous.

If is not a subset of , we write or .

Definition: True Subset

A set is a true subset / strict subset of another set if and .

NOTATION

If is a true subset of , we write . Some people also write , but this notation can be ambiguous.

Definition: (Strict) Superset

A set is a (strict) superset of another set if is a (strict) subset of .

NOTATION

Definition: Power Set

The power set of a set is the collection of all subsets of .

NOTATION

Definition: Indicator Function

Let be a subset of a set .

The indicator function of is the function defined as

Operations

Definition: Union

The union of two sets and is the set which contains exactly the elements which are in , in or in both and .

NOTATION

Definition: Intersection

The intersection of two sets and is the set of all elements which are both in and in .

NOTATION

Definition: Disjoint Sets

We say that and are disjoint if their intersection is the empty set.

Definition: Set Difference

The set difference of two sets and is the set which contains exactly the elements in which are not elements of .

NOTATION

Definition: Complement

Let be a subset of a set .

The complement of in is the difference .

Definition: Symmetric Difference

The symmetric difference of two sets and is the set of all elements which are only in and those elements which are only in :

NOTATION

Definition: Cartesian Product

The Cartesian product of sets and is the set of all ordered pairs such that and .