evinda said:
So, what is the difference between an ordered pair and a non ordered pair?
Informally, we want an ordered pair to contain two (possibly the same) elements as well as the information saying which element is the first and which is the second. That is, if we denote the desired set of ordered pairs where the first element comes from $A$ and the second from $B$ by $A\times B$, we want an operation $\langle\cdot,\cdot\rangle$ that takes an element of $A$ and an element of $B$ and returns an element of $A\times B$. We also want the inverse operations: projections $\pi_1: A\times B\to A$ and $\pi_2:A\times B\to B$ such that
\begin{align}
\pi_1\langle a,b\rangle&=a&&\text{for any }b\in B\qquad(1)\\
\pi_2\langle a,b\rangle&=b&&\text{for any }a\in A\qquad(2)
\end{align}
This implies that $\langle\cdot,\cdot\rangle$ is injective:
\[
\text{If }\langle a_1,b_1\rangle=\langle a_2,b_2\rangle,\text{ then }a_1=a_2\text{ and }b_1=b_2.\qquad{(3)}
\]
Indeed,
\[
\langle a_1,b_1\rangle=\langle a_2,b_2\rangle\implies a_1\overset{(1)}{=}\pi_1\langle a_1,b_1\rangle=\pi_1\langle a_2,b_2\rangle\overset{(1)}{=}a_2
\]
and similarly $b_1=b_2$. Note that if $C$ is the set of unordered pairs of elements from $A$ and $B$, then there is again a pairing function $\{\cdot,\cdot\}$ mapping $A$ and $B$ to $C$, but it has the property
\[
\{a,b\}=\{b,a\}\qquad(4)
\]
(there is only one pair with given elements, as you have shown in another thread). Therefore, there cannot be inverse functions because once two elements are packed into a unordered pair, the information which elements is the first and which is the second is lost. If there were such functions $\rho_1$ and $\rho_2$, then
\[
a=\rho_1\{a,b\}\overset{(4)}{=}\rho_1\{b,a\}=b
\]
which is a contradiction if $a\ne b$.
evinda said:
When $x \in \{ a, b \} \Rightarrow x =a \text{ or } x=b$.
Yes.
evinda said:
So, in this case $x$ is a set, right?
In axiomatic set theory, everything is a set.
evinda said:
When $x \in <a,b> \Rightarrow x \in \{ \{ a \}, \{ a, b \} \} \Rightarrow x= \{ a \} \text{ or } x=\{ a, b \} $.
Yes.
evinda said:
So, is $x$ in this case a set of a set?
Yes, but the important point is that $a$ and $b$, along with the information which of them is the first can be recovered from $\langle a,b\rangle$.
Property (3) is usually considered essential and proved for ordered pairs.