8

Let $a,b \in X$ be distinct and suppose $\langle -,- \rangle : X^2 \rightarrow X$ is a bijection (thought of as a pairing function, with $\pi_1,\pi_2 : X \rightarrow X$ satisfying $\pi_1\langle x,y\rangle = x$, $\pi_2\langle x,y\rangle = y$). Originally, I was curious as to whether or not one could constructively prove that $X$ is infinite i.e. there is an injection from the naturals into $X$. However, I am actually stuck on a much simpler problem: Can we constructively prove that $X$ has at least 3 distinct elements? an element distinct from $a$ and $b$?

If $X$ has decidable equality, then this is fairly simple: Suppose $a = \langle a_0,a_1 \rangle$ and $b = \langle b_0,b_1\rangle$. Check whether or not these pairs lie on the diagonal of $X^2$; if both do, triangulate to find a third pair e.g. $\langle a_0,b_1\rangle$; if only one is on the diagonal, take the transpose of the off-diagonal pair; and if both are off-diagonal, project one of them onto the diagonal.

Without decidable equality, I can't see how one can do this. My intuition tells me that such a constructive proof would need to correspond to some polynomial in two variables $\phi(x,y)$ built from the operations $\langle -,- \rangle, \pi_1, \pi_2$ having the property that for any such isomorphism and distinct $a,b$ we have that $\phi(a,b) \neq a$ and $\phi(a,b) \neq b$. But it seems to me that for any such $\phi$ it should be possible to "refute" it. Of course, perhaps my intuition is mistaken and I'm missing something obvious.

  • 1
    Cool question! I agree with your intuition in the last paragraph (although I'd say "term" instead of "polynomial"), but I don't immediately see an easy proof. A related question is, how many times do I need to invoke equality-testing to get a third element? (This is not a silly question - see e.g. linear logic or Weirauch-style reducibilities.) Your argument uses 2 calls to equality, always ("$a_0=a_1?$" and "$b_0=b_1?$"). Can we do better? It's easy to get an answer which uses one call ideally, but three calls worst-case . . . – Noah Schweber Mar 26 '17 at 03:44
  • Interestingly, we can handle "AND" questions ($x=y$ and $u=v$ iff $\langle x, y\rangle=\langle u, v\rangle$) but we can't obviously handle "OR" questions, and I think that in fact we can't handle "OR" questions. – Noah Schweber Mar 26 '17 at 03:57
  • @NoahSchweber Counting the number of equality checks needed is a very interesting question that hadn't occurred to me. I'll be sure to check out Weirauch reducibility. And as for 'term' vs. 'polynomial' I suppose you're right, but after a little searching I found that the question can be easily phrased in terms of so-called Jónsson–Tarski algebras, and I suppose that inspired my wording. – user181407 Mar 26 '17 at 04:19
  • I imagine this should be doable with corecognizable equality. –  Mar 26 '17 at 04:21

1 Answers1

1

Edit: Actually I noticed this doesn't answer the question as stated because we get 3 distinct elements but it might not include the original 2. I'll leave it up anyway in case you're interested.

This turns out to have a fairly short proof, but it's a little subtle, so I'll expand on some details that are easy to miss.

First note that if $X$ has two distinct elements $a \neq b$, then we can define an injection $i \colon 2 \rightarrow X$ (where $2$ is the set $\{0,1\}$). Certainly we have a function $i$ defined by $i(0) = a$ and $i(1) = b$. To show $i$ is a injection we need to show that if $f(x) = f(y)$ then $x = y$. We know that $2$ has decidable equality, so we can split into the cases $x = y$ and $x \neq y$. In the first case we are done, in the second we have $x = 0$ and $y = 1$ (or vice versa, but the proof is similar so I won't write it out). If $f(0) = f(1)$ then we have $a = b$ and then derive $\bot$ from $a \neq b$. But then we get $0 = 1$ by ex falso.

Now we check that if there is an injection $i \colon n \rightarrow X$ then there is also an injection $i' \colon n \times n \rightarrow X \times X$. We just take $i'(m, n)$ to be $(i(m), i(n))$. This is an injection because whenever $i'(m, n) = i'(p, q)$ we have $i(m) = i(p)$ and $i(n) = i(q)$ and so $m = p$ and $n = q$, giving us $(m, n) = (p, q)$.

Finally, if $X \cong X \times X$, we have that if there is an injection $n \rightarrow X$, then there is also an injection $n^2 \rightarrow X$. In particular, if $X$ has two distinct elements there is an injection $n \rightarrow X$ for every $n$.

aws
  • 3,206
  • To clarify your edit, the issue is that we can get as many distinct elements of $X$ as we want, but, since we don't know which is which, we can't give you any one of them as a constructive witness that we've produced a third distinct value. Any one we proffer might actually have been one of the original two. – Derek Elkins left SE Mar 27 '17 at 03:32
  • It's really my fault for miswording the question. Indeed I did have in mind that two of the elements are $a,b$. I corrected the wording in my post, but I want to say that this is a nice proof nonetheless! – user181407 Mar 27 '17 at 05:05