"

Ordered sets and Cartesian products

Another thing that is especially important in the set theoretic foundations of logic is the notion of an ordered set. As mentioned above, sets are, by nature, unordered. Again, if S={a,b}S=\{a, b\} and Q={b,a}Q=\{b, a\}, then S=QS=Q. But sometimes, we do want to talk about ordered sets, where the ordering of the members does matter. Ordered sets to the rescue!

Unlike normal sets, which are enclosed by curly braces, ordered sets are denoted with the angled braces \langle and \rangle. For example, if we take the ordered set of aa, bb, and cc in just this order, we can write a,b,c\langle a, b, c \rangle. The ordered set c,b,a\langle c, b, a \rangle is distinct from this, since it has its order reversed.

The fact that they are ordered is not the only difference between normal sets and ordered sets. Another important difference is that for ordered sets, duplicates do count for something. Namely, the ordered set a\langle a \rangle and the ordered set a,a\langle a, a\rangle are not the same ordered set (and in general, not the same set either). So in general, unlike normal sets, ordered sets can be distinguished at face value.

Sometimes, some ordered sets are called ordered nn-tuples, where nn is the number of members of the ordered set. For small nn, we have specific words for these tuples, but after a while, they become unwieldy, and aren’t generally used. So for example, a,b\langle a, b \rangle is an ordered pair, a,b,c\langle a, b, c \rangle is an ordered triple, a,b,c,d\langle a, b, c, d \rangle is an ordered quadruple, and so on.

Another important notion in set theory is the Cartesian product of two sets. If SS and QQ are two sets, their Cartesian product is denoted by S×QS \times Q. Indeed, Cartesian products are one way in which one may ‘make’ ordered sets out of regular sets. In particular, if SS and QQ are sets, then S×QS \times Q, their Cartesian product, is the set of all ordered pairs such that their first member is in SS, and their second member is in QQ.

For example, suppose S={a,b}S=\{a, b\} and Q={1,2}Q=\{1, 2\}. Then, S×Q={a,1,a,2,b,1,b,2}S \times Q=\{\langle a, 1\rangle, \langle a, 2\rangle, \langle b, 1\rangle, \langle b, 2\rangle\}. Again, it is just the set of all ordered pairs with the first member of the pair in SS, and the second in QQ.

Now importantly, SS and QQ need not be different, so that S×SS\times S is itself a set, the set of all ordered pairs made up of members of SS. So for example, if S={a,b,c}S=\{a, b, c\}, then S×S={a,b,a,c,b,a,b,c,c,a,c,b,a,a,b,b,c,c}S \times S=\{\langle a, b\rangle, \langle a, c\rangle, \langle b, a\rangle, \langle b, c\rangle, \langle c, a\rangle, \langle c, b\rangle, \langle a, a\rangle, \langle b,b\rangle, \langle c,c\rangle\}. From this, you may see why taking the Cartesian product of two sets is denoted by the ×\times (‘product’) operator, since if a set SS has 33 members, then S×SS \times S will have 99 members, and so on. We can also write this more succinctly, akin to regular exponentiation, so that S2=S×SS^2=S \times S, S3=S×S×SS^3=S \times S \times S, and so on.

The name ‘Cartesian product’ comes from an interesting historical fact. ‘Cartesian’ refers to René Descartes, one of the most important philosophers in history, who was also a pioneering mathematician. As such, he devised the coordinate system you probably already know from mathematics. What does this have to do with Cartesian products? For example, think of the Cartesian product of ×\mathbb{N} \times \mathbb{N}. Its members are all pairs of natural number n,k\langle n, k\rangle. Like 3,4\langle 3, 4\rangle, 1,1\langle 1,1\rangle, 6,0\langle 6, 0\rangle. But of course, these are exactly the coordinates of a two-dimensional coordinate system on the natural numbers.

Exercise 3.5. Answer the following questions. For each question, don’t forget to explain your reasoning.

  1. What is the Cartesian product of the set S={Lebron,Taylor}S=\{Lebron, Taylor\} with itself?

  2. Is the set Q={Taylor,Lebron,Lebron,Leo}Q=\{\langle Taylor, Lebron\rangle, \langle Lebron, Leo\rangle\} a subset of S×SS \times S?

You may be wondering what the relationship is between sets and ordered sets. In set theory books, it is customary to show how ordered sets are definable from the notion of a set. In particular, one can define the ordered pair a,b\langle a, b\rangle to be the set {{a},{a,b}}\{\{a\}, \{a, b\}\}. This is a kind of encoding, which allows one to determine the order of the two elements aa and bb from the set of two sets that are themselves not ordered in any way. This kind of definition can be further generalized to cover any nn-tuple (for any nn), by iterating the ordered pairs. For example, an ordered triple would be the ordered pair of an ordered pair and a third thing. That is, a,b,c=a,b,c\langle a, b, c\rangle=\langle\langle a, b\rangle, c\rangle. It is then possible to further analyze a,b,c\langle\langle a, b\rangle, c\rangle according to our set-based definition of ordered pairs. There are alternative ways to do essentially the same thing.

License

Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Learning Logic Backwards Copyright © by Peter Susanszky is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.