Tuples
This chapter provides notes on ordered pairs and tuples.
When set theory was first introduced, it faced a major issueβhow do you represent ordered pairs? That is, given the set how do you communicate that is first and is second, purely in the language of set theory?
Sets, by definition, are unordered. Thus, is the same set as This is problematic because we have no way of communicating " then " purely in the language of set theory β there's no way to distinguish between and
Ordered Pairs
In 1921, the Polish logician Kazimierz Kuratowski offered the following definition:
ordered pair. An ordered pair, denoted is defined as:
This is one of the greatest examples of "working with what you've got" and the extent of mathematical cleverness. Kuratowski essentially said: "Why are we so concerned about which goes first and which goes second? It's unnecessary." And he had a point. The notion of "first" and "second" is entirely relative.
Suppose we had two objects side by side.
If we read from left to right, is first and is second. If we read from right to left β a perfectly permissible thing to do β then is first and is second. If we read it from top to bottom β again perfectly permissible β then, well, all bets are off. Kuratowski was astute enough to realize that searching for a way to define "first" and "second" was a zero sum game. Even if we managed to establish a rigorous definition for "first" and "second," the situation wouldn't change because there would always be an alternative view.
To Kuratowski, the notions of "first" and "second" are just convenient ways of achieving what we're really after: A way of communicating the idea that
is different from
Thus, we don't need a way to establish what's first or second. What we need is a way to distinguish between two sets. If we look at Kuratowski's definition, it does exactly that. Let's say and Then, by Kuratowski's definition, we have:
Now let's say and Then we have:
Looking at the two sets, we see that they are, in fact, different:
Because we have a way of distinguishing between and the notion of "first" and "second" is just a cherry on top, and it just so happens that we prefer interpreting as " is first, and is second."
An added benefit of Kuratowski's definition is that it allows us to state when two ordered pairs are equal:
equality of ordered pairs. Let and be ordered pairs. Then
if, and only if,
Tuples
Ordered pairs allow us to express a pair But what if we want to express something like:
Well, we can take a similar approach to Kuratowski's. But instead of nesting a set, we'll nest an ordered pair:
Again, what's important is that we have a way of distinguishing the set represented by the expression above and some other set. If we expanded the above expression, we'd get:
Once more, we still have a way to differentiate between sets. Suppose and Then:
Now suppose Then:
Those are very clearly different sets. The fact that we're simply nesting ordered pairs allows us to extend the same idea to elements.
We call the construct above an -tuple. Notice that this effectively generalizes the notion of an ordered pair β an ordered pair is simply a 2-tuple.
n-tuple. Where the collection:
is called an -tuple.
The Cartesian Product
With the notion of tuples, we can now represent a wide variety of objects mathematically. Suppose we have two sets:
Now that we have tuples, we can create a set that contains all the possible 2-tuples where and Let's explicitly lay out that set:
More explicitly:
Cartesian Product. Let and be sets. The set
is the set of all tuples where and
Because we have the notion of -tuples, we can also define the Cartesian product generally:
General Definition of the Cartesian Product. The be sets. The Cartesian product of the sets denoted
is the set of all -tuples where for That is,
Cardinality of the Cartesian Product
Given that the Cartesian product is the set of all tuples where with we have the following theorem.
cardinality of the cartesian product. Let be sets, with Then
For example, given the set then the cardinality of is since: