2
$\begingroup$

Statement:

Let $$X=\{(a,b) \in \mathbb{R} \setminus \mathbb{Q} \times \mathbb{R} \setminus \mathbb{Q}:a<b\}$$ There exists a function $f:X \rightarrow \mathbb{R} \setminus \mathbb{Q}$ such that for all $(a,b) \in X$, $|f(a,b)-b| \le \frac{3}{4}|a-b|$ and $|f(a,b)-a| \le \frac{3}{4}|a-b|$.

I want to prove this statement constructively, whitout using axiom of countable choice (or any other choice axiom) and also I don't want to use any special definition of real numbers (such as regular sequences of rational numbers, Dedekind cuts, etc). I just want to use the usual order properties of real numbers and other properties that all standard constructive definitions of real numbers admit (for example, Archimedian property, Cauchy completeness property, if $a<b$ then $a+c<b+c$ for all real numbers $a,b$ and $c$, etc).

What I have achieved so far, is that if we prove the following statement (by limitations that I mentioned), we are done:

There is a function which assign to any $i,j \in \mathbb{R} \setminus \mathbb{Q}$, a real number $c \in \mathbb{R} \setminus \mathbb{Q}$ such that both sets $\{i,c,1\}$ and $\{j,c,1\}$ are rational independent.

But I couldn't prove that, and I couldn't go further. Any help would be appreciated. Thanks.

$\endgroup$
4
  • $\begingroup$ Would you permit use of the floor function? $\endgroup$ Commented Apr 2 at 3:08
  • $\begingroup$ No I don't think that the floor function exists in cunstructive mathematics. Maybe for some special definitions of real numbers like regular sequences we can define such function, but in general, I don't think so. $\endgroup$ Commented Apr 2 at 16:52
  • 1
    $\begingroup$ @legionwhale The existence of floor function imples that every real in the open interval $(-1,1)$ is either negative or nonnegative, which implies LPO, which is non-constructive. $\endgroup$ Commented Apr 3 at 16:25
  • $\begingroup$ @MohsenShahriari Thanks! I wasn't aware. $\endgroup$ Commented Apr 3 at 18:20

2 Answers 2

3
$\begingroup$

In what follows, we assume that the reals form an ordered field $(\mathbb{R}, <, +, \cdot, \min, \max, 0, 1)$ that properly extends $\mathbb{Q}$ and is Archimedean in the strongly constructive sense that we have

  • a fixed element $r \in \mathbb{R} \setminus \mathbb{Q}$, and
  • a fixed function $q: \{(a,b) \in \mathbb{R}^2 \mid a < b\} \rightarrow \mathbb{Q}$ satisfying $a < q(a,b) < b$ for all $a,b$ in the domain of $q$.

The usual constructions of Cauchy real numbers in constructive settings, including e.g. the reals of the HoTT book, satisfy these assumptions: but one has to be careful, there might be other, quotient-based constructions which would classically yield the reals, but constructively do not give you an Archimedean property (e.g. because the rationals you could get always depend on the representatives of the equivalence classes). I don't know whether you can prove the theorem by other methods that would avoid appeals to the Archimedean property.

We can construct the desired irrational $x$ in two steps. First, given $a < b \in \mathbb{R} \setminus \mathbb{Q}$, we find two rationals $L < U$ satisfying all of the following:

  • $a + \frac{1}{4}(b-a) < L$,
  • $L < U$,
  • $U < b - \frac{1}{4}(b - a)$.

Then we find an $x \in \mathbb{R} \setminus \mathbb{Q}$ such that $L < x < U$, which satisfies all your the desiderata for the value $f(a,b)$. Finally, we write down a formula for the function $f$.

I. Constructing $L$ and $U$

Use the Archimedean property to define the rational-valued functions $$\ell(a,b) = q(a,q(a,b))$$ $$u(a,b) = q(q(a,b),b)$$ and to conclude that $a < \ell(a,b) < u(a,b) < b$ for any $a < b \in \mathbb{R}$.

Given $a < b$ as in the question, the usual order properties of the reals yield $0 < \frac{1}{2}(b - a) < (b - a)$ and therefore

  1. $\frac{1}{2}(b-a) < (b-a)$
  2. $\frac{1}{4}(b-a) < (b-a) - \frac{1}{4}(b-a)$
  3. $a + \frac{1}{4}(b-a) < b - \frac{1}{4}(b-a)$

all hold. To simplify notation, set $A = a + \frac{1}{4}(b - a)$ and $B = b - \frac{1}{4}(b - a)$. These satisfy $A < B$, so set $L = \ell(A,B)$ and $U = u(A,B)$.

II. Constructing $x$ such that $L < x < U$

Since $\mathbb{R}$ properly extends $\mathbb{Q}$, we have some $r \in \mathbb{R} \setminus \mathbb{Q}$. Note that I establish this constructively for all the usual explicit constructions of the reals in another answer, by showing that $\log_2 3$ is irrational and lies in the interval $[1,2]$: so if you have a specific construction, you can skip a large part of this section by setting $R = \log_2 3 - 1$ instead of constructing the number $R$ below.

By the usual ordered field properties we have $r-1 < r < r+1$, so we can use the Archimedean property to choose rationals $q(r,r+1)$ and $q(r-1,r)$. Since the order on the rationals is decidable, determine if $0 < q(r-1,r)$. If yes, let $|r|$ denote $r$. If not, determine if $q(r,r+1) < 0$, and if so, let $|r|$ denote $-r$. Finally, if neither holds, let $|r| = r + 2$. In any case, $0<|r| \in \mathbb{R}\setminus \mathbb{Q}$ (exercise!).

Using the Archimedean property, have $0 < |r| < q(|r|,|r| + 1)$. Set $R = \frac{|r|}{q(|r|,|r| + 1)}$ and conclude that $0 < R < 1$ and $R \in \mathbb{R} \setminus \mathbb{Q}$ hold.

Set $x = L + R(U - L)$. Clearly, $x \in \mathbb{R} \setminus \mathbb{Q}$, and $R(U - L) < (U - L)$, so $x$ satisfies all the required conditions.

III. A formula for $f$

We can expand the abbreviations used above and write down a nigh-unreadable explicit formula for the function $f$ as follows:

  1. $f(a,b) = x$
  2. $f(a,b) = L + R(U - L)$
  3. $f(a,b) = \ell(A,B) + R(u(A,B) - \ell(A,B))$
  4. $f(a,b) = q(A,q(A,B)) + R(q(q(A,B),B) - q(A,q(A,B)))$
  5. $f(a,b) = q(a + \frac{1}{4}(b-a),q(a + \frac{1}{4}(b-a),b - \frac{1}{4}(b-a))) + R(q(q(a + \frac{1}{4}(b-a),b - \frac{1}{4}(b-a)),b - \frac{1}{4}(b-a)) - q(a + \frac{1}{4}(b-a),q(a + \frac{1}{4}(b-a),b - \frac{1}{4}(b-a))))$

You could further expand the definition of $R \in \mathbb{R} \setminus \mathbb{Q}$ (or even set $R = \log_2 3 - 1$ as mentioned above), and by filling in a couple of proof obligations, even obtain a function definition in a proof assistant / interactive theorem proving software such as Agda/Rocq.

edit: The Archimedean property

In response to comments, let me sketch why the strategy presented above cannot work for constructive presentations of real numbers which do not admit the strong Archimedean property. This happens e.g. if you present the reals as a quotient under convergence instead of just defining an "equiconvergence" relation, or if you are not satisfied with a mere set-function $q: \mathbb{R} \rightarrow \mathbb{Q}$, but also want $q$ to preserve the equiconvergence relation (i.e. you want $q$ to be a setoid-function).

It's well-known that some presentations $(R, <, +, \cdot, \min, \max, 0, 1)$ of the reals in certain foundations are consistent with (or if the foundation is Brouwerian, even outright prove) the principle that all functions $f: [0,1] \rightarrow [0,1]$ are continuous, where $[0,1]$ denotes the unit interval of $R$.

