Lets Talk About Sets
A set is a collection of distinct objects considered as a whole.
[Wikipedia - http://en.wikipedia.org/wiki/Set ]
A set can be thought of as a collection of objects - or elements - and these objects can be anything, data - numerical - or indeed other sets. Elements in a set are in no particular order, and elements in a set must by definition be unique.
Introducing Sets
We can use a system called set builder notation to describe a set:

For example, the following is a valid set notation for a set of the integer values from 1 to 9.

Subsets
A subset is one or more element selected from a set. For an element to be a member of a subset, it must also have been a member of the parent set.
If A and B are sets, then A will be a subset of B if every element of A is also an element of B (denoted as
. Equivalently we can say that B is a superset of A, if B contains all the elements of A (denoted as
).

Proper Subset
A proper subset is one or more (but not all of the distinct) elements selected from a set. If A and B are sets, then A will be a proper subset of B if every element of A is also an element of B, but also there is one or more elements in B which are not part of A. This is denoted as
. Equivalently, B is a proper superset of A if B contains all the elements of A and more - 

Cardinality
The cardinality of a set is how many members it contains, as shown in the examples below:

Powerset
The powerset of a set,
is denoted as
is a set of all the subsets of that set. This is best explained in the example shown below:

Where the set s has a cardinality of n, the powerset will have a cardinality:

Truth Set
The truth set is the set of values for which a predicate logic statement holds true. For example, the truth set of
is {1}.
Tuples
A tuple is a set of objects, but one in which the order of the elements is significant. For example, the set {1, 2, 3} is equal to the set {2, 1, 3} since the order of elements in a set is not important. In a tuple however, {1,2,3} would not equal {2, 1, 3}. In order for one tuple
to be equal to another
all of the elements of A
where
is an index, must equal all the elements of B,
.
Set Operators
Cartesian Product
Where A and B are sets, the Cartesian product of the two sets is a set containing all possible pairings of elements from each of the two sets.

Union
The union of two sets, P and Q is a set containing all the unique items of P and Q.

Intersection
The intersection of two sets, P and Q is a set containing all the elements which exist in both A and B.

Difference
The difference between two sets A and B is a set containing all the elements which exist only in A, not in B.

Complement
The complement of a set is a set of all the possible elements which are not contained within the set. So if the domain is
and we have a set
with members in the domain, then 
Venn Diagrams
A Venn Diagram can be used to demonstrate sets and set operators. In the example below, A and B are sets are in domain of real numbers -
, and from the diagram there are a number of conclusions we can draw...

Rules involving Sets
- De-Morgan's theory applies to sets, this is discussed in more detail [Here]
- Order of processing operations is not important,

- Identity Law:

References:
- Nick Holliman - Formal Aspects Set Theory - Lecture 3
- Nick Holliman - Formal Aspects Set Theory - Lecture 4
- Nick Holliman - Formal Aspects Set Theory - Lecture 5
- Nick Holliman - Formal Aspects Set Theory - Lecture 6
- Nick Holliman - Formal Aspects Set Theory - Lecture 7
- Discrete Mathematics and its Applications - Kenneth H Rosen - Sixth Edition
