This is intended to be a recap of notation as covered in an introductory discrete mathematics course.
The elementship-relation
The basic statement about a set we can make is that it contains an element , which is written as
The subset-relation
We also need to be able to say that is a subset of , which can be written in set-theoretic notation as (read as "for all")
The "braces notation"
We also need to review different ways of defining sets. The simplest one is just to list the elements of a set as in
To illustrate the notation reviewed so far, we have and , where
is the standard notation for the natural numbers.
Inductive definitions
Above, I am taking for granted, but we can also define it ourselves by saying that and if then also . Note that this definition avoids the "" and instead uses only two rules. We then say that is the smallest set closed under the rules. This style of defining sets is called definition by induction and we will see more about this in a later lecture.
Defining infinite sets inductively is very common. For example, the syntax of programming languages is defined inductively and this inductive definition in turn allows us to generate parsers automatically from the language definition.
Set-comprehension
Another way of defining sets is called comprehension. A definition by comprehension has the form
For example, we may define the set of even numbers as
Here is short for "there is such that "
Exercise: Define the set of odd numbers in the same style.
Cartesian Product
We can use comprehension to define the so-called cartesian product[1]
which is just the set of pairs that can be built by taking elements of in the first component and elements of in the second.
Example: Fractions are pairs where we use the special notation "" just to indicate that we want to think of this pair of numbers as a fraction and not, eg, as the coordinates of a point in the plane.
More Notation (not so important now, but useful later): If in the above definition we have then we may abbreviate as . Similarly, we abbreviate , usually written just as , by . This notation extends to for any . The set is called the empty product and has exactly one element, often called the empty word. The empty word has not standardized notation and one may find different symbols for it such as and and and and (epsilon). The set always has exactly one element, whatever is. For this reason, is sometimes written just as . We then obtain the equation , which is similar to a familiar equation for numbers, namely that for all numbers (possibly restricted to ).
This is called "cartesian" product in honour of Descartes, who, in his "Geometry", about which we talked already, invented the represenation of points in the plane by and -coordinates, that is, the representation of points as elements of .↩︎