In such presentations, if you could define a function $f: \{(a,b) \in \mathbb{R}^2 \mid a < b\} \rightarrow \mathbb{Q}$ so that $a < f(a,b) < b$, you could use the fact that $x \mapsto \lceil x \rceil$ is defined on $\mathbb{Q}$ (albeit not on $R$) to create $x \mapsto \frac{1}{\lceil q(x,\max(x+1,1)) \rceil}$, which would constitute a discontinuous map from $[0,1]$ to itself. This would contradict the continuity principle.

Consequently, if there is a positive answer to the question, one which is general enough to work even on such presentations $R$, it necessarily has to make use of the restriction to $R \setminus \mathbb{Q}$. As I mentioned above, I don't know whether you can prove the result by methods that would avoid appeals to the Archimedean property. Keep in mind, though, that none of the answers posted to date (deleted or not) make any use of this property, and hencenone of them work at this level of generality.

$\endgroup$
5
  • $\begingroup$ Thank you very much. What about this? Let $c=\frac{a+b}{2}$ and $d=\frac{a+c}{2}$. Define $f(a,b)=\frac{q(a,d)+b}{2}$. Since $q(a,d)$ is rational and $b$ in not, $f(a,b)$ is not rational. $f(a,b)$ also satisfies the other conditions. $\endgroup$ Commented Apr 3 at 0:55
  • $\begingroup$ @Mohammadtahmasbizade: That looks fine to me - it's very close to Parcly Taxel's observation below, and it should nicely satisfy the constraints of the problem! It proves something weaker than what I establish above, however: my answer shows that any open interval (independently of the ir/rationality of its endpoints) contains irrationals. $\endgroup$
    – Z. A. K.
    Commented Apr 3 at 2:00
  • 1
    $\begingroup$ While there are useful ideas in this answer, I think it's important to note that the requirement of "using the properties that are admitted by all the standard definitions of the real numbers" is not met here. The existence of such function $q$ is not admitted by several standard definitions of the reals, including some quotient-based definitions (as already noted in the answer), setiod definitions (like that of Bishop) and some definitions based on Dedekind cuts. $\endgroup$ Commented Apr 3 at 16:16
  • 1
    $\begingroup$ Thanks, @MohsenShariari; what should I add to the answer? I thought I managed to be clear about the issues you mention. There are models with sufficient uniformity that for some definitions of $\mathbb{R}$, all (equality-respecting) maps $\{(a,b)\in\mathbb{R}^2\mid a<b\}→\mathbb{N}$ are outright constant, having a function like $q$ is hopeless there. If the result is even still provable there, it has to make use of the restriction to $R\setminus Q$, which I don't know how to do: but that I explicitly acknowledge by stating "I don't know whether you can prove the theorem by other methods..." $\endgroup$
    – Z. A. K.
    Commented Apr 4 at 0:15
  • 1
    $\begingroup$ @Z.A.K. I don't think this particular answer needs any further improvements. It's useful as it stands. My comment was meant to address the fact that one might still want to think about alternative methods. For example, one might isolate a weak form of completeness property for the real line which is admitted by all the standard definitions, and present a method which only appeals to that certain property, in addition to the properties of an ordered fields which is (weakly) Archimedean. $\endgroup$ Commented Apr 5 at 9:04
2
$\begingroup$

There exists a rational number $c\in\left(\frac{a+b}2,b\right)$; this can be found constructively. Then the desired number is $\frac{a+c}2$, which can easily be shown to satisfy the required inequalities.

$\endgroup$
2
  • 2
    $\begingroup$ This seems to be insufficient, as the OP has asked for a function on the given domain. Often, going from "for every element in $X$, there is something…" to "there is a function on $X$ assigning to to every element of $X$ something…" needs an appeal to the axiom of choice, which is not allowed here. $\endgroup$ Commented Apr 3 at 16:05
  • 2
    $\begingroup$ It seems to me the question is whether there is a function which, given real numbers a < b, returns a rational number in the interval (a,b). The main challenge in answering that seems to be the lack of detail in the question about what properties and methods are allowable. $\endgroup$ Commented Apr 3 at 20:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .