0
$\begingroup$

This question already has an answer here:

According Wikipedia, "if a tuple is defined as a function on ${1, 2, ..., n}$ that takes its value at $i$ to be the $i$th element of the tuple, then the Cartesian product $X_1×...×X_n$ is the set of functions ${\displaystyle \{x:\{1,\ldots ,n\}\to X_{1}\cup \ldots \cup X_{n}\ |\ x(i)\in X_{i}\ {\text{for every}}\ i\in \{1,\ldots ,n\}\}.}$"

For me, it is hard to understand the above definition. Could you give some example to illustrate the concept? For example, let $X_1 = \{1,2\},X_2=\{a,b\}$. Then, $X_1×X_2= \{?\}$.

Thank you in advance.

$\endgroup$

marked as duplicate by Asaf Karagila set-theory Jul 21 '18 at 7:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    $\begingroup$ $X_1 \times X_2 = \{ (1,a), (1,b), (2,a), (2,b) \}$ $\endgroup$ – tp1 Jul 21 '18 at 7:00
  • $\begingroup$ @tp1 That is another definiton of $X_1\times X_2$. I don't see the relevance. $\endgroup$ – drhab Jul 21 '18 at 7:51
  • $\begingroup$ @drhab: normally cartesian product is defined using pair constructor function and element accessor functions: $ ct : 1 \rightarrow X_1 \times X_2 $ and $a_i : X_1 \times X_2 \rightarrow X_i $, and you'll get $x(i) \in X_i $ from that. $\endgroup$ – tp1 Jul 21 '18 at 8:37
2
$\begingroup$

We are looking for functions $f:\{1,2\}\to\{1,2,a,b\}$ such $f(1)\in X_1=\{1,2\}$ and $f(2)\in X_2=\{a,b\}$.

There are $4$ such functions and writing each function as a set of ordered pairs they are:

  • $f_{1,a}:=\{\langle 1,1\rangle,\langle 2,a\rangle\}$
  • $f_{1,b}:=\{\langle 1,1\rangle,\langle 2,b\rangle\}$
  • $f_{2,a}:=\{\langle 1,2\rangle,\langle 2,a\rangle\}$
  • $f_{2,b}:=\{\langle 1,2\rangle,\langle 2,b\rangle\}$

Then according to the mentioned definition:$$X_1\times X_2=\{f_{1,a},f_{1,b},f_{2,a},f_{2,b}\}=$$$$\{\{\langle 1,1\rangle,\langle 2,a\rangle\},\{\langle 1,1\rangle,\langle 2,b\rangle\},\{\langle 1,2\rangle,\langle 2,a\rangle\},\{\langle 1,2\rangle,\langle 2,b\rangle\}\}$$

We can go even further by writing order pair $\langle r,s\rangle$ as $\{\{r\},\{r,s\}\}$ according to the definition of Kuratowski, but I don't think that that will increase your understanding.

Note that we get back the "familiar" definition of $X_1\times X_2$ just by replacing $f_{1,a},f_{1,b},f_{2,a},f_{2,b}$ by $\langle 1,a\rangle,\langle 1,b\rangle,\langle 2,a\rangle,\langle 2,b\rangle$ respectively.

$\endgroup$
1
$\begingroup$

In terms of the definition you've quoted, in your example $X_1\times X_2$ is the set of all functions $x$ from $\{\,1,2\,\}$ to $\{\,1,2,a,b\,\}$ such that $x(1)$ is in $\{\,1,2\,\}$ and $x(2)$ is in $\{\,a,b,\,\}$. There are four such functions, which I'll call $x_1,x_2,x_3,x_4$, given by

$x_1(1)=1,x_1(2)=a$
$x_2(1)=1,x_2(2)=b$
$x_3(1)=2,x_3(2)=a$
$x_4(1)=2,x_4(2)=b$

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.