# WikiJournal of Science/Can each number be specified by a finite text?

WikiJournal of Science Open access • Publication charge free • Public peer review • Wikipedia-integrated
Volume 7(1)
Previous Volume 1(1) Volume 1(2) Volume 2(1) Volume 3(1) Volume 4(1) Volume 5(1) Volume 6(1)
Editorial guidelines Ethics statement Bylaws Financials Calendar
WikiJournal of Science is an open-access, free-to-publish, Wikipedia-integrated academic journal for science, mathematics, engineering and technology topics. WJS WikiJSci Wiki.J.Sci. WikiJSci WikiSci WikiScience Wikiscience Wikijournal of Science Wikiversity Journal of Science WikiJournal Science Wikipedia Science Wikipedia science journal STEM Science Mathematics Engineering Technology Free to publish Open access Open-access Non-profit online journal Public peer review
This article has been through public peer review.
First submitted: 15 Dec 2018 Accepted: 28 Oct 2020 Reviewer comments
PDF: Download DOI: 10.15347/WJS/2020.008 QID: Q81333757 XML: Download
Share article  Email | Facebook | Twitter | LinkedIn | Mendeley | ResearchGate
Suggested citation format: Boris Tsirelson (28 October 2020). "Can each number be specified by a finite text?". WikiJournal of Science 3 (1): 8. doi:10.15347/WJS/2020.008. Wikidata Q81333757. ISSN 2470-6345. https://upload.wikimedia.org/wikiversity/en/0/00/Can_each_number_be_specified_by_a_finite_text%3F.pdf.
Citation metrics AltMetrics
License:
This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction, provided the original author and source are credited.
Jonathan Holland (handling editor) contact Henry Hoff (handling editor) contact
Laureano Luna Igor Rivin Mikhail Sodin Ehud Hrushovski

## Article information

Author: Boris Tsirelson
* ↑ Tel Aviv University (retired), † (deceased)
* ↑ boris.tsirelson@gmail.com

## Introduction

The question in the title may seem simple, but is able to cause controversy and trip up professional mathematicians. Here is a quote from a talk "Must there be numbers we cannot describe or define?" by J.D. Hamkins.
       The math tea argument
          Heard at a good math tea anywhere:
             “There must be real numbers we cannot describe or define, because there are uncountably many real numbers, but only countably many definitions.”
          Does this argument withstand scrutiny?
See also "Maybe there's no such thing as a random sequence" by P.G. Doyle (in particular, on pages 6,7 note two excerpts from A. Tarski). And on Wikipedia one can also find the flawed "math tea" argument on talk pages and obsolete versions of articles.
And elsewhere on the Internet. I, the author, was myself a witness and accomplice. I shared and voiced the flawed argument in informal discussions (but not articles or lectures). Despite some awareness (but not professionalism) in mathematical logic, I was a small part of the problem, and now I try to become a small part of the solution, spreading the truth.
Careless handling of the concept "number specified by a finite text" leads to paradoxes; in particular, Richard's paradox.
The paradox begins with the observation that certain expressions of natural language define real numbers unambiguously, while other expressions of natural language do not. For example, "The real number the integer part of which is 17 and the $n$th decimal place of which is 0 if $n$ is even and 1 if $n$ is odd" defines the real number 17.1010101... = 1693/99, while the phrase "the capital of England" does not define a real number.
Thus there is an infinite list of English phrases (such that each phrase is of finite length, but lengths vary in the list) that define real numbers unambiguously. We first arrange this list of phrases by increasing length, then order all phrases of equal length lexicographically (in dictionary order), so that the ordering is canonical. This yields an infinite list of the corresponding real numbers: $r_{1},r_{2},\dots$ Now define a new real number $r$ as follows. The integer part of $r$ is 0, the $n$th decimal place of $r$ is 1 if the $n$th decimal place of $r_{n}$ is not 1, and the $n$th decimal place of $r$ is 2 if the $n$th decimal place of $r_{n}$ is 1.
The preceding two paragraphs are an expression in English that unambiguously defines a real number $r.$ Thus $r$ must be one of the numbers $r_{n}.$ However, $r$ was constructed so that it cannot equal any of the $r_{n}.$ This is the paradoxical contradiction.
(Quoted from Wikipedia.)
See also Definability paradoxes by Timothy Gowers.
In order to ask (and hopefully solve) a well-posed question we have to formalize the concept "number specified by a finite text" via a well-defined mathematical notion "definable number". What exactly is meant by "text"? And what exactly is meant by "number specified by text"? Does "specified" mean "defined"? Can we define such notions as "definition" and "definable"? Striving to understand definitions in general, let us start with some examples.
136 notable constants are collected, defined and discussed in the book "Mathematical constants" by Steven Finch. The first member of this collection is "Pythagoras’ Constant, ${\sqrt {2}}$"; the second is "The Golden Mean, $\varphi$"; the third "The Natural Logarithmic Base, e"; the fourth "Archimedes’ Constant, $\pi$"; and the last (eleventh) in Chapter 1 "Well-Known Constants" is "Chaitin’s Constant".
Each constant has several equivalent definitions. Below we take for each constant the first (main) definition from the mentioned book.
* The first constant ${\sqrt {2}}$ is defined as the positive real number whose product by itself is equal to 2. That is, the real number $x$ satisfying $x>0$ and $x^{2}=2.$
* The second constant $\varphi$ is defined as the real number satisfying $\varphi >0$ and $\textstyle 1+{\frac {1}{\varphi }}=\varphi .$
* The third constant $e$ is defined as the limit of $\textstyle (1+x)^{1/x}$ as $x\to 0.$ That is, the real number satisfying the following condition:
       for every $\varepsilon >0$ there exists $\delta >0$ such that for every $x$ satisfying $-\delta <x<\delta$ and $x\neq 0$ holds $\textstyle -\varepsilon <(1+x)^{1/x}-e<\varepsilon .$
    The same condition in symbols:
       $\textstyle \forall \varepsilon >0\,\,\exists \delta >0\,\,\forall x\;{\big\,(-\delta <x<\delta \,\,\land \,\,x\neq 0)\Longrightarrow (-\varepsilon <(1+x)^{1/x}-e<\varepsilon )\,{\big )}.$
$\land$ "and" $\lor$ "or" $\Longrightarrow$ "implies" $\neg$ "not" $\forall$ "for every" $\exists$ "there exists (at least one)" $\exists !$ "there exists one and only one" (a longer list).
We note that these three definitions are of the form "the real number $x$ satisfying $P(x)$" where $P(x)$ is a statement that may be true or false depending on the value of its variable $x$; in other words, not a statement when $x$ is just a variable, but a statement whenever a real number is substituted for the variable. Such $P(x)$ is called a property of $x$, or a predicate (on real numbers).
Not all predicates may be used this way. For example, we cannot say "the real number $x$ satisfying $x^{2}=2$" (why "the"? two numbers satisfy, one positive, one negative), nor "the real number $x$ satisfying $x^{2}=-2$" (no such numbers). In order to say "the real number $x$ satisfying $P(x)$" we have to prove existence and uniqueness:
    existence: $\exists x\;P(x)$ (in words: there exists $x$ such that $P(x)$);
    uniqueness: $\forall x,y\;{\big\,(P(x)\land P(y))\Longrightarrow (x=y)\,{\big )}$ (in words: whenever $x$ and $y$ satisfy $P$ they are equal).
In this case one says "there is one and only one such x" and writes "$\exists !x\;P(x)$".
The road to definable numbers passes through definable predicates. We postpone this matter to the next section and return to examples.
* The fourth constant $\pi$ is defined as the area enclosed by a circle of radius 1.
This definition involves geometry. True, a lot of equivalent definitions in terms of numbers are well-known; in particular, according to the mentioned book, this area is equal to $\textstyle \,4\int _{0}^{1}{\sqrt {1-x^{2}}}\,dx=\lim _{n\to \infty }{\frac {4}{n^{2}}}\sum _{k=0}^{n}{\sqrt {n^{2}-k^{2}}}\,.$ However, in general, every branch of mathematics may be involved in a definition of a number; existence of an equivalent definition in terms of (only) numbers is not guaranteed.
The last example is Chaitin's constant. In contrast to the four constants (mentioned above) of evident theoretical and practical importance, Chaitin's constant is rather of theoretical interest. Its definition is intricate. Here is a simplified version, sufficient for our purpose.
* The last constant $\Omega$ is defined as the sum of the series $\textstyle \Omega =\sum _{N=1}^{\infty }2^{-N}A_{N}$ where $A_{N}$ is equal to 1 if there exist natural numbers $x_{1},x_{2},x_{3},x_{4},x_{5},x_{6},x_{7},x_{8},x_{9}$ such that $f(N,x_{1},x_{2},x_{3},x_{4},x_{5},x_{6},x_{7},x_{8},x_{9})=0,$ otherwise $A_{N}=0;$ and $f$ is a polynomial in 10 variables, with integer coefficients, such that the sequence $A_{1},A_{2},\dots$ is uncomputable.
Hilbert’s tenth problem asked for a general algorithm that could ascertain whether the Diophantine equation $f(x_{0},\dots ,x_{k})=0$ has positive integer solutions $(x_{0},\dots ,x_{k}),$ given arbitrary polynomial $f$ with integer coefficients. It appears that no such algorithm can exist even for a single $f$ and arbitrary $x_{0},$ when $f$ is complicated enough. See Wikipedia: computability theory, Matiyasevich's theorem; and Scholarpedia:Matiyasevich theorem.
The five numbers ${\sqrt {2}},\varphi ,e,\pi ,\Omega$ are defined, thus, should be definable according to any reasonable approach to definability. The first four numbers ${\sqrt {2}},\varphi ,e,\pi$ are computable (both theoretically and practically; in fact, trillions, that is, millions of millions, of decimal digits of $\pi$ are already computed), but the last number $\Omega$ is uncomputable. How so? Striving to better understand this strange situation we may introduce approximations $A_{M,N}$ to the numbers $A_{N}$ as follows: $A_{M,N}$ is equal to 1 if there exist natural numbers $x_{1},x_{2},x_{3},x_{4},x_{5},x_{6},x_{7},x_{8},x_{9}$ less than $M$ such that $f(N,x_{1},x_{2},x_{3},x_{4},x_{5},x_{6},x_{7},x_{8},x_{9})=0,$ otherwise $A_{N}=0;$ here $M$ is arbitrary. For each $N$ we have $A_{M,N}\uparrow A_{N}$ as $M\to \infty ;$ that is, the sequence $A_{1,N},A_{2,N},\dots$ is increasing, and converges to $A_{N}.$ Also, this sequence $A_{1,N},A_{2,N},\dots$ is computable (given $M,$ just check all the $(M-1)^{9}$ points $(N,x_{1},x_{2},x_{3},x_{4},x_{5},x_{6},x_{7},x_{8},x_{9}),$ $0<x_{1}<M,\dots ,0<x_{9}<M$). Now we introduce approximations $\omega _{M}$ to the number $\Omega$ as follows: $\textstyle \omega _{M}=\sum _{N=1}^{M}2^{-N}A_{M,N}.$ We have $\omega _{M}\uparrow \Omega$ (as $M\to \infty$), and the sequence $\omega _{1},\omega _{2},\dots$ is computable. A wonder: a computable increasing sequence of rational numbers converges to a uncomputable number!
For every $N$ there exists $M$ such that $A_{M,N}=A_{N};$ such $M$ depending on $N,$ denote it $M_{N}$ and get $\textstyle \sum _{N=1}^{\infty }2^{-N}A_{M_{N},N}=\Omega ;$ moreover, $\textstyle \Omega -\sum _{N=1}^{K}2^{-N}A_{M_{N},N}\leq 2^{-K}$ for all $K.$ In order to compute $\Omega$ up to $2^{-K}$ it suffices to compute $\textstyle \sum _{N=1}^{K}2^{-N}A_{M_{N},N}.$ Doesn't it mean that $\Omega$ is computable? No, it does not, unless the sequence $M_{1},M_{2},\dots$ is computable. Well, these numbers need not be optimal, just large enough. Isn't $\textstyle M_{N}=10^{1000N}$ large enough? Amazingly, no, this is not large enough. Moreover, $\textstyle M_{N}=10^{10^{1000N}}$ is not enough. And even the "power tower"$M_{N}=\underbrace {10^{10^{\cdot ^{\cdot ^{10}}}}} _{1000N}$ is still not enough!
Here is the first paragraph from a prize-winning article by Bjorn Poonen:
    Does the equation $\textstyle x^{3}+y^{3}+z^{3}=29$ have a solution in integers? Yes: (3, 1, 1), for instance. How about $\textstyle x^{3}+y^{3}+z^{3}=30\,?$ Again yes, although this was not known until 1999: the smallest solution is (−283059965, −2218888517, 2220422932). And how about $\textstyle x^{3}+y^{3}+z^{3}=33\,?$ This is an unsolved problem.
Given that the simple Diophantine equation $\textstyle N+x^{3}+y^{3}-z^{3}=0$ has solutions for $N=30$ but only beyond $10^{9}$ we may guess that the "worst case" Diophantine equation $f(N,x_{1},x_{2},x_{3},x_{4},x_{5},x_{6},x_{7},x_{8},x_{9})=0$ needs very large $M_{N}.$ In fact, the sequence $M_{1},M_{2},\dots$ has to be uncomputable (otherwise $\Omega$ would be computable, but it is not). Some computable sequences grow fantastically fast. See Wikipedia: "Ackermann function", "Fast-growing hierarchy". And nevertheless, no one of them bounds from above the sequence $M_{1},M_{2},\dots \,$ Reality beyond imagination!
Every computable number is definable, but a definable number need not be computable. Computability being another story, we return to definability.

## From predicates to relations

Recall the five definitions mentioned in the introduction. They should be special cases of a general notion "definition". In order to formalize this idea we have to be more pedantic than in the introduction. "Nothing but the hard technical story is any real good" (Littlewood, A Mathematician's Miscellany, page 70); exercises are waiting for you.
All mathematical objects (real numbers, limits, sets etc.) are treated in the framework of the mainstream mathematics, unless stated otherwise. Alternative approaches are sometimes mentioned in Sections 9, 10. Naive set theory suffices for Sections 2–7; axiomatic set theory is used in Sections 8–10.
A definition is a text in a language. A straightforward formalization of such notions as "definition" and "definable" uses "formal language" (a formalization of "language") and other notions of model theory. Surprisingly, there is a shorter way. Operations on sets are used instead of logical symbols, and relations instead of predicates.
"However, predicates have many different uses and interpretations in mathematics and logic, and their precise definition, meaning and use will vary from theory to theory." (Quoted from Wikipedia.) Here we use predicates for informal explanations only; on the formal level they will be avoided (replaced with relations).
The number ${\sqrt {2}}$ was defined as the real number $x$ such that $P(x),$ where $P(x)$ is the predicate "$x>0$ and $x^{2}=2$". This predicate is the conjunction $P_{1}(x)\land P_{2}(x)$ of two predicates $P_{1}(x)$ and $P_{2}(x),$ the first being "$x>0$", the second "$x^{2}=2$". The single-element set $A=\{x\in \mathbb {R} \mid P(x)\}=\{{\sqrt {2}}\}$ corresponding to the predicate $P(x)$ is the intersection $A=A_{1}\cap A_{2}$ of the sets $A_{1}=\{x\in \mathbb {R} \mid P_{1}(x)\}=(0,\infty )$ and $A_{2}=\{x\in \mathbb {R} \mid P_{2}(x)\}=\{-{\sqrt {2}},{\sqrt {2}}\}.$ (Here and everywhere, $\mathbb {R}$ is the set of all real numbers.)
$A=\{x\mid P(x)\}$ "$A$ is the set of all $x$ such that $P(x)$" $x\in A$ "$x$ belongs to $A$" $A\cup B$ union $A\cap B$ intersection $A\setminus B$ set difference  $A\times B$ Cartesian product  $\mathbb {R}$ real line  $\mathbb {R} ^{2}$ Cartesian plane and more, more, more.
This is instructive. In order to formalize a definition of a number via its defining property, we have to deal with sets of numbers, and more generally, relations between numbers.
Also, $x^{2}$ is the product $x\cdot x,$ and $2$ is the sum $1+1.$ But what is "product", "sum", "$1$" and "$0$"? The answer is given by the axiomatic approach to real numbers: they are a complete totally ordered field. It means that addition, multiplication and order are defined and have the appropriate properties. Thus, 0 is defined as the real number $x$ satisfying the condition $\forall y\;(x+y=y).$ Similarly, $1$ is defined as the real number $x$ satisfying the condition $\forall y\;(x\cdot y=y).$
Now we need predicates with two and more variables. The order is a binary (that is, with two variables) predicate "$x\leq y$". Addition is a ternary (that is, with three variables) predicate "$x+y=z$". Similarly, multiplication is a ternary predicate "$xy=z$" (denoted also "$x\cdot y=z$" or "$x\times y=z$").
Each unary (that is, with one variable) predicate $P(x)$ on real numbers leads to a set $\{x\in \mathbb {R} \mid P(x)\}$ of real numbers, a subset of the real line $\mathbb {R} .$ Likewise, each binary predicate $P(x,y)$ on reals leads to a set $\{(x,y)\in \mathbb {R} ^{2}\mid P(x,y)\}$ of pairs of real numbers, a subset of the Cartesian plane $\mathbb {R} ^{2}=\mathbb {R} \times \mathbb {R} ,$ the latter being the Cartesian product of the real line by itself. On the other hand, a binary relation on $\mathbb {R}$ is defined as an arbitrary subset of $\mathbb {R} ^{2}.$
Thus, each binary predicate on reals leads to a binary relation on reals. If we swap the variables, that is, turn to another predicate $Q(x,y)$ that is $P(y,x),$ then we get another relation $\{(x,y)\mid Q(x,y)\}=\{(x,y)\mid P(y,x)\}=\{(y,x)\mid P(x,y)\},$ inverse (in other words, converse, or opposite) to the former relation (generally different, but sometimes the same).
Similarly, each ternary predicate on reals leads to a ternary relation on reals; and, changing the order of variables, we get $3!=6$ ternary relations (generally, different) corresponding to 6 permutations of 3 variables. And generally, each n-ary predicate on reals leads to a n-ary relation on reals (a subset of $\mathbb {R} ^{n}$); and, changing the order of variables, we get $n!$ such relations. The case $n=1$ is included (for unification); a unary relation on reals (called also property of reals) is a subset of $\mathbb {R} .$
Thus, on reals, the order is the binary relation $\{(x,y)\mid x\leq y\},$ the addition is the ternary relation$\{(x,y,z)\mid x+y=z\},$ and the multiplication is the ternary relation$\{(x,y,z)\mid xy=z\}.$ Still, we cannot forget predicates until we understand how to construct new relations out of these basic relations. For example, how to construct the binary relation $\{(x,y)\mid x+y=y\}$ and the unary relation $\{x\mid \forall y\;(x+y=y)\}\,?$ We know that if a predicate $P(x)$ is the conjunction $P_{1}(x)\land P_{2}(x)$ of two predicates, then it leads to the intersection $A=A_{1}\cap A_{2}$ of the corresponding sets. Similarly, the disjunction $P_{1}(x)\lor P_{2}(x)$ leads to the union $A=A_{1}\cup A_{2}$, and the negation $\neg P_{1}(x)$ leads to the complement $A=\mathbb {R} \setminus A_{1}.$ Also, the implication $P_{1}(x)\Longrightarrow P_{2}(x)$ leads to $A=(\mathbb {R} \setminus A_{1})\cup A_{2},$ and the equivalence $P_{1}(x)\Longleftrightarrow P_{2}(x)$ leads to $A={\big(\mathbb {R} \setminus A_{1})\cap (\mathbb {R} \setminus A_{2}){\big )}\cup (A_{1}\cap A_{2}).$ The same holds for n-ary predicates; the disjunction $P_{1}(x,y)\lor P_{2}(x,y)$ still corresponds to the union $A=A_{1}\cup A_{2},$ the negation $\neg P_{1}(x,y,z)$ to the complement $A=\mathbb {R} ^{3}\setminus A_{1},$ etc. But what to do when $P(x,y)$ is $P_{1}(x,y,y),\,$ or $P(x)$ is $\forall y\;P_{1}(x,y),\,$ or $P(x,y,z)$ is $P_{1}(y,x)\land P_{2}(y,z),\,$ etc?
This question was answered, in context of axiomatic set theory, in the first half of the 20th century. A somewhat different answer, in the context of definability, was given by van den Dries in 1998, and slightly modified by Auke Bart Booij in 2013; see also Macintyre 2016 [8, "Defining First-Order Definability"]. Here is the answer (slightly modified).
First, in addition to the Boolean operations (union and complement; intersection is superfluous, since it is complement of the union of complements) on subsets of $\mathbb {R} ^{n},$ we introduce permutation of coordinates; for example ($n=3$), $A=\{(x,y,z)\in \mathbb {R} ^{3}\mid (z,x,y)\in A_{1}\};$ and in general,
    $A=\{(x_{1},\dots ,x_{n})\in \mathbb {R} ^{n}\mid (x_{i_{1}},\dots ,x_{i_{n}})\in A_{1}\}$
where $(i_{1},\dots ,i_{n})$ is an arbitrary permutation of $(1,\dots ,n).$
In particular, permutation of coordinates in a binary relation gives the inverse relation. For example, the inverse to $\{(x,y)\mid x\leq y\}$ is $\{(x,y)\mid y\leq x\}=\{(x,y)\mid x\geq y\}.$ And, by the way, the intersection of these two is the relation $\{(x,y)\mid x=y\}$ (corresponding to the predicate "$x=y$").
Second, set multiplication, in other words, Cartesian product by $\mathbb {R}$: $A=A_{1}\times \mathbb {R} ,$ that is,
    $A=\{(x_{1},\dots ,x_{n+1})\in \mathbb {R} ^{n+1}\mid (x_{1},\dots ,x_{n})\in A_{1}\},$
turns a $n$-ary relation to a relation that is formally $(n+1)$-ary, but the last variable is unrelated to others.
Now, returning to a predicate $P(x,y,z)$ of the form $P_{1}(y,x)\land P_{2}(y,z),$ we treat the corresponding ternary relation $A=\{(x,y,z)\in \mathbb {R} ^{3}\mid P(x,y,z)\}$ as the intersection of two ternary relations $A_{1}=\{(x,y,z)\in \mathbb {R} ^{3}\mid P_{1}(y,x)\}$ and $A_{2}=\{(x,y,z)\in \mathbb {R} ^{3}\mid P_{2}(y,z)\};$ and $A_{1}$ as the Cartesian product of the binary relation $B_{1}=\{(x,y)\in \mathbb {R} ^{2}\mid P_{1}(y,x)\}$ by $\mathbb {R} ,$ $B_{1}$ being inverse to the relation $B_{2}=\{(x,y)\in \mathbb {R} ^{2}\mid P_{1}(x,y)\}$ (corresponding to the given predicate $P_{1}(x,y)$); and $A_{2}$ as obtained (by permutation of coordinates) from the Cartesian product $\{(y,z,x)\in \mathbb {R} ^{3}\mid P_{2}(y,z)\}=\{(y,z)\in \mathbb {R} ^{2}\mid P_{2}(y,z)\}\times \mathbb {R}$ (by $\mathbb {R}$) of the relation corresponding to the given predicate $P_{2}(y,z).$
Third, the projection; for example ($n=1$), $A=\{x\mid \exists y\in \mathbb {R} \;{\big(x,y)\in A_{1}{\big )}\};$ and in general,
    $A=\{(x_{1},\dots ,x_{n})\mid \exists x_{n+1}\in \mathbb {R} \;{\big(x_{1},\dots ,x_{n+1})\in A_{1}{\big )}\};$
it turns a $(n+1)$-ary relation to a $n$-ary relation. For $n=1$ the set $A$ is also called the domain of the binary relation $A_{1}.$
Now, returning to a predicate $P(x,y)$ of the form $P_{1}(x,y,y),\,$ we rewrite it as "$\exists z\;{\bigP_{1}(x,y,z)\land y=z{\big )}$" and treat the corresponding binary relation as the projection of the ternary relation $\{(x,y,z)\mid P_{1}(x,y,z)\}\cap \{(x,y,z)\mid y=z\},$ and $\{(x,y,z)\mid y=z\}$ as a permutation of the Cartesian product $\{(y,z)\mid y=z\}\times \mathbb {R} .$
What if $P(x)$ is "$\forall y\;P_{1}(x,y)$"? Then we rewrite it as "$\neg \exists y\;\neg P_{1}(x,y)$" and get the complement of the projection of the complement of the relation corresponding to $P_{1}(x,y).$
So, we accept the 3 given relations (order, addition, multiplication) as "definable", and we accept the 5 operations (complement, union, permutation, set multiplication, projection) for producing definable relations out of other definable relations. Thus we get infinitely many definable relations (unary, binary, ternary and so on).
More formally, these relations are called "first-order definable (without parameters) over $(\mathbb {R} ;\leq ,+,\times )$"; but, less formally, "definable over" is often replaced with "definable in" (and sometimes "definable from"); "without parameters" is omitted throughout this essay; also "first order" and "over $(\mathbb {R} ;\dots )$" are often omitted in this section. See Wikipedia: Definable set: Definition; The field of real numbers.
Generally, starting from a set (not necessarily the real line) and some chosen relations on this set (including the equality relation if needed), and applying the 5 operations (complement, union, permutation, set multiplication, projection) repeatedly (in all possible combinations), one obtains an infinite collection of relations (unary, binary, ternary and so on) on the given set. Every such collection of relations is called a structure (Booij), or a VDD-structure (Brian Tyrrell) on the given set. According to Tyrrell, "The advantage of this definition is that no model theory is then needed to develop the theory". The technical term "VDD structure" (rather than just "structure" used by van den Dries and Booij) is chosen by Tyrrell "to prevent a notation clash" (Tyrrell), since many other structures of different kinds are widely used in mathematics. "VDD" apparently refers to van den Dries who pioneered this approach. But let us take a shorter term "D-structure", where "D" refers to "definable" and "Dries" as well. The D-structure obtained (by the 5 operations) from the chosen relations, in other words, generated by these relations, is the smallest D-structure containing these relations.
Generality aside, we return to the special case, the D-structure of definable relations on the real line defined above (generated by order, addition and multiplication; though, the order appears to be superfluous).
* Exercise 2.1. Prove that a relation is definable in $(\mathbb {R} ;\leq ,+,\times )$ if and only if it is definable in $(\mathbb {R} ;+,\times ).$ Hint: $x\leq y$ if and only if $\exists z\in \mathbb {R} \;(x+z^{2}=y).$
We say that a number $x$ is definable, if the single-element set $\{x\}$ is a definable unary relation.
* Exercise 2.2. Prove that the numbers 0 and 1 are definable. Hint: recall "$\forall y\;(x+y=y)$" and "$\forall y\;(x\cdot y=y)$".
* Exercise 2.3. Prove that the sum of two definable numbers is definable. Hint: $\exists y\in \mathbb {R} \;\exists z\in \mathbb {R} \;\,{\big(y\in A_{1})\land (z\in A_{2})\land (y+z=x){\big )}.$
* Exercise 2.4. Prove that the number ${\frac {355}{113}}$ is definable. Hint: $\exists y\in \mathbb {R} \;\exists z\in \mathbb {R} \;\,(y=113\land z=355\land xy=z).$
* Exercise 2.5. Prove that the number ${\sqrt {2}}$ is definable. Hint: $(x>0)\land (x\cdot x=2).$
* Exercise 2.6. Prove that the golden ratio $\varphi$ is definable.
* Exercise 2.7. Prove that the binary relation "$y=|x|$" is definable. Hint: $(x^{2}=y^{2}\land y\geq 0).$
In contrast, the ternary relation "$x^{y}=z$" is not definable. Moreover, the binary relation $\{(x,y)\mid y=2^{x}\land 0\leq x\leq 1\}$ is not definable. The problem is that all relations definable in $(\mathbb {R} ;+,\times )$ are semialgebraic sets over (the subring of) integers.
Theorem. All relations definable in $(\mathbb {R} ;+,\times )$ are semialgebraic sets over integers.
Proof. The two relations "$+$", "$\times$" are semialgebraic (evidently). Two operations, permutation and set multiplication, applied to semialgebraic relations, give semialgebraic relations (evidently). The third, projection operation, applied to a semialgebraic relation, gives a semialgebraic relation by the Tarski–Seidenberg theorem.
Theorem. If $a>1$ and $-\infty <b<c<\infty ,$ then the binary relation $\{(x,y)\mid (y=a^{x})\land (b\leq x\leq c)\}$ is not semialgebraic.
Proof. Assume the contrary. Then the function $x\mapsto a^{x}$ on $[b,c],$ being semialgebraic, must be algebraic,). It means existence of a polynomial $p(\cdot ,\cdot )$ (not identically 0) such that $p(x,a^{x})=0$ for all $x\in [b,c].$ It follows that $p(z,e^{z\log a})=0$ for all complex numbers $z.$ Taking $z={\tfrac {2n\pi i}{\log a}}$ we get $p{\big{\tfrac {2n\pi i}{\log a}},1{\big )}=0$ for all integer $n.$ Therefore $p(z,1)=0$ for all complex $z$ (otherwise the polynomial $z\mapsto p(z,1)$ cannot have infinitely many roots). Similarly, taking $z={\tfrac {\log u+2n\pi i}{\log a}}$ we get $p(z,u)=0$ for all complex $z$ and all $u>0,$ therefore everywhere; a contradiction.
Thus, we cannot define the number $e$ via $(1+x)^{1/x}$ in this framework. Also, only algebraic numbers are definable in this framework.
Each natural number is definable, which does not mean that the set $\mathbb {N}$ of all natural numbers is definable (in $(\mathbb {R} ;+,\times )$). In fact, it is not!
Follows immediately from the lemma below.
Lemma. For every semialgebraic subset $A$ of $\mathbb {R}$ there exists $a\in \mathbb {R}$ such that either $(a,\infty )\subset A$ or $(a,\infty )\cap A=\emptyset .$
Proof. First, the claim holds for every set of the form $A=\{x\in \mathbb {R} \mid p(x)>0\}$ where $p(\cdot )$ is a polynomial, since either $p(x)\to +\infty$ as $x\to +\infty ,$ or $p(x)\to -\infty$ as $x\to +\infty ,$ or $p(x)$ is constant. Second, a Boolean operation (union, complement), applied to sets that satisfy the claim, gives a set that satisfies the claim (evidently).
We could accept the set $\mathbb {N}$ of natural numbers as definable, that is, turn to definability in $(\mathbb {R} ;+,\times ,\mathbb {N} ),$ but does it help to define the number $e$? Surprisingly, it does! "[...] then the situation changes drastically" (van den Dries). See also Booij: "[...] if we add the seemingly innocent set Z to the tame structure of semialgebraic sets, we get a wild structure [...]"

## Beyond the algebraic

In this section, "definable" means "first order definable in $(\mathbb {R} ;+,\times ,\mathbb {N} )$". In other words, the real line is endowed with the D-structure generated by addition, multiplication, and the set of natural numbers. Good news: we'll see that the five numbers ${\sqrt {2}},\varphi ,e,\pi ,\Omega ,$ discussed in Introduction, are definable. Bad news: in addition to their usual definitions we'll use Diophantine equations, computability and Matiyasevich's theorem (mentioned in Introduction in relation to Chaitin's constant). The reader not acquainted with computability theory should rely on intuitive idea of computation (instead of formal proofs of computability), and consult the linked Wikipedia article for computability-related notions ("recursively enumerable", "computable sequence"). Alternatively, the reader may skip to Section 5; there, usual definitions will apply, no computability needed.
Every Diophantine set
    $\{(a_{1},\dots ,a_{n})\in \mathbb {N} ^{n}\mid \exists x_{1},\dots ,x_{m}\in \mathbb {N} \;\;p(a_{1},\dots ,a_{n},\,x_{1},\dots ,x_{m})=0\}$
(where $p(\dots )$ is a polynomial with integer coefficients), treated as a subset of $\mathbb {R} ^{n},$ is a definable n-ary relation. And every recursively enumerable set is Diophantine.
For every computable sequence $(k_{1},k_{2},\dots )$ of natural numbers, the binary relation $\{(n,k)\in \mathbb {N} ^{2}\mid k=k_{n}\}=\{(1,k_{1}),(2,k_{2}),\dots \}$ is recursively enumerable, therefore definable.
In particular, the binary relation "$x\in \mathbb {N}$ and $y=x^{x}$" is definable, as well as "$x\in \mathbb {N}$ and $y=(x+1)^{x}$". Now (at last!) the number $e$ is definable, via $\lim _{n\to \infty }(1+{\tfrac {1}{n}})^{n}=\lim _{n\to \infty }{\tfrac {(n+1)^{n}}{n^{n}}};$ more formally, $e$ is the real number satisfying the condition
    $\forall \varepsilon >0\;\exists n\in \mathbb {N} \;\forall m\in \mathbb {N} \;\;{\bigm\geq n\Longrightarrow -\varepsilon m^{m}<(m+1)^{m}-em^{m}<\varepsilon m^{m}{\big )}.$
This is not quite the definition mentioned in Introduction, but equivalent to it.
Similarly, for every convergent computable sequence of rational numbers, its limit is a definable number. In other words, every limit computable real number is definable.
Every computable real number is limit computable, therefore definable. In particular, the number $\pi$ is computable, therefore definable.
Chaitin's constant is not computable, but still, limit computable (recall Introduction: it is the limit of a computable increasing sequence of rational numbers), therefore definable. So, all the five constants discussed in Introduction (taken from the book "Mathematical constants") are definable. Moreover, all the constants discussed in that book are definable.
On the other hand, if we choose a number between 0 and 1 at random, according to the uniform distribution, we almost surely get an undefinable number, because the definable numbers are a countable set.
Of course, such a randomly chosen undefinable number is not an explicit example of undefinable number. It may seem that "explicit example of undefinable number" is a patent nonsense, just as "defined undefinable number". But no, not quite nonsense, see Section 4.
An infinite sequence $(x_{1},x_{2},\dots )=(x_{n})_{n}$ of real numbers is nothing but the binary relation $\{(n,x)\mid n\in \mathbb {N} \land x=x_{n}\}=$ $\{(1,x_{1}),(2,x_{2}),\dots \};$ if this binary relation is definable, we say that the sequence is definable. If a sequence is definable, then all its members are definable numbers. However, a sequence of definable numbers is generally not definable.
* Exercise 3.1. If a definable sequence converges, then its limit is a definable number. Prove it.
A function $f:\mathbb {R} \to \mathbb {R}$ is nothing but the binary relation "$f(x)=y$", that is, $A=\{(x,y)\mid f(x)=y\};$ if this binary relation is definable, we say that the function is definable. An arbitrary binary relation $A$ is a function if and only if for every $x$ there exists one and only one $y$ such that $(x,y)\in A.$
* Exercise 3.2. If $f$ is a definable function and $x$ is a definable number, then $f(x)$ is a definable number. Prove it.
However, a function that has definable values at all definable arguments is generally not definable.
* Exercise 3.3. If a definable function is differentiable, then its derivative is a definable function. Prove it. Hint: the derivative is the limit of...
* Exercise 3.4. If a definable function $f$ is continuous, then its antiderivative $F$ is definable if and only if $F(0)$ is a definable number. Prove it. Hint: $\textstyle F(x)=F(0)+\lim _{n\to \infty }{\frac {x}{n}}\sum _{k=1}^{n}f({\frac {k}{n}}x).$
Similarly to the number $e$ we can treat the exponential function $x\mapsto e^{x}.$ First, the relation $\textstyle {\big \(n,p,q,u)\mid n\in \mathbb {N} \land p\in \mathbb {N} \land q\in \mathbb {N} \land u={\big1+{\frac {p}{q}}\cdot {\frac {1}{n}}{\big )}^{n}{\big \}}$ is definable (since $\textstyle {\big1+{\frac {p}{q}}\cdot {\frac {1}{n}}{\big )}^{n}$ is a computable function of $n,p,q$). Second, the relation $\{(x,y)\mid y=e^{x}\}$ is definable, since $e^{x}$ is the limit of $\textstyle {\big1+{\frac {p}{q}}\cdot {\frac {1}{n}}{\big )}^{n}$ as $n$ tends to infinity and ${\tfrac {p}{q}}$ tends to $x;$ more formally (but still not completely formally...), $y=e^{x}$ if and only if
    $\forall \varepsilon >0\;\exists \delta >0\;\forall n\in \mathbb {N} \,\forall p\in \mathbb {Z} \,\forall q\in \mathbb {N} \,\forall u\;\;{\bigg{\Bign\geq {\frac {1}{\delta }}{\Big )}\land {\Big-\delta <x-{\frac {p}{q}}<\delta {\Big )}\land {\Bigu={\big1+{\tfrac {p}{q}}\cdot {\tfrac {1}{n}}{\big )}^{n}{\Big )}\Longrightarrow \varepsilon <y-u<\varepsilon {\bigg )};$
here $\mathbb {Z}$ is the set of integers (evidently definable).
The cosine function may be treated via complex numbers and Euler's formula $e^{ix}=\cos x+i\sin x.$ First, the real part of the complex number $\textstyle {\big1+i{\frac {p}{q}}\cdot {\frac {1}{n}}{\big )}^{n}$ is a computable function of $n,p,q.$ Second, its limit as $n$ tends to infinity and ${\tfrac {p}{q}}$ tends to $x$ is equal to the real part $\cos x$ of the complex number $e^{ix}.$
Note that the exponential integral $\operatorname {Ei} (x)$ and the sine integral $\operatorname {Si} (x)$ are definable nonelementary functions.
Definable functions can be pathological and disrespect dimension. In particular, there is a definable one-to-one correspondence between the (two-dimensional) square $(0,1)\times (0,1)$ and a subset of the (one-dimensional) interval $(0,1),$ which will be used in Section 6. Here is a way to this fact.
Given two numbers $x,y\in (0,1),$ we consider their decimal digits: $\textstyle x=(0.\alpha _{1}\alpha _{2}\dots )_{10}=\sum _{n=1}^{\infty }10^{-n}\alpha _{n}$ where $\alpha _{n}\in \{0,1,2,3,4,5,6,7,8,9\}$ for each $n,$ and the set $\{n:\alpha _{n}\neq 9\}$ is infinite (since we represent, say, ${\tfrac {1}{2}}$ as $(0.5000\dots )_{10}$ rather than $(0.4999\dots )_{10}$); and similarly $y=(0.\beta _{1}\beta _{2}\dots )_{10}.$ We interweave their digits, getting a third number $z=(0.\alpha _{1}\beta _{1}\alpha _{2}\beta _{2}\dots )_{10}\in (0,1).$ The ternary relation between such $x,y,z$ is a function $W_{2}:(0,1)\times (0,1)\to (0,1).$ Not all numbers of $(0,1)$ are of the form $W_{2}(x,y)$ (for example, $\textstyle {\frac {21}{1100}}=(0.01909090\dots )_{10}$ is not), which does not matter. It does matter that $x,y$ are uniquely determined by $W_{2}(x,y),$ that is, $W_{2}(x_{1},y_{1})=W_{2}(x_{2},y_{2})$ implies $x_{1}=x_{2}\land y_{1}=y_{2}.$ In other words, $W_{2}$ is an injection $(0,1)\times (0,1)\to (0,1).$
Denoting by $D(n,x)$ the $n$-th decimal digit $\alpha _{n}$ of $x\in (0,1)$ we have $D(n,x)=\lfloor 10\cdot \operatorname {frac} (10^{n-1}x)\rfloor ;$ here $\lfloor a\rfloor$ is the integer part of $a,$ and $\operatorname {frac} (a)=a-\lfloor a\rfloor$ is the fractional part of $a.$
* Exercise 3.5. The integer part function is definable. Prove it. Hint: $\{(x,\lfloor x\rfloor )\mid x>0\}=\{(x,n)\mid x>0\land n+1\in \mathbb {N} \land n\leq x<n+1\}.$
* Exercise 3.6. The function $D:\mathbb {N} \times (0,1)\to \mathbb {R}$ is definable. (See Booij.) Prove it. Hint: $D(n,x)=d\Longleftrightarrow \exists k\in \mathbb {N} \;\;\exists y\in \mathbb {R} \;\;{\bigk=10^{n-1}\land y=\operatorname {frac} (kx)\land d=\lfloor 10y\rfloor {\big )}.$
* Exercise 3.7. The function $W_{2}:(0,1)^{2}\to (0,1)$ is definable. Prove it. Hint: $z=W_{2}(x,y)\Longleftrightarrow \forall n\in \mathbb {N} \;\;{\bigD(2n,z)=D(n,y)\land D(2n-1,z)=D(n,x){\big )}.$
* Exercise 3.8. Generalize the previous exercise to $W_{3}:(0,1)^{3}\to (0,1).$ Hint: consider $D(3n-2,z),$ $D(3n-1,z),$ $D(3n,z).$

## Explicit example of undefinable number

We construct such example in two steps. First, we enumerate all numbers definable in $(\mathbb {R} ;+,\times ,\mathbb {N} )$ ("first order" is meant but omitted, as before); that is, we construct a sequence $(x_{1},x_{2},\dots )$ of real numbers that contains all numbers definable in $(\mathbb {R} ;+,\times ,\mathbb {N} )$ (and only such numbers). Second, we construct a real number not contained in this sequence.
The second step is well-known and simple, so let us do it now, for an arbitrary sequence $(x_{1},x_{2},\dots )$ of real numbers. We construct a real number $x$ via its decimal digits, as $\textstyle x=\sum _{n=1}^{\infty }{\frac {\alpha _{n}}{10^{n}}},$ and we choose each $\alpha _{n}$ to be different from the n-th digit (after the decimal point) of the absolute value $|x_{n}|$ of $x_{n}.$ To be specific, let us take $\alpha _{n}=3$ if $10k+7\leq 10^{n}|x_{n}|<10k+8$ for some integer $k,$ and $\alpha _{n}=7$ otherwise. Then $x\neq x_{n}$ since the integral part of $10^{n}|x|,$ being of the form $10\ell +\alpha _{n}$ for integer $\ell ,$ is different from the integral part of $10^{n}|x_{n}|,$ the latter being of the form $10k+\beta _{n}$ for integer $k,$ and $\alpha _{n}\neq \beta _{n}$ (either $\beta _{n}=7,\alpha _{n}=3$ or $\beta _{n}\neq 7,\alpha _{n}=7$). This is an instance of Cantor's diagonal argument.
Now we start constructing a sequence $(x_{1},x_{2},\dots )$ of real numbers that contains all numbers definable in $(\mathbb {R} ;+,\times ,\mathbb {N} )$ (and only such numbers). These numbers being elements of single-element subsets of $\mathbb {R}$ definable in $(\mathbb {R} ;+,\times ,\mathbb {N} ),$ and these subsets being unary relations, we enumerate all relations (unary, binary, ...) definable in $(\mathbb {R} ;+,\times ,\mathbb {N} ).$ These are obtained from the three given relations (addition, multiplication, "naturality") via the 5 operations (complement, union, permutation, set multiplication, projection) applied repeatedly. We may save on permutations by restricting ourselves to adjacent transpositions, that is, permutations that swap two adjacent numbers $k,k+1$ and leave intact other numbers of $\{1,\dots ,n\};$ this is sufficient, since every permutation is a product of some adjacent transpositions. We start with the three given relations
    $A_{1}=\{(x,y,z)\mid x+y=z\},\quad$ "addition"
    $A_{2}=\{(x,y,z)\mid xy=z\},\quad$ "multiplication"
    $A_{3}=\mathbb {N} ,\quad$ "naturality"
and apply to them the five operations (whenever possible). The first operation "complement" gives
    $A_{4}=\{(x,y,z)\mid x+y\neq z\},$
    $A_{5}=\{(x,y,z)\mid xy\neq z\},$
    $A_{6}=\{x\mid x\notin \mathbb {N} \}.$
The "union" operation gives
    $A_{7}=\{(x,y,z)\mid (x+y=z)\lor (xy=z)\}.$
The "permutation" operation (reduced to adjacent transpositions), applied to the ternary relation $A_{1},$ gives two relations $A_{8},A_{9};$ namely, $A_{8}=\{(x,y,z)\mid y+x=z\}$ (equal to $A_{1}$ due to commutativity, but we do not bother) and $A_{9}=\{(x,y,z)\mid x+z=y\};$ we apply the same to $A_{2}$ getting $A_{10},A_{11}.$ Further, "set multiplication" gives the 4-ary relation
    $A_{12}=\{(x,y,z,w)\mid x+y=z\},$
similarly $A_{13},$ and $A_{14}=\{(x,y)\mid x\in \mathbb {N} \}$. The most remarkable "projection" operation gives
    $A_{15}=\{(x,y)\mid \exists z\;(x+y=z)\}\quad$
(in fact, $A_{15}=\mathbb {R} ^{2}$), and similarly $A_{16}.$
The first 16 relations $A_{1},\dots ,A_{16}$ are thus constructed. On the next iteration we apply the 5 operations to these 16 relations (whenever possible; though, some are superfluous) and get a longer finite list. And so on, endlessly. A bit cumbersome, but really, a routine exercise in programming, isn't it? Well, it is, provided however that the "programming language" stipulates the data type "relation over $\mathbb {R}$" and the relevant operations on relations. By the way, equality test for relations is not needed (unless we want to skip repetitions); but test of existence and uniqueness (for unary relations), and extraction of the unique element, are needed for the next step.
Now we are in position to construct $x_{n};$ for each $n$ we check, whether the relation $A_{n}$ is of the form $\{u\}$ for $u\in \mathbb {R}$ or not; if it is, we take $x_{n}=u,$ otherwise $x_{n}=0.$ (Note that $x_{n}=0$ whenever the relation $A_{n}$ is not unary.)
Applying the diagonal argument (above) to this sequence $(x_{1},x_{2},\dots )$ we construct a real number $x$ not contained in the sequence, therefore, not definable in $(\mathbb {R} ;+,\times ,\mathbb {N} ).$
This number $x$ is defined, but not in $(\mathbb {R} ;+,\times ,\mathbb {N} ).$ Why not? Because the definition of $x$ involves a sequence of relations on $\mathbb {R} .$ Sequences of numbers are used in Section 3, but sequences of relations are something new, beyond the first order. (See Wikipedia: First-order logic, Second-order logic.)
Is there a better approach? Could we define in $(\mathbb {R} ;+,\times ,\mathbb {N} )$ the same sequence $(x_{1},x_{2},\dots ),$ or maybe another sequence containing all computable numbers, by a clever trick? No, this is impossible. For every sequence definable in $(\mathbb {R} ;+,\times ,\mathbb {N} )$ the diagonal argument gives a number definable in $(\mathbb {R} ;+,\times ,\mathbb {N} )$ and not contained in the given sequence.
* “there is no definable enumeration of definable reals” (Poincaré 1909), see Stanford Encyclopedia of Philosophy: Paradoxes and Contemporary Logic.

## Second order

We introduce second-order definability in $(\mathbb {R} ;+,\times ).$ The set $\mathbb {N}$ of natural numbers is second-order definable in $(\mathbb {R} ;+,\times ),$ as we'll see soon. In contrast to the first order definability, usual definitions of mathematical constants will apply without recourse to computability and Diophantine sets.
A second-order predicate is a predicate that takes a first-order predicate as an argument. Likewise, a second-order relation is a relation between relations. For example, the binary relation $f'=g$ between a function $f$ and its derivative $g$ may be thought of as a relation between two binary relations: first, the relation $f(x)=y$ between real numbers $x,y,$ and second, the relation $g(t)=v$ between real numbers $t,v.$ First order definability of a real number involves definable first-order relations (between real numbers). Second order definability of a real number involves definable second-order relations (between first-order relations). Here is a possible formalization of this idea.
We introduce the set
    $\mathbf {S} ={\big\mathbb {R} \cup \mathbb {R} ^{2}\cup \mathbb {R} ^{3}\cup \dots {\big )}\cup {\big\operatorname {P} (\mathbb {R} )\cup \operatorname {P} (\mathbb {R} ^{2})\cup \operatorname {P} (\mathbb {R} ^{3})\cup \dots {\big )}={\bigg\bigcup _{n=1}^{\infty }\mathbb {R} ^{n}{\bigg )}\cup {\bigg\bigcup _{n=1}^{\infty }\operatorname {P} (\mathbb {R} ^{n}){\bigg )}$
that contains, on one hand, all tuples (finite sequences) $(x_{1},\dots ,x_{n})\in \mathbb {R} ^{n}$ of real numbers (for all $n$; here we do not distinguish 1-tuples from real numbers), and on the other hand, all $n$-ary relations $A\subset \mathbb {R} ^{n}$ on $\mathbb {R}$ (for all $n$). Here $\operatorname {P} (\mathbb {R} )$ is the set of all subsets (that is, the power set) of the real line $\mathbb {R} ,$ in other words, of unary relations on $\mathbb {R} ;$ $\operatorname {P} (\mathbb {R} ^{2})$ is the set of all subsets (that is, the power set) of the Cartesian plane $\mathbb {R} ^{2},$ in other words, of binary relations on $\mathbb {R} ;$ and so on. On this set $\mathbf {S}$ we introduce two relations:
* membership, the binary relation $\cup _{n=1}^{\infty }\{{\big(x_{1},\dots ,x_{n}),A{\big )}\mid (x_{1},\dots ,x_{n})\in A\}\subset \mathbf {S} ^{2};$ it says that the given $n$-tuple belongs to the given $n$-ary relation;
* "appendment", the ternary relation $\cup _{n=1}^{\infty }\{{\bigx,(x_{1},\dots ,x_{n}),(x_{1},\dots ,x_{n},x)\mid x_{1},\dots ,x_{n},x\in \mathbb {R} \}\subset \mathbf {S} ^{3};$ it says that the latter tuple results from the former tuple by appending the given real number.
The two ternary relations on $\mathbb {R} ,$ addition and multiplication, may be thought of as ternary relations on $\mathbf {S}$ (since $\mathbb {R} \subset \mathbf {S}$):
* addition: $\{(x,y,z)\mid x,y,z\in \mathbb {R} ,x+y=z\}\subset \mathbf {S} ^{3};$
* multiplication: $\{(x,y,z)\mid x,y,z\in \mathbb {R} ,xy=z\}\subset \mathbf {S} ^{3}.$
We endow $\mathbf {S}$ with the D-structure generated by the four relations (membership, appendment, addition, multiplication). All relations on $\mathbf {S}$ that belong to this D-structure will be called second-order definable. In the rest of this section, "definable" means "second-order definable", unless stated otherwise.
* Exercise 5.1. The set $\cup _{n=1}^{\infty }\mathbb {R} ^{n}$ of all tuples and the set $\cup _{n=1}^{\infty }\operatorname {P} (\mathbb {R} ^{n})$ of all relations are definable subsets of $\mathbf {S} .$ Prove it. Hint: first, the set of all tuples is $\{s\in \mathbf {S} \mid \exists r,t\in \mathbf {S} \;\;(r,s,t)\in A\}$ where $A$ is the appendment relation; second, take the complement.
* Exercise 5.2. The set $\mathbb {R}$ of all real numbers is a definable subset of $\mathbf {S} .$ Prove it. Hint: $\mathbb {R} =\{r\in \mathbf {S} \mid \exists s,t\in \mathbf {S} \;\;(r,s,t)\in A\}$ where $A$ is the appendment relation.
* Exercise 5.3. Each $\mathbb {R} ^{n}$ is a definable subset of $\mathbf {S} .$ Prove it. Hint: $\mathbb {R} ^{n+1}=\{t\in \mathbf {S} \mid \exists r\in \mathbb {R} \;\exists s\in \mathbb {R} ^{n}\;\;(r,s,t)\in A\}$ where $A$ is the appendment relation.
* Exercise 5.4. The set $\operatorname {P} (\mathbb {R} )$ of all sets of real numbers (that is, unary relations) is a definable subset of $\mathbf {S} .$ Prove it. Hint: for $A\in \cup _{n=1}^{\infty }\operatorname {P} (\mathbb {R} ^{n})$ we have $A\in \operatorname {P} (\mathbb {R} )\Longleftrightarrow A\subset \mathbb {R} \Longleftrightarrow (\forall a\in A\;\;a\in \mathbb {R} )\Longleftrightarrow \neg (\exists a\in A\;\;a\notin \mathbb {R} );$ apply the projection to $\{(A,a)\mid A\in \cup _{n=1}^{\infty }\operatorname {P} (\mathbb {R} ^{n})\land a\in A\land a\notin \mathbb {R} \}.$
* Exercise 5.5. For each $n$ the set $\operatorname {P} (\mathbb {R} ^{n})$ of all $n$-ary relations is a definable subset of $\mathbf {S} .$ Prove it. Hint: similar to the previous exercise.
* Exercise 5.6. If $B\subset \operatorname {P} (\mathbb {R} )$ is a definable set of subsets of $\mathbb {R}$, then the union $\cup _{A\in B}A$ of all these subsets is a definable set (of real numbers). Prove it. Hint: for $x\in \mathbb {R}$ we have $x\in \cup _{A\in B}A\Longleftrightarrow \exists A\;\;(A\in B\land x\in A);$ take the projection of $\{(x,A)\mid A\in B\land x\in A\}=(\mathbb {R} \times B)\cap \{(x,A)\mid x\in A\}.$
* Exercise 5.7. Do the same for the intersection $\cap _{A\in B}A.$ Hint: $\cap _{A\in B}A=\mathbb {R} \setminus \cup _{A\in B}(\mathbb {R} \setminus A);$ consider $\{(x,A)\mid A\in B\land x\in \mathbb {R} \setminus A\}=(\mathbb {R} \times B)\cap \{(x,A)\mid x\notin A\}.$ (But what if $B$ is empty?)
* Exercise 5.8. Generalize the two exercises above to $B\subset \operatorname {P} (\mathbb {R} ^{2}),$ $B\subset \operatorname {P} (\mathbb {R} ^{3})$ and so on. Hint: now $x$ is a tuple.
In particular, taking a single-element set $B=\{A\}$ we see that definability of $\{A\}$ implies definability of $A.$ The converse holds as well (see below).
* Exercise 5.9. If a set $A\subset \mathbb {R}$ (of real numbers) is definable, then the set $\operatorname {P} (A)$ (of all subsets of $A$) is definable. Prove it. Hint: for $A_{1}\in \operatorname {P} (\mathbb {R} )$ we have $A_{1}\in \operatorname {P} (A)\Longleftrightarrow A_{1}\subset A\Longleftrightarrow (\forall x\in A_{1}\;\;x\in A)\Longleftrightarrow \neg (\exists x\in A_{1}\;\;x\notin A);$ consider $\{(A_{1},x)\mid A_{1}\in \operatorname {P} (\mathbb {R} )\land x\in \mathbb {R} \land x\in A_{1}\land x\notin A\}={\big\operatorname {P} (\mathbb {R} )\times (\mathbb {R} \setminus A){\big )}\cap \{(A_{1},x)\mid x\in A_{1}\}.$
* Exercise 5.10. Do the same for the set $\{A_{1}\in \operatorname {P} (\mathbb {R} )\mid A_{1}\supset A\}$ (of all supersets of $A$). Hint: similarly to the previous exercise, consider ${\bigP(\mathbb {R} )\times A{\big )}\cap \{(A_{1},x)\mid x\notin A_{1}\}.$
* Exercise 5.11. Generalize the two exercises above to $A\subset \mathbb {R} ^{2},$ $A\subset \mathbb {R} ^{3}$ and so on.
Remark. These 11 exercises (above) do not use addition and multiplication, nor any properties of real numbers. They generalize readily to a more general situation. One may start with an arbitrary set $R$ (rather than the real line $\mathbb {R}$), consider the set $S$ constructed from $R$ as above (all tuples and all relations), endow $S$ by a D-structure such that the two relations on $S$, membership and appendment, are definable, and generalize the 11 exercises to this case.
Taking the intersection of the set of subsets and the set of supersets we see that definability of $A$ implies definability of the single-element set (called singleton) $B=\{A\}.$ So, $A$ is definable if and only if $\{A\}$ is definable. And still (by convention, as before) a real number $x$ is definable if and only if $\{x\}$ is definable.
Does it mean that, for example, numbers $0,$ $1,$ ${\sqrt {2}}$ are definable (as well as every rational number and every algebraic number)? We know that they are first-order definable in $(\mathbb {R} ;+,\times );$ does it follow that they are (second-order) definable in $\mathbf {S} ?$
The answer is affirmative, but needs a proof. Here we face another general question. Let $S$ be a set and $R\subset S$ its subset. Every $n$-ary relation on $R$ is also a $n$-ary relation on $S$ (since $R\subset S\Longrightarrow R^{n}\subset S^{n}\Longrightarrow \operatorname {P} (R^{n})\subset \operatorname {P} (S^{n})$). Thus, given some relations on $R,$ we get two D-structures; first, the D-structure on $R$ generated by the given relations, and second, the D-structure on $S$ generated by the same relations.
Lemma. Assume that $R$ is a definable subset of $S$ (according to the second D-structure). Then every relation on $R$ definable according to the first D-structure is also definable according to the second D-structure.
Denote the first D-structure by $D_{R}$ and the second by $D_{S}.$ We know that $R\in D_{S}.$ It follows (via set multiplication) that $R\times S\in D_{S},$ $R\times S\times S=R\times S^{2}\in D_{S},$ and so on; by induction, $R\times S^{n}\in D_{S}$ for all $n.$ Thus (via permutation), $S^{n}\times R\in D_{S}.$
In order to prove that $D_{R}\subset D_{S}$ we compare the five operations on relations (complement, union, permutation, set multiplication, projection) over $R$ (call them $R$-operations) and over $S$ ($S$-operations). We have to check that each $R$-operation applied to relations on $R$ that belong to $D_{S}$ gives again a relation (on $R$) that belongs to $D_{S}.$
For the union we have nothing to check, since the $R$-union of two relations is equal to their $S$-union. Similarly, we have nothing to check for permutation and projection. Only set multiplication and complement need some attention.
Set multiplication. The $R$-multiplication applied to $A\in \operatorname {P} (R^{n})\cap D_{S}$ gives $A\times R.$ We have $A\times R=(A\times S)\cap (S^{n}\times R)\in D_{S}$ since $A\times S\in D_{S}$ and $S^{n}\times R\in D_{S}.$
It follows (by induction) that $R^{n}\in D_{S}$ for all $n.$
Complement. The $R$-complement applied to $A\in \operatorname {P} (R^{n})\cap D_{S}$ gives $R^{n}\setminus A.$ We note that the $S$-complement $S^{n}\setminus A$ belongs to $D_{S}$ (since $A\in D_{S}$), thus $R^{n}\setminus A=R^{n}\cap (S^{n}\setminus A)\in D_{S}$ (since $R^{n}\in D_{S}$).
Now we are in position to prove definability of the set $\mathbb {N}$ of natural numbers. It is sufficient to prove definability of the set $B\subset \operatorname {P} (\mathbb {R} )$ of all sets $A\subset \mathbb {R}$ satisfying the two conditions $1\in A$ and $\forall x\in A\;(x+1\in A)$ (since the intersection of all these $A$ is $\mathbb {N}$). The complement $\operatorname {P} (\mathbb {R} )\setminus B=\{A\in \operatorname {P} (\mathbb {R} )\mid \exists x\in \mathbb {R} \;(x\in A\land x+1\notin A)\}$ is the projection of the intersection of two sets, $\{(A,x)\in \operatorname {P} (\mathbb {R} )\times \mathbb {R} \mid x\in A\}$ and $\{(A,x)\in \operatorname {P} (\mathbb {R} )\times \mathbb {R} \mid x+1\notin A\}.$ The former results from the (permuted) membership relation; the latter is the projection of the projection of $\{(A,x,y,z)\in \operatorname {P} (\mathbb {R} )\times \mathbb {R} ^{3}\mid y\in \{1\}\land x+y=z\land z\notin A\},$ this set being the intersection of three sets: first, $\operatorname {P} (\mathbb {R} )\times \mathbb {R} \times \{1\}\times \mathbb {R} ;$ second, $\operatorname {P} (\mathbb {R} )$ times the addition relation; third, $\operatorname {P} (\mathbb {R} )\times \mathbb {R} \times \mathbb {R} \times (\mathbb {R} \setminus A).$ It follows that $B$ is definable, whence $\textstyle \mathbb {N} =\cap _{A\in B}A$ is definable.
This is instructive. In order to formalize a definition of a set via its defining property, we have to deal with sets of sets, and more generally, relations between sets.
Using again the lemma above we see that all real numbers first-order definable in $(\mathbb {R} ;+,\times ,\mathbb {N} )$ are second-order definable. Section 3 gives many examples, including the five numbers ${\sqrt {2}},\varphi ,e,\pi ,\Omega ,$ discussed in Introduction. But second-order proofs of their definability are much more easy and natural.
The binary relation "$x\in \mathbb {N} \land y=x!$" is the sequence $(n!)_{n\in \mathbb {N} }$ of factorials, that is, the set $\{(1,1),(2,2),(3,6),(4,24),(5,120),\dots \}.$ It is definable, similarly to $\mathbb {N} ,$ since it is the least subset $A$ of $\mathbb {R} ^{2}$ such that $(1,1)\in A$ and $(x,y)\in A\Longrightarrow {\bigx+1,(x+1)y{\big )}\in A.$ Alternatively, it is definable since it is the only subset $A$ of $\mathbb {R} ^{2}$ with the following three properties: :
    $\forall (x,y)\in A\;\;x\in \mathbb {N} ,$
    $\forall x\in \mathbb {N} \;\;\exists !y\in \mathbb {R} \;\;(x,y)\in A,$
    $\forall (x,y)\in A\;\;{\bigx+1,(x+1)y{\big )}\in A.$
That is, the factorial is the only function $\mathbb {N} \to \mathbb {R}$ satisfying the recurrence relation $(n+1)!=(n+1)n!$ and the initial condition $1!=1.$
* Exercise 5.12. Partial sums of the series $\textstyle \sum _{n=0}^{\infty }{\frac {1}{n!}}$ are a definable sequence. Prove it.
* Exercise 5.13. The number $e$ is definable. Deduce it from the previous exercise.
In the first-order framework it is possible to treat many functions (for instance, the exponential function $x\mapsto e^{x},$ the sine and cosine functions $\sin ,\cos ,$ the exponential integral $\operatorname {Ei}$ and the sine integral $\operatorname {Si}$) and many relations between functions (for instance, derivative and antiderivative); arguments and values of these functions are arbitrary real numbers (not necessarily definable), but the functions are definable. Such notions as arbitrary functions (not necessarily definable), continuous functions (and their antiderivatives), differentiable functions (and their derivatives) need the second-order framework.
As was noted there, a function $f:\mathbb {R} \to \mathbb {R}$ is nothing but the binary relation "$f(x)=y$", that is, $A=\{(x,y)\mid f(x)=y\}.$ An arbitrary binary relation $A$ is such a function if and only if for every $x$ there exists one and only one $y$ such that $(x,y)\in A$ (existence and uniqueness). For functions defined on arbitrary subsets of the real line the condition is weaker: for every $x$ there exists at most one $y$ such that $(x,y)\in A$ (uniqueness).
* Exercise 5.14. (a) All $A\in \operatorname {P} (\mathbb {R} ^{2})$ satisfying the uniqueness condition are a definable subset of $\operatorname {P} (\mathbb {R} ^{2});$ (b) the same holds for the existence and uniqueness condition. Prove it.
* Exercise 5.15. All continuous functions $\mathbb {R} \to \mathbb {R}$ are a definable subset of $\operatorname {P} (\mathbb {R} ^{2}).$ Prove it.
* Exercise 5.16. All differentiable functions $\mathbb {R} \to \mathbb {R}$ are a definable subset of $\operatorname {P} (\mathbb {R} ^{2}).$ Prove it.
* Exercise 5.17. The binary relation "$f'=g$" is definable. That is, the set of all pairs $(f,g)$ of functions $\mathbb {R} \to \mathbb {R}$ such that $\forall x\in \mathbb {R} \;{\bigf'(x)=g(x){\big )}$ is a definable subset of $\operatorname {P} (\mathbb {R} ^{2})\times \operatorname {P} (\mathbb {R} ^{2})$ (in other words, definable binary relation on $\operatorname {P} (\mathbb {R} ^{2})$). Prove it.
Antiderivative can now be treated in full generality. In contrast, in the first-order framework it was treated via Riemann integral $\textstyle F(x)=F(0)+\lim _{n\to \infty }{\frac {x}{n}}\sum _{k=1}^{n}f({\frac {k}{n}}x)$ for continuous definable $f$ only. In particular, now the exponential function $x\mapsto e^{x}$ may be treated via $f(e^{x})-f(1)=x$ where $f'(x)={\tfrac {1}{x}}$ for $x>0;$ accordingly, the constant $e$ may be treated via $f(e)-f(1)=1.$ Alternatively, the exponential function may be treated via the differential equation $f'=f$ (and initial condition $f(0)=1$). Trigonometric functions $\sin ,\cos$ may be treated via the differential equation $f''=-f;$ accordingly, the constant $\pi$ may be treated as the least positive number such that $(f''=-f)\Longrightarrow {\bigf(\pi )=-f(0){\big )}.$ Or, alternatively, as $\textstyle \pi =4\int _{0}^{1}{\sqrt {1-x^{2}}}\,dx$ (via antiderivative).
This is instructive. In the second-order framework we may define functions (and infinite sequences) via their properties, irrespective of computability, Diophantine equations and other tricks of the first-order framework.
Nice; but what about second-order definable real numbers? Are they all first-order definable, or not? Even if obtained from complicated differential equations, they are computable, therefore, first-order definable in $(\mathbb {R} ;+,\times ,\mathbb {N} )$. Probably, our only chance to find a second-order definable but first-order undefinable number is, to prove that the explicit example of (first-order) undefinable number, given in Section 4, is second-order definable; and our only chance to prove this conjecture is, to formalize that section within the second-order framework.

## First-order undefinable but second-order definable

Recall the infinite sequence of relations $(A_{k})_{k=1}^{\infty }$ treated in Section 4. Is it second-order definable? Each $A_{k}$ belongs to the set $\mathbf {S}$ (from Section 5); their infinite sequence is a binary relation between $k$ and $A_{k}$ (namely, the set of pairs $\{(1,A_{1}),(2,A_{2}),\dots \}$), thus, a special case of a binary relation on $\mathbf {S} ;$ the question is, whether this relation is definable, or not. Like the sequence of factorials, it is defined by recursion. But factorials, being numbers, are first-order objects, which is why their sequence is second-order definable via its properties. In contrast, relations $A_{k}$ are second-order objects! Does it mean that third order is needed for defining their sequence by recursion?
True, the sequence of factorials is first-order definable (in $(\mathbb {R} ;+,\times ,\mathbb {N} )$) due to its computability, via Matiyasevich's theorem. Could something like that be invented for second-order objects? Probably not.
Yet, these obstacles are surmountable. The sequence of relations may be replaced with a single relation by a kind of currying (or rather, uncurrying); the disjoint union $\{1\}\times A_{1}\cup \{2\}\times A_{2}\cup \dots$ may be used instead of the set of pairs $\{(1,A_{1}),(2,A_{2}),\dots \}.$ Further, relations $A_{k}$ of different arities may be replaced with unary relations (subsets of the real line), since two real numbers may be encoded into a single real number via an appropriate definable injection $\mathbb {R} ^{2}\to \mathbb {R} ,$ and the same applies to three and more numbers (moreover, to infinitely many numbers, see Booij). In addition, tuples $(x_{1},\dots ,x_{n})$ may be replaced (whenever needed) by finite sequences $(x_{k})_{k=1}^{n}=\{(1,x_{1}),\dots ,(n,x_{n})\},$ which provides a richer assortment of definable relations.
The distinction between tuples and finite sequences is a technical subtlety that may be ignored in many contexts, but sometimes requires attention. It is tempting to say that an ordered pair $(a,b),$ a 2-tuple (that is, tuple of length 2), and a 2-sequence (that is, finite sequence of length 2) are just all the same. However, the 2-sequence is, by definition, a function on $\{1,2\},$ thus, the set of two ordered pairs $\{(1,a),(2,b)\}.$ Surely we cannot define an ordered pair to be a set of two other ordered pairs! If sequences are defined via functions, and functions are defined via pairs, then pairs must be defined before sequences, and cannot be the same as 2-sequences. See Wikipedia: sequence (formal definition), tuples (as nested ordered pairs), and ordered pair: Kuratowski's definition. For convenience we'll denote a finite sequence $(x_{k})_{k=1}^{n}=\{(1,x_{1}),\dots ,(n,x_{n})\}$ by $[x_{1},\dots ,x_{n}];$ it is similar to, but different from, the tuple $(x_{1},\dots ,x_{n}).$
We'll construct again, this time in the second-order framework, the sequence $(x_{1},x_{2},\dots )$ of real numbers that contains all numbers first-order definable in $(\mathbb {R} ;+,\times ,\mathbb {N} ),$ exactly the same sequence as in Section 4. To this end we'll construct first the disjoint union $\{1\}\times B_{1}\cup \{2\}\times B_{2}\cup \dots$ of unary relations $B_{k}$ on $\mathbb {R}$ similar to, but different from, relations $A_{1},A_{2},\dots$ (unary, binary, ...) constructed there (that exhaust all relations first-order definable in $(\mathbb {R} ;+,\times ,\mathbb {N} )$).
Before the unary relations $B_{k}$ we construct 4-tuples $b_{k}$ of integers (call them "instructions") imitating a program for a machine that computes $B_{k}.$ Similarly to a machine language instruction, each $b_{k}$ contains an operation code, address of the first operand, a parameter or address of the second operand (if applicable, otherwise 0), and in addition, the arity of $A_{k}.$
Recall Section 4. Three relations $A_{1},A_{2},A_{3}$ of arities 3,3,1 are given, and lead to the next 13 relations $A_{4},\dots ,A_{16}.$ In particular, $A_{4}$ is the complement of $A_{1}.$ Accordingly, we let $b_{4}=(1,1,0,3);$ here, operation code 1 means "complement...", operand address 1 means "...of $A_{1}$", the third number 0 is dummy, and the last number 3 means that the relation $A_{4}$ is ternary. Similarly, $b_{5}=(1,2,0,3)$ and $b_{6}=(1,3,0,1).$
Further, $A_{7}$ being the union of $A_{1}$ and $A_{2},$ we let $b_{7}=(2,1,2,3);$ operation code 2 means "union...", first operand address 1 means "...of $A_{1}$", second operand address 2 means "...and $A_{2}$", and again, 3 is the arity of $A_{7}.$
Further, $A_{8}$ being a permutation of $A_{1},$ we let $b_{8}=(3,1,1,3);$ operation code 3 means "permutation...", operand address 1 means "...of $A_{1}$", the parameter 1 means "swap 1 and 2", and 3 is the arity of $A_{8}.$ Similarly, $b_{9}=(3,1,2,3)$ (in $A_{1}$ swap 2 and 3), $b_{10}=(3,2,1,3)$ (in $A_{2}$ swap 1 and 2), $b_{11}=(3,2,2,3)$ (in $A_{2}$ swap 2 and 3).
Further, $A_{12}$ being $A_{1}\times \mathbb {R} ,$ we let $b_{12}=(4,1,0,4);$ operation code 4 means "set multiplication", 1 refers to the operand $A_{1},$ and 4 is the arity of $A_{12}.$ Similarly, $b_{13}=(4,2,0,4)$ and $b_{14}=(4,3,0,2).$
Further, $A_{15}$ being the projection of $A_{1},$ we let $b_{15}=(5,1,0,2);$ operation code 5 means "projection...", 1 means "...of $A_{1}$", and 2 means "...is binary". Similarly, $b_{16}=(5,2,0,2).$
This way, the finite sequence $[3,3,1]$ of natural numbers (interpreted as arities) leads to the finite sequence $[b_{4},\dots ,b_{16}]$ of 4-tuples (interpreted as instructions). Similarly, every finite sequence of natural numbers leads to the corresponding finite sequence of 4-tuples. The relation between these two finite sequences is definable; the proof is rather cumbersome, like a routine exercise in programming, but doable. Having this relation, we define an infinite sequence of 4-tuples $b_{k}$ (interpreted as the infinite "program") together with an infinite sequence $(k_{n})_{n=1}^{\infty }$ by the following defining properties:
   * $k_{1}=3;\;\;\;\forall n\in \mathbb {N} \;\;k_{n}<k_{n+1};$
   * $b_{1}=b_{2}=(0,0,0,3);\;b_{3}=(0,0,0,1);$
   * for every $n=1,2,\dots$ the finite sequence $[b_{k_{n}+1},\dots ,b_{k_{n+1}}]$ of 4-tuples corresponds (according to the definable relation treated above) to the finite sequence of the natural numbers that are the last (fourth) elements of the 4-tuples $b_{1},\dots ,b_{k_{n}}.$
In particular, $k_{1}=3,$ $k_{2}=16;$ the third property for $n=1$ states that $[b_{4},\dots ,b_{16}]$ corresponds to $[3,3,1].$ And for $n=2$ it states that $[b_{17},\dots ,b_{k_{3}}]$ corresponds to $[3,3,1,3,3,1,3,3,3,3,3,4,4,2,2,2].$ And so on.
The infinite program is ready. It could compute all relations $A_{k}$ if executed by a machine able to process relations of all arities. Is such machine available in our framework? The disjoint union $\{1\}\times A_{1}\cup \{2\}\times A_{2}\cup \dots$ could be used instead of the set of pairs $\{(1,A_{1}),(2,A_{2}),\dots \},$ but is not contained in (say) $\mathbb {R} ^{100}.$ True, in practice 100-ary relations do not occur in definitions; but we investigate definability in principle (rather than in practice). We encode all relation into unary relations as follows.
We recall the definable injective functions $W_{2}:(0,1)^{2}\to (0,1)$ and $W_{3}:(0,1)^{3}\to (0,1)$ treated in the end of Section 3. The same works for any $(0,1)^{m}.$ But we need to serve all dimensions $m$ by a single definable function. To this end we turn from sets $\mathbb {R} ^{m}$ of $m$-tuples $(x_{1},\dots ,x_{m})$ to sets, denote them $\mathbb {R} ^{[m]},$ of $m$-sequences $[x_{1},\dots ,x_{m}].$
* Exercise 6.1. The set of all finite sequences of real numbers, $\{[x_{1},\dots ,x_{m}]\mid m\in \mathbb {N} ,\,x_{1},\dots ,x_{m}\in \mathbb {R} \}=\cup _{m=1}^{\infty }\mathbb {R} ^{[m]}\subset \operatorname {P} (\mathbb {R} ^{2}),$ is definable, and the binary relation "length", $\{([x_{1},\dots ,x_{m}],m)\mid m\in \mathbb {N} ,\,x_{1},\dots ,x_{m}\in \mathbb {R} \}=\cup _{m=1}^{\infty }{\big\mathbb {R} ^{[m]}\times \{m\}{\big )}\subset \operatorname {P} (\mathbb {R} ^{2})\times \mathbb {R} ,$ on $\mathbf {S}$ is a definable function on that set. Prove it. Hint: start with the binary relation.
* Exercise 6.2. The function $E:([x_{1},\dots ,x_{m}],k)\mapsto x_{k}$ ("evaluation") is a definable real-valued function on the set $\cup _{m=1}^{\infty }{\big\mathbb {R} ^{[m]}\times \{1,\dots ,m\}{\big )}.$ Prove it. Hint: for $s=[x_{1},\dots ,x_{m}],$ $k\in \mathbb {N}$ and $x\in \mathbb {R}$ we have $E(s,k)=x\Longleftrightarrow (k,x)\in s\Longleftrightarrow \exists p{\bigp\in s\land (k,x)=p{\big )};$ use the two given relations on $\mathbf {S} ,$ membership and appendment (consider $n=1$ in the definition of appendment).
We choose a definable bijection $h:\mathbb {R} \to (0,1),$ for example, $\textstyle h(x)={\frac {1}{2}}(1+{\frac {x}{1+|x|}}),$ and define a function $W:\cup _{m=1}^{\infty }\mathbb {R} ^{[m]}\to \mathbb {R}$ by $W([x_{1},\dots ,x_{m}])=W_{m}{\bigh(x_{1}),\dots ,h(x_{m}){\big )}$ for all $m\in \mathbb {N}$ and $x_{1},\dots ,x_{m}\in \mathbb {R} .$
* Exercise 6.3. The function $W$ is definable. Prove it. Hint: for all $m\in \mathbb {N} ,$ $x_{1},\dots ,x_{m}\in \mathbb {R}$ and $z\in \mathbb {R}$ we have $W([x_{1},\dots ,x_{m}])=z\Longleftrightarrow W_{m}{\bigh(x_{1}),\dots ,h(x_{m}){\big )}=z\Longleftrightarrow \forall k\in \{1,\dots ,m\}\;\;\forall n\in \mathbb {N} \;\;D(m(n-1)+k,z)=D(n,h(x_{k}));$ that is, for all $m\in \mathbb {N} ,$ $s\in \mathbb {R} ^{[m]}$ and $z\in \mathbb {R}$ holds $W(s)=z\Longleftrightarrow \forall k\in \mathbb {N} \;\;{\bigk\leq m\Longrightarrow \forall n\in \mathbb {N} \;\;D(m(n-1)+k,z)=D(n,h(E(s,k)){\big )}.$
At last, we are in position to "execute the infinite program" $(b_{k})_{k=4}^{\infty },$ that is, to prove (second-order) definability of the set $B=\{1\}\times B_{1}\cup \{2\}\times B_{2}\cup \dots \subset \mathbb {R} ^{2},$ the disjoint union of unary relations $B_{k}$ on $\mathbb {R}$ that encode (according to $W$) the relations $A_{1},A_{2},\dots$ (that exhaust all relations first-order definable in $(\mathbb {R} ;+,\times ,\mathbb {N} )$).
We extract $B_{1}=\{c\in \mathbb {R} \mid (1,c)\in B\},$ decode the ternary relation $\{[x,y,z]\mid W([x,y,z])\in B_{1}\}=\{s\in \mathbb {R} ^{[3]}\mid W(s)\in B_{1}\}$ and require it to be (like $A_{1}$) the addition relation $\{[x,y,z]\mid x+y=z\}=\{s\in \mathbb {R} ^{[3]}\mid E(s,1)+E(s,2)=E(s,3)\}.$ That is, we require
    $\forall s\in \mathbb {R} ^{[3]}\;\;{\big(1,W(s))\in B\Longleftrightarrow E(s,1)+E(s,2)=E(s,3){\big )}.$
This condition fails to uniquely determine the set $B_{1},$ since the image of $\mathbb {R} ^{[3]}$ under $W$ is not the whole $\mathbb {R}$ (not even the whole $(0,1)$). We prevent irrelevant points by requiring in addition that $\forall x\in \mathbb {R} \;\;{\big(1,x)\in B\Longrightarrow \exists s\in \mathbb {R} ^{[3]}\;\;W(s)=x{\big )}.$ We do not repeat such reservation below.
Similarly, $B_{2}$ must encode the multiplication relation, and $B_{3}$ must encode the set of natural numbers:
    $\forall s\in \mathbb {R} ^{[3]}\;\;{\big(2,W(s))\in B\Longleftrightarrow E(s,1)E(s,2)=E(s,3){\big )};$
    $\forall s\in \mathbb {R} ^{[1]}\;\;{\big(3,W(s))\in B\Longleftrightarrow E(s,1)\in \mathbb {N} {\big )}.$
These first three requirements (above) are special. Other requirements should be formulated in general, like this: for every $k\geq 4,$ if the first element of $b_{k}$ (the operation code) equals 1, then (...), otherwise (...). But let us consider several examples before the general case.
According to the instruction $b_{4},$ the set $B_{4}$ must encode the complement of the set encoded by $B_{1}$:
    $\forall s\in \mathbb {R} ^{[3]}\;\;{\big(4,W(s))\in B\Longleftrightarrow (1,W(s))\notin B{\big )};$
similarly,
    $\forall s\in \mathbb {R} ^{[3]}\;\;{\big(5,W(s))\in B\Longleftrightarrow (2,W(s))\notin B{\big )};$
    $\forall s\in \mathbb {R} ^{[1]}\;\;{\big(6,W(s))\in B\Longleftrightarrow (3,W(s))\notin B{\big )}.$
According to the instruction $b_{7},$ the set $B_{7}$ must encode the union of the sets encoded by $B_{1}$ and $B_{2}$:
    $\forall s\in \mathbb {R} ^{[3]}\;\;{\big(7,W(s))\in B\Longleftrightarrow {\big(1,W(s))\in B\lor (2,W(s))\in B{\big )}{\big )}.$
According to the instruction $b_{8},$ the set $B_{8}$ must encode the permutation of the set encoded by $B_{1}$:
    $\forall [x,y,z]\in \mathbb {R} ^{[3]}\;\;{\big(8,W([x,y,z]))\in B\Longleftrightarrow (1,W([y,x,z]))\in B{\big )};$
similarly,
    $\forall [x,y,z]\in \mathbb {R} ^{[3]}\;\;{\big(9,W([x,y,z]))\in B\Longleftrightarrow (1,W([x,z,y]))\in B{\big )};$
    $\forall [x,y,z]\in \mathbb {R} ^{[3]}\;\;{\big(10,W([x,y,z]))\in B\Longleftrightarrow (2,W([y,x,z]))\in B{\big )};$
    $\forall [x,y,z]\in \mathbb {R} ^{[3]}\;\;{\big(11,W([x,y,z]))\in B\Longleftrightarrow (2,W([x,z,y]))\in B{\big )}.$
According to the instruction $b_{12},$ the set $B_{12}$ must encode the Cartesian product (by $\mathbb {R}$) of the set encoded by $B_{1}$:
    $\forall [x,y,z,u]\in \mathbb {R} ^{[4]}\;\;{\big(12,W([x,y,z,u]))\in B\Longleftrightarrow (1,W([x,y,z]))\in B{\big )};$
similarly,
    $\forall [x,y,z,u]\in \mathbb {R} ^{[4]}\;\;{\big(13,W([x,y,z,u]))\in B\Longleftrightarrow (2,W([x,y,z]))\in B{\big )};$
    $\forall [x,y]\in \mathbb {R} ^{[2]}\;\;{\big(14,W([x,y]))\in B\Longleftrightarrow (3,W([x]))\in B{\big )}.$
According to the instruction $b_{15},$ the set $B_{15}$ must encode the projection of the set encoded by $B_{1}$:
    $\forall [x,y]\in \mathbb {R} ^{[2]}\;\;{\big(15,W([x,y]))\in B\Longleftrightarrow \exists z\in \mathbb {R} \;\;(1,W([x,y,z]))\in B{\big )};$
similarly,
    $\forall [x,y]\in \mathbb {R} ^{[2]}\;\;{\big(16,W([x,y]))\in B\Longleftrightarrow \exists z\in \mathbb {R} \;\;(2,W([x,y,z]))\in B{\big )}.$
Toward the general formulation. We observe that the first two cases (complement and union) are unproblematic, while the other three cases (permutation, set multiplication, and projection) need some additional effort. The informal quantifiers like "$\forall [x,y,z]$" should be replaced with "$\forall s$", and the needed relations between finite sequences should be generalized (and formalized).
* Exercise 6.4. The binary relation of truncation $\{([x_{1},\dots ,x_{n+1}],[x_{1},\dots ,x_{n}])\mid n\in \mathbb {N} ,x_{1},\dots ,x_{n+1}\in \mathbb {R} \}$ is definable. Prove it. Hint: use the evaluation function.
* Exercise 6.5. The ternary relation of appendment $\{(x,[x_{1},\dots ,x_{n}],[x_{1},\dots ,x_{n+1}])\mid n\in \mathbb {N} ,x_{1},\dots ,x_{n},x\in \mathbb {R} \}$ is definable. Prove it.
Now the reader should be able to compose himself the general formulation. Also the additional condition that prevents irrelevant points should be stipulated. We conclude that the set $B=\{1\}\times B_{1}\cup \{2\}\times B_{2}\cup \dots \subset \mathbb {R} ^{2}$ is definable. For each $n$ we check, whether the relation encoded by $B_{n}$ is of the form $\{u\}$ for $u\in \mathbb {R}$ or not; if it is, we take $x_{n}=u,$ otherwise $x_{n}=0.$ We get the definable sequence that contains all numbers first-order definable in $(\mathbb {R} ;+,\times ,\mathbb {N} ).$ The next step (explained in Section 4), readily fomalized (via the function $D$ from Section 3), provides a definable number not contained in this sequence.

## Fast-growing sequences

Looking at decimal digits of two real numbers, for example,
    $x=0.62831\,85307\,17958\,64769\,25286\,76655\,90057\,68394\,33879\,87502\,11641\dots$
    $y=0.65465\,36707\,07977\,14379\,82924\,56246\,85835\,55692\,08082\,39542\,45575\dots$
can you see, which one is "more definable"? Probably not. (Answer: $\textstyle y={\sqrt {3/7}}$ is algebraic, therefore first-order definable in $(\mathbb {R} ;+,\times ),$ while $x=\pi /5$ is not.) Surprisingly, a kind of visualization of definability is possible in an interesting special case. The number
    $\sum _{n=0}^{\infty }10^{-3^{n}}=0.\mathbf {1} 0\mathbf {1} 00\,000\mathbf {1} 0\,00000\,00000\,00000\,0\mathbf {1} 000\,00000\,00000\,00000\dots$
is transcendental (that is, not algebraic). Moreover, every number of the form $\textstyle \sum _{n=1}^{\infty }10^{-k_{n}}$ with $k_{n}\in \mathbb {N} ,$ $\textstyle \lim _{n\to \infty }{\frac {k_{n+1}}{k_{n}}}>2$ is transcendental, which follows from Roth's theorem.
* Exercise 7.1. If $(k_{n})_{n=1}^{\infty }$ is a definable sequence of natural numbers, strictly increasing (that is, $k_{1}<k_{2}<\dots$), then the number $\textstyle \sum _{n=1}^{\infty }10^{-k_{n}}$ is definable. Prove it both in the framework of Section 3 (first-order definability in $(\mathbb {R} ;+,\times ,\mathbb {N} )$) and the framework of Section 5 (second-order definability). Hint: $\forall i\in \mathbb {N} \;\;{\bigD(i,x)=1\Longleftrightarrow \exists n\in \mathbb {N} \;\;i=k_{n}{\big )},$ and $\forall i\in \mathbb {N} \;\;D(i,x)\leq 1.$
* Exercise 7.2. If a number $\textstyle \sum _{n=1}^{\infty }10^{-k_{n}}$ with $k_{n}\in \mathbb {N} ,$ $k_{1}<k_{2}<\dots ,$ is definable, then the sequence $(k_{n})_{n=1}^{\infty }$ is definable. Prove it in the framework of Section 5 (second-order definability). Hint: for every $n,$ $k_{n+1}$ is the least $k$ such that $k>k_{n}\land D(k,x)=1.$
Note that the sequence $(k_{n})_{n=1}^{\infty }$ is defined by its property, which works only in the second-order framework. The first-order framework requires an explicit relation between $n$ and $k=k_{n}.$ Nevertheless, the claim of Exercise 7.2 holds also in the framework of Section 3.
It is easy to obtain the sequence $(n_{k})_{k=1}^{\infty }$ out of the sequence $(s_{k})_{k=1}^{\infty }$ of sums $\textstyle s_{k}=\sum _{i=1}^{k}\alpha _{i}$ of the digits $\alpha _{i}=D(i,x).$ The problem is that in the first-order framework we cannot define $(s_{k})_{k=1}^{\infty }$ just by the property "$\forall k\;\;s_{k+1}=s_{k}+\alpha _{k+1}$". Yet, this obstacle is surmountable; we can computably encode by natural numbers all tuples of natural numbers. (A similar trick was used in Section 6.)
Thus, in order to get a first-order undefinable but second-order definable real number, it is sufficient to find a first-order undefinable but second-order definable strictly increasing sequence of natural numbers. This can be made similarly to Sections 4, 6, replacing Cantor's diagonal argument with the following fact:
* For every sequence of sequences (of numbers) there exists a strictly increasing sequence (of numbers) that overtakes all the given sequences (of numbers).
The proof is immediate: take $\textstyle y_{n}=n+\max _{i,j\in \{1,\dots ,n\}}x_{i,j}$ where the number $x_{i,j}$ is the $i$-th element of the $j$-th given sequence; then clearly $y_{n}>x_{n,m}$ whenever $n\geq m.$
* Exercise 7.3. If the ternary relation $\{(i,j,x_{i,j})\mid i,j\in \mathbb {N} \}$ is definable, then the binary relation $\{(n,y_{n})\mid n\in \mathbb {N} \}$ is definable. Prove it. Hint: $y=y_{n}\Longleftrightarrow {\big(\exists i\;\,\exists j\;\;(i\leq n\land j\leq n\land y-n=x_{i,j}))\land (\forall i\;\,\forall j\;\;(i\leq n\land j\leq n\Longrightarrow y-n\geq x_{i,j})){\big )}.$
Reusing the construction of Section 6, we enumerate all sequences of natural numbers, definable in the framework of Section 3, by enumeration definable in the framework of Section 5, and then overtake them all by a strictly increasing sequence of natural numbers, definable in the framework of Section 5.
To fully appreciate the incredible growth rate of this sequence, we note that it overtakes all computable sequences, as well as an extremely fast-growing sequence $(M_{N})_{N=1}^{\infty }$ mentioned in Introduction. Recall $A_{N}$ and $A_{M,N}$ discussed there. In the framework of Section 3, the ternary relation $\{(M,N,A_{M,N})\mid M,N\in \mathbb {N} \},$ being recursively enumerable (therefore Diophantine) is definable; and the binary relation $\{(N,A_{N})\mid N\in \mathbb {N} \}$ is definable, since $a=A_{N}\Longleftrightarrow {\big(\exists M\in \mathbb {N} \;\;a=A_{M,N})\land (\forall M\in \mathbb {N} \;\;a\geq A_{M,N}){\big )}.$ Defining $M_{N}$ as the least $M$ such that $A_{M,N}=A_{N}$ we observe that the sequence $(M_{N})_{N=1}^{\infty }$ is definable (since $m=M_{N}\Longleftrightarrow (A_{m,N}=A_{N}\land A_{m-1,N}<A_{N})$). On the other hand, as noted in Introduction, this sequence cannot be bounded from above by a computable sequence.
More discussions of large numbers are available, see Scott Aaronson, John Baez and references therein. A quote from Aaronson (pages 11-12):
    You defy him to name a bigger number without invoking Turing machines or some equivalent. And as he ponders this challenge, the power of the Turing machine concept dawns on him.
Definability could be mentioned here along with Turing machines.

## Definable but uncertain

Two sets are called equinumerous if there exists a one-to-one correspondence between them. In particular, two subsets $A,B$ of $\mathbb {R}$ are equinumerous if (and only if) $\exists f\in \operatorname {P} (\mathbb {R} ^{2})\;\;{\bigf\subset A\times B\land (\forall x\in A\;\,\exists !y\in B\;\;(x,y)\in f)\land (\forall y\in B\;\,\exists !x\in A\;\;(x,y)\in f){\big )}.$ We see that the binary relation "equinumerosity" on $\operatorname {P} (\mathbb {R} )$ is second-order definable.
Some subsets of $\mathbb {R}$ are equinumerous to $\{1,\dots ,n\}$ for some $n\in \mathbb {N}$ (these are finite sets). Others may be equinumerous to $\mathbb {N}$ (these are called countable, or countably infinite), or $\mathbb {R}$ (these are called sets of cardinality continuum), or... what else? Can a set be more than countable but less than continuum?
This seemingly innocent question is one of the most famous in set theory, the first among the Hilbert's problems. The answer was expected to be "no such sets", which is the continuum hypothesis (CH); Georg Cantor tried hard to prove it, in vain; Kurt Gödel proved in 1940 that CH cannot be disproved within the axiomatic set theory called ZFC, and hoped that new axioms will disprove it; Paul Cohen proved in 1963 that CH cannot be proved within ZFC, and felt intuitively that it is obviously false. Nowadays some experts hope to find "the missing axiom", others argue that this is hopeless.
A wonder: million published theorems in all branches of mathematics formally are deduced from the 9 axioms of ZFC; they answer, affirmatively or negatively, million mathematical questions; some questions remain open, waiting for solutions in the ZFC framework; but the continuum hypothesis is an exception!
Back to definability. Consider the set $Z$ of all subsets of $\mathbb {R}$ that are more than countable but less than continuum. We do not know, whether $Z$ is empty or not, but anyway, we know that $Z$ is second-order definable. We define a number $z$ by the following property:
    $(z=0\;\land \;\exists A\;\;A\in Z)\;\;\lor \;\;(z=1\;\land \;\forall A\;\;A\notin Z).$
That is, $z$ is $1$ if CH is true, and $0$ otherwise. This is a valid definition; $z$ is second-order definable; but we cannot know, is it $0$ or $1.$ Each one of the two equalities, $z=0$ and $z=1,$ could be added (separately!) to the axioms of ZFC without contradiction (assuming, of course, that ZFC itself is consistent); according to the model theory, it means existence of two models of ZFC, one with $z=0,$ the other with $z=1.$ In this sense, $z$ is model dependent.
Is $z$ computable? Yes, it is, just because $0$ and $1$ are computable numbers, and $z$ is one of these. You might feel bothered, even outraged, but this is a valid argument. Compare it with the well-known proof that an irrational elevated to an irrational power may be rational: ${\big{\sqrt {2}}{\big )}^{\sqrt {2}}$ is either rational (which gives the needed example), or irrational, in which case ${\big{\sqrt {2}}^{\sqrt {2}}{\big )}^{\sqrt {2}}={\big{\sqrt {2}}{\big )}^{2}=2$ gives the needed example. Seeing this, some retreat to intuitionism, but almost all mathematics is classical, it accepts the law of excluded middle and cannot arbitrarily disallow it in some cases.
So, what is the algorithm for computing $z?$ Surely the definition of an algorithm disallows such condition as "if CH holds, then" within an algorithm. However, it cannot disallow a model-dependent algorithm $A=\,($if CH holds then $A_{1}$ else $A_{0}),$ where $A_{1}$ is a (trivial) algorithm that computes the number 1, and $A_{0}$ computes $0.$ The conditioning "if CH holds, then" is allowed outside the algorithms (similarly, the conditioning "if ${\big{\sqrt {2}}{\big )}^{\sqrt {2}}$ is rational, then" is allowed outside the formulas). If you are unhappy with the affirmative answer to the question "is $z$ computable?", ask a different question: "is $z$ computable by a model-independent algorithm?" The answer is negative (see below).
On the other hand, definability of the number $z$ is established by a kind of "generalized algorithm" able to process second-order objects (real numbers, relations between these, and relations between relations; recall the "program" $(b_{k})_{k}$ in Section 6). This "generalized algorithm" is model independent, but its output is model dependent.
In contrast, the number $\pi$ is model independent; for every rational number $r$ one of the two inequalities $\pi <r,$ $\pi >r$ is provable in ZFC. The same applies to the numbers ${\sqrt {2}},\varphi ,e$ discussed in Introduction, since each of these numbers can be computed by a model independent algorithm. If a number is computable by a model-independent algorithm, then this number is both model independent and computable.
What about Chaitin's constant $\Omega ?$ It is limit computable by a model-independent algorithm. Also, it is first-order definable (in $(\mathbb {R} ;+,\times ,\mathbb {N} )$), and the first-order framework disallows questions (such as CH) about arbitrary sets of numbers, thus, one might hope that $\Omega$ is model independent. But it is not!
Here we need one more fact about $\Omega .$ The sequence $(A_{N})_{N=1}^{\infty }$ of its binary digits is not just uncomputable, that is, the set $\{N\mid A_{N}=1\}$ is not just non-recursive, but moreover, this set belongs to "the most important class of recursively enumerable sets which are not recursive", the so-called creative sets, or equivalently, complete recursively enumerable sets. Basically, it means that this sequence contains answers to all questions of the form "does the natural number $n$ belong to the recursively enumerable set $A?$" And in particular(!), all questions of the form "can the statement $S$ be deduced from the theory ZFC?", since in ZFC (and many other formal theories as well) the set of (numbers of) provable statements is recursively enumerable. Taking $S$ to be the negation of something provable (for instance, $0\neq 0$) we get the question "is ZFC consistent?" answered by one of the binary digits $A_{N}$ of $\Omega ,$ whose number $N_{\mathrm {ZFC} }$ can be computed; if this $A_{N_{\mathrm {ZFC} }}$ is $0,$ then ZFC is consistent; if $A_{N_{\mathrm {ZFC} }}$ is $1,$ then ZFC is inconsistent. However, by a famous Gödel theorem, this question cannot be answered by ZFC itself! Assuming that ZFC is consistent we have $A_{N_{\mathrm {ZFC} }}=0,$ but this truth is not provable (nor refutable) in ZFC. (In fact, it is provable in ZFC+large cardinal axiom.) Therefore, in some models of ZFC we have $A_{N_{\mathrm {ZFC} }}=0,$ in others $A_{N_{\text{ZFC}}}=1,$ which shows that $\Omega$ is model dependent. Moreover, there are versions of $\Omega$ such that every binary digit of $\Omega$ is model dependent,.
Yet the (first-order) case of $A_{N_{\mathrm {ZFC} }}$ is less bothering that the (second-order) case of $z,$ since we still believe that $A_{N_{\mathrm {ZFC} }}=0.$ Adding the axiom "$A_{N_{\mathrm {ZFC} }}=1$", that is, "ZFC is inconsistent" to ZFC we get a theory that is consistent (assuming, of course, that ZFC itself is consistent) but not $\omega$-consistent. This strange theory claims existence of a proof of "$0\neq 0$" in ZFC, of a finite length $N_{0\neq 0},$ this length being a natural number. And nevertheless, this theory claims that $N_{0\neq 0}>1,$ $N_{0\neq 0}>2,$ $N_{0\neq 0}>3,$ and so on, endlessly. (Beware of the elusive distinction between two phrases, "for each $n$ it claims that $N_{0\neq 0}>n$" and "it claims that $\,\forall n\;\,N_{0\neq 0}>n$".) Every model of this strange theory contains more natural numbers than the usual $1,2,3,\dots \,$ In mathematical logic we must carefully distinguish between two concepts of a natural number, one belonging to a theory, the other to its metatheory. In particular, when saying "for every rational number $r$ one of the two inequalities $\pi <r,$ $\pi >r$ is provable in ZFC" we should mean that $|r|$ is the ratio of two metatheoretical natural numbers.
Using as binary digits an infinite sequence of independent "yes/no" parameters of models of ZFC we get a model dependent definable number $w$ whose possible values are all real numbers. More exactly, the following holds in the metatheory: for every real number $x$ there exists a model of ZFC (assuming, of course, that ZFC itself is consistent) whose natural numbers (and therefore rational numbers) are the same as in the metatheory, and for every rational number $r$ the inequality $w>r$ holds in the model if and only if $x>r.$ Is this possible in the first or second order framework? I do not know. But in the third order framework this is possible, as suggested by the generalized continuum hypothesis.

## Higher orders; set theory

Recall the transition from first-order definability to second-order definability (Section 5); from the set $\mathbb {R}$ of all real numbers to the set $\mathbf {S}$ of all tuples and relations over $\mathbb {R} ,$ and the D-structure on $\mathbf {S}$ generated by the D-structure on $\mathbb {R}$ and two relations, membership and appendment, on $\mathbf {S} .$ The next step suggests itself: the set $\mathbf {T} ={\big\mathbf {S} \cup \mathbf {S} ^{2}\cup \mathbf {S} ^{3}\cup \dots {\big )}\cup {\big\operatorname {P} (\mathbf {S} )\cup \operatorname {P} (\mathbf {S} ^{2})\cup \operatorname {P} (\mathbf {S} ^{3})\cup \dots {\big )}$ of all tuples and relations over $\mathbf {S} ,$ with the D-structure on $\mathbf {T}$ generated by the D-structure on $\mathbf {S}$ and two relations, membership and appendment, on $\mathbf {T} ,$ formalizes third-order definability. This way we may introduce infinitely many orders of definability, $\mathbb {R} \subset \mathbf {S} \subset \mathbf {T} \subset \dots ,$ or $T_{1}\subset T_{2}\subset T_{3}\subset \dots$ where $T_{1}=\mathbb {R} ,$ $T_{2}=\mathbf {S} ,$ $T_{3}=\mathbf {T}$ and so on. Similarly to Section 6 we can prove that each order brings new definable real numbers (and new, faster-growing sequences of natural numbers, recall Section 7).
But this is only the tip of the iceberg. The union of all these sets, $T_{\infty }=T_{1}\cup T_{2}\cup \dots ,$ endowed with the D-structure generated by the given D-structures on all $T_{n},$ formalizes a new, transfinte order of definability, and starts a new sequence of orders. Should we denote them by $T_{\infty +1},T_{\infty +2},\dots \,$? What about $T_{\infty +\infty }\,$? How high is this hierarchy? Is it countable, or not?
Transfinite hierarchies are investigated by set theory (see Wikipedia:Set theory, and Section "Some ontology" there). Surprisingly, set theory does not need the field $\mathbb {R}$ of real numbers as the starting point; not even the set $\mathbb {N}$ of natural numbers. A wonder: set theory is able to start from nothing and get everything!
The cumulative hierarchy starts with the empty set, denoted by $\emptyset$ or $\{\},$ the number $0$ defined as just another name of the empty set, and stage zero, denoted by $V_{0}$ and defined as still another name of the empty set. On the next step we consider the set $\operatorname {P} (V_{0})$ of all subsets of $V_{0}$. There is only one subset of $\emptyset ,$ the empty set itself, thus $\operatorname {P} (V_{0})=\operatorname {P} (\emptyset )=\{\emptyset \}=\{0\}$; we define the number $1$ to be $\{0\},$ and stage one $V_{1}=\operatorname {P} (V_{0})$. Similarly, $\operatorname {P} (V_{1})$ is the two-element set $2=\{\emptyset ,\{\emptyset \}\}=\{0,1\}=V_{2},$ stage two. Somewhat dissimilarly, $\operatorname {P} (V_{2})$ is the four-element set $\{\emptyset ,\{0\},\{1\},\{0,1\}\}=\{0,1,\{1\},2\},$ its three-element subset $\{0,1,2\}$ is (by definition) the number $3,$ and $V_{3}=\operatorname {P} (V_{2})$ is the third stage. More generally, $n+1=\{0,1,\dots ,n\}\subset \operatorname {P} (V_{n})=V_{n+1}$ for $n=1,2,3,4,\dots$. Thus, $V_{n}$ is a set of $\underbrace {2^{2^{\cdot ^{\cdot ^{2}}}}} _{n-1}$ elements(!), while $n$ is its subset of $n$ elements.
* Exercise 9.1. $V_{0}\subset V_{1}\subset V_{2}\subset \dots \,$ Prove it. Hint: $A\subset B\Longrightarrow \operatorname {P} (A)\subset \operatorname {P} (B)$.
Here we face crossroads. One way is to treat the union $V_{0}\cup V_{1}\cup V_{2}\cup \dots$ of all $V_{n}$ as the class $V$ of all sets (a proper class, not a set). This way leads to the finite set theory (see Takahashi, Baratella and Ferro, and others; see also Wikipedia:General set theory). The other way is to treat the union $V_{0}\cup V_{1}\cup V_{2}\cup \dots$ of all $V_{n}$ as an infinite set, its infinite subset $\omega =\{0,1,2,\dots \}$ as the first transfinite ordinal number, and $V_{\omega }=\cup _{n=0}^{\infty }V_{n}$ as the first transfinite stage of the cumulative hierarchy. This way leads to the set theory widely accepted by the mainstream mathematics.

### Finite set theory

The finite set theory is equivalent (in some sense) to arithmetic (Kaye and Wong); consistency of these theories is nearly indubitable, in contrast to the (full) set theory whose axiom of infinity says basically that the class $V_{\omega }$ is a set.
In the finite set theory, the class $\mathbb {N} \cup \{0\}$ of numbers $0,1,2,\dots$ may be defined as the class of all sets $x$ such that $x$ is transitive, that is, $\forall y\;\forall z\;\,(y\in x\land z\in y\,\,\Longrightarrow \,\,z\in x),$ and $x$ is totally ordered by membership, that is, $\forall y\;\forall z\;\,{\big(y\in x\land z\in x)\,\,\Longrightarrow \,\,(y=z\lor y\in z\lor z\in y){\big )}.$ Adding the condition that $x$ is non-empty, that is, $\exists y\;\,y\in x,$ we get the class $\mathbb {N}$ of natural numbers $\{1,2,\dots \}.$
Each set $x$ is equinumerous to one and only one $n\in \mathbb {N} \cup \{0\}$; as before, "equinumerous" means existence of a set $f$ such that $f\subset x\times n,$ that is, $\forall p\in f\;\exists y\in x\;\exists m\in n\;\,p=(y,m)$ where $(y,m)=\{\{y\},\{y,m\}\}$), and $f$ is a one-to-one correspondence between $x$ and $n,$ that is, $(\forall y\in x\;\,\exists !m\in n\;\;(y,m)\in f)\land (\forall m\in n\;\,\exists !y\in x\;\;(y,m)\in f).$ In this case we say that $n$ is the number of members of $x.$
The sum $m+n$ of $m,n\in \mathbb {N} \cup \{0\}$ may be defined as the number of members in the disjoint union $\{1\}\times m\cup \{2\}\times n.$ The product $mn$ of $m,n\in \mathbb {N} \cup \{0\}$ may be defined as the number of members in the set product $m\times n=\{(k,\ell )\mid k\in m,\ell \in n\}.$ The power $m^{n}$ for $m,n\in \mathbb {N} \cup \{0\}$ may be defined as the number of functions from $n$ to $m$ (that is, from $\{0,\dots ,n-1\}$ to $\{0,\dots ,m-1\}$).
A rational number could be defined as an equivalence class of triples $(p,n,q)$ of natural numbers $p,n,q\in \mathbb {N}$ w.r.t. such equivalence relation: $(p_{1},n_{1},q_{1})\sim (p_{2},n_{2},q_{2})$ when $p_{1}q_{2}+n_{2}q_{1}=p_{2}q_{1}+n_{1}q_{2}$ (informally this means that $\textstyle {\frac {p_{1}-n_{1}}{q_{1}}}={\frac {p_{2}-n_{2}}{q_{2}}},$ of course). However, in this case we cannot introduce the class of rational numbers (since a proper class cannot be member of a class). Thus, it is better to choose a single element in each equivalence class, and define a rational number as a triple $(p,n,q)$ of numbers $p,n,q\in \mathbb {N} \cup \{0\}$ such that $q\neq 0,$ at least one of the two numbers $p,n$ is $0,$ and the other is coprime to $q$ (or $0$). We get the class $\mathbb {Q}$ of all rational numbers. And, in order to treat natural numbers as a special case of rational numbers, we identify each natural number $n\in \mathbb {N}$ with the corresponding rational number $(n,0,1)\in \mathbb {Q} .$
Back to definability. We want to endow the class $V$ (of all sets in the finite set theory) with the D-structure generated by the membership relation $\{(x,y)\mid x\in y\}.$ True, the notion of a D-structure on $V$ transcends the finite set theory, since a collection of classes is neither a set nor a class. But still, in the metatheory, a class may be called definable when it is obtainable from the membership relation by the 5 operations (complement, union, permutation, Cartesian product, projection) introduced in Section 2 for relations on the real line $\mathbb {R}$ in particular, and arbitrary set in general. However, a pair of real numbers is not a real number, while a pair of sets is a set! That is, $\mathbb {R}$ and $\mathbb {R} ^{2}$ are disjoint; in contrast, $V^{2}\subset V.$ The order relation "$x<y$" between real numbers $x,y\in \mathbb {R}$ is a subset of $\mathbb {R} ^{2}$ (rather than $\mathbb {R}$). But what about the membership relation "$x\in y$" between sets $x,y\in V\,$? Should we treat it as a subclass of $V$ or $V^{2}\,$?
True, the plane $\mathbb {R} ^{2}$ is not a subset of the line $\mathbb {R} ,$ but it can be injected into $\mathbb {R}$ by a definable function; recall the injection $W_{2}:\mathbb {R} ^{2}\to \mathbb {R}$ introduced in the end of Section 3 and used in Section 6 for encoding binary relations by unary relations. For example, the binary relation $\{(x,y)\mid x<y\}$ is encoded by the unary relation $\{W_{2}(x,y)\mid x<y\}.$
Here is a general lemma basically applicable in both situations, $W_{2}:\mathbb {R} ^{2}\to \mathbb {R}$ and $V^{2}\subset V$ (though, in the latter case it needs some adaptation to the proper class).
Lemma. Let $R$ be a set endowed with a D-structure, and $f:R^{2}\to R$ a definable injection. Then a binary relation $A\subset R^{2}$ is definable if and only if the unary relation $f(A)\subset R$ is definable.
* Exercise 9.2. Prove this lemma. Hint: "If": $(x,y)\in A\Longleftrightarrow \exists z\;\,{\bigf(x,y)=z\land z\in f(A){\big )}.$ "Only if": $z\in f(A)\Longleftrightarrow \exists x,y\;\,{\bigf(x,y)=z\land (x,y)\in A{\big )}.$
* Exercise 9.3. All relations on $V$ mentioned above are definable classes. Prove it. Hint: the equality relation "$x=y$" is "$\forall z\;\,(z\in x\Longleftrightarrow z\in y)$"; the relation "$\{x\}=y$" is "$\forall z\;\,(z=x\Longleftrightarrow z\in y)$"; the ternary relation "$\{x,y\}=z$" is "$\forall u\;\,{\big(u=x\lor u=y)\Longleftrightarrow u\in z{\big )}$"; the ternary relation "$(x,y)=z$" is "$\exists u,v,w\;\,(\{x\}=u\land \{x,y\}=v\land \{u,v\}=z)$"; the lemma applies; further, $\mathbb {N} \cup \{0\}$ is the intersection of the class of transitive sets and the class of sets totally ordered by membership, etc. etc., up to "$(p_{1},n_{1},q_{1})\sim (p_{2},n_{2},q_{2})$".
Similarly, the basic relations between rational numbers are definable classes.
Real numbers cannot be represented by finite sets, but can be represented by classes (of finite sets) in several ways. In the spirit of Dedekind cuts we treat a real number as the class of all rational numbers smaller than this real number. More formally: a real number is a subclass $A$ of $\mathbb {Q}$ such that
* $A$ is a lower class; that is, $\forall a,b\in \mathbb {Q} \;\,(a<b\land b\in A\,\,\Longrightarrow \,\,a\in A);$
* $A$ contains no greatest element; that is $\forall a\in A\;\exists b\in A\;\,a<b;$
* $A$ is not empty, and not the whole $\mathbb {Q} ;$ that is, $\exists a\in \mathbb {Q} \;\,a\in A$ and $\exists b\in \mathbb {Q} \;\,b\notin A.$
And, in order to treat rational numbers as a special case of real numbers, we identify each rational number $a\in \mathbb {Q}$ with the corresponding real number $\{b\in \mathbb {Q} \mid b<a\}\in \mathbb {R} .$
Some examples. The real number ${\sqrt {2}}$ ("the Pythagoras' constant") is the class of all rational numbers $a$ such that $a<0\,\lor \,a^{2}<2.$ The golden mean $\varphi$ is the class of all rational numbers $a$ such that $a\leq 0\,\lor \,0<a<1+{\tfrac {1}{a}}.$ The real number $e$ is the class of all rational numbers $a$ such that $\exists n\in \mathbb {N} \;\,{\tfrac {(n+1)^{n}}{n^{n}}}>a.$
Can we define $e$ via factorials, as in Exercise 5.13? We can define factorials without recursion; $n!$ is the number of bijective functions from $n$ to itself (that is, from $\{0,\dots ,n-1\}$ to itself; in other words, permutations). But still, we need recursion when defining partial sums of the series $\textstyle \sum _{n=1}^{\infty }{\frac {1}{n!}}$ for $e.$ Generally, an infinite sequence of rational numbers $(s_{n})_{n=1}^{\infty }$ is the class of pairs $(n,s_{n}).$ Specifically, the sequence of partial sums of $\textstyle \sum _{n}a_{n}$ is the class $S$ of pairs such that $\forall n\in \mathbb {N} \;\forall b\in \mathbb {Q} \;\,{\big(n-1,b)\in A\,\,\Longrightarrow \,\,(n,b+a_{n})\in A{\big )}$ (and $\forall n\in \mathbb {N} \;\exists !b\in \mathbb {Q} \;\,(n-1,b)\in A,$ and $(0,0)\in A,$ of course). But we cannot define a class by its property! We deal with a D-structure on $V.$ A class must be defined by a common property of all its members, not a property of the class. Otherwise it would be second-order definability in $V$ (thus, a transfinite level of the cumulative hierarchy). Can we formulate the appropriate property of a pair $(n,s_{n})$ alone? Yes, we can. Here is the property: there exists a function $f:\{0,\dots ,n\}\to \mathbb {Q}$ such that $f(0)=0$ and $\forall k\in \{1,\dots ,n\}\;\,f(k)=f(k-1)+a_{k}.$ The clue is that a finite segment of the infinite sequence (of partial sums) is enough.
Similarly, an infinite sequence $(x_{n})_{n=0}^{\infty }$ of sets $x_{n}\in V$ is the class of pairs $(n,x_{n}),$ and it can be defined recursively, by a recurrence relation of the form $\forall n\in \mathbb {N} \;\,(x_{n-1},x_{n})\in B$ where $B$ is a definable class of pairs, and an initial condition for $x_{0}.$ (Use finite segments of the infinite sequence.)
Thus, every computable sequence of natural (or rational) numbers is a definable class of pairs. No need to use Diophantine sets. Rather, for every Turing machine, all possible "complete configurations" (called also "situations" and "instantaneous descriptions") may be treated as elements of a subclass of $V,$ and the rule of transition from one complete configuration to the next complete configuration may be treated as a definable class of pairs (of complete configurations).
It follows that every computable real number, and moreover, every limit computable real number is definable. Having a convergent definable sequence $(a_{n})_{n}$ of rational numbers, we define its limit as the class of rational numbers $b$ such that $\exists n\;\forall k\;\,(k>n\,\,\Longrightarrow \,\,a_{k}>b+{\tfrac {1}{n}}).$ In particular, $\pi$ (the Archimedes' constant) and $\Omega$ (the Chaitin's constant) are definable.
A sequence $(x_{n})_{n}$ of real numbers cannot be treated as the class of pairs $(n,x_{n})$ (since $x_{n}$ is not a set), but can be treated as the disjoint union $\{1\}\times x_{1}\cup \{2\}\times x_{2}\cup \dots ,$ that is, the set of pairs $(n,a)$ where $a\in x_{n}$ (recall a similar workaround in Section 6). Also, a continuous function $f:\mathbb {R} \to \mathbb {R}$ cannot be treated as the class of pairs ${\bigx,f(x){\big )},$ but can be treated as the class of pairs $(a,b)$ of rational numbers such that $b<f(a).$ Such precautions allow us to translate basic calculus into the language of finite set theory. However, arbitrary functions $\mathbb {R} \to \mathbb {R}$ and arbitrary subsets of $\mathbb {R}$ are unavailable. Thus, the continuum hypothesis makes no sense. Also, transferring measure theory and related topics (especially, theory of random processes) to this ground (as far as possible) requires effort and ingenuity.
The finite set theory can provide a reliable alternative airfield for much (maybe most) of the mathematical results especially important for applications, in case of catastrophic developments in the transfinite hierarchy. Several possible such "alternative airfields" are examined by mathematicians and philosophers,,,,,,.
Informally, the finite set theory uses (for infinite classes) the idea of potential infinity, prevalent before Georg Cantor, while the transfinite hierarchy uses the idea of actual (completed) infinity, prevalent after Georg Cantor.

### Transfinite hierarchy

The transfinite part of the cumulative hierarchy begins with the first transfinite ordinal number $\omega =\{0,1,2,\dots \}$ (an infinite set) and the first transfinite stage $V_{\omega }=\cup _{n\in \omega }V_{n}$ of the hierarchy (an infinite set; $\omega \subset V_{\omega }$). Note that $x\in V_{\omega }$ implies $\operatorname {P} (x)\in V_{\omega },$ but $x\subset V_{\omega }$ implies rather $\operatorname {P} (x)\subset V_{\omega +1}.$ We continue as before:
    $\omega +1=\omega \cup \{\omega \}=\{0,1,2,\dots \}\cup \{\omega \}\subset \operatorname {P} (V_{\omega })=V_{\omega +1}\,,$
    $\omega +2=(\omega +1)\cup \{\omega +1\}=\{0,1,2,\dots \}\cup \{\omega ,\omega +1\}\subset \operatorname {P} (V_{\omega +1})=V_{\omega +2}$
and so on; we get the stages $V_{\omega +n}$ for all finite $n,$ and again, $V_{\omega +n}\subset V_{\omega +n+1}.$ The union of all these stages is the stage $V_{2\omega }=V_{\omega }\cup V_{\omega +1}\cup V_{\omega +2}\cup \dots =\cup _{\alpha <2\omega }V_{\alpha }$ (still an infinite set), and $2\omega =\{0,1,2,\dots \}\cup \{\omega ,\omega +1,\omega +2,\dots \}$ (an infinite subset of $V_{2\omega }$). Again, $x\in V_{2\omega }$ implies $\operatorname {P} (x)\in V_{2\omega }.$ Let us dwell here before climbing higher.
Encoding of various mathematical objects by sets is somewhat arbitrary (see Wikipedia:Equivalent definitions of mathematical structures; likewise, an image may be encoded by files of type jpeg, gif, png etc.), and their places in the hierarchy vary accordingly. Treating a pair $(a,b)$ as $\{\{a\},\{a,b\}\}$ and a triple $(a,b,c)$ as ${\big(a,b),c{\big )}$ we get (for $0<n<\omega$)
    $\forall a,b\in V_{n}\;\,(a,b)\in V_{n+2}\,;\qquad \forall a,b,c\in V_{n}\;\,(a,b,c)\in V_{n+4}\,;$
    $\forall a,b\in V_{\omega }\;\,(a,b)\in V_{\omega }\,;\qquad \quad \forall a,b,c\in V_{\omega }\;\,(a,b,c)\in V_{\omega }\,;$
    $\forall a,b\in V_{\omega +n}\;\,(a,b)\in V_{\omega +n+2}\,;\quad \forall a,b,c\in V_{\omega +n}\;\,(a,b,c)\in V_{\omega +n+4}\,.$
Treating the set $\mathbb {N}$ of natural numbers as $\omega \setminus \{0\}$ we get $\mathbb {N} \subset V_{\omega },$ $\mathbb {N} \in V_{\omega +1}.$ Treating a rational number as an equivalence class of triples $(p,n,q)$ of natural numbers we get $\mathbb {Q} \subset V_{\omega +1},$ $\mathbb {Q} \in V_{\omega +2},$ where $\mathbb {Q}$ is the set of all rational numbers. Alternatively, treating an integer as an equivalence class of pairs of natural numbers, and a rational number as an equivalence class of pairs of integers, we get
    $\mathbb {Z} \subset V_{\omega +1}\,,\;\;\mathbb {Z} \in V_{\omega +2}\,;\quad \mathbb {Q} \subset V_{\omega +4}\,,\;\;\mathbb {Q} \in V_{\omega +5}\,;$
here $\mathbb {Z}$ is the set of all integers. Treating a real number as a set of rational numbers we get
    $\mathbb {R} \subset V_{\omega +n}\,,\quad \mathbb {R} \in V_{\omega +n+1}\,,$
where $\mathbb {R}$ is the set of all real numbers, and $n$ is such that $\mathbb {Q} \in V_{\omega +n};$ be it $2$ or $5,$ anyway, it follows that $\mathbb {R} \in V_{2\omega }.$
Taking into account that generally $A\in V_{2\omega }\,\,\Longrightarrow \,\,\operatorname {P} (A)\in V_{2\omega },$ and $A,B\in V_{2\omega }\,\,\Longrightarrow \,\,A\times B\in V_{2\omega }$ (since $A,B\subset V_{\omega +n}\,\,\Longrightarrow \,\,A\times B\subset V_{\omega +n+2}$), we get $\mathbb {R} ^{n}\in V_{2\omega }$ and $\operatorname {P} (\mathbb {R} ^{n})\in V_{2\omega }$ for all $n\in \mathbb {N} .$ Every subset of $\mathbb {R} ^{n}$ belongs to $V_{2\omega },$ and every set of subsets of $\mathbb {R} ^{n}$ belongs to $V_{2\omega };$ in particular, the σ-algebra of all Lebesgue measurable subsets of $\mathbb {R} ^{n}$ belongs to $V_{2\omega }.$ Also, every function $\mathbb {R} ^{n}\to \mathbb {R} ^{m}$ belongs to $V_{2\omega },$ and every set of such functions belongs to $V_{2\omega };$ in particular, every equivalence class (under the relation of equality almost everywhere) of Lebesgue measurable functions $\mathbb {R} ^{n}\to \mathbb {R} ^{m}$ belongs to $V_{2\omega },$ and the set $L^{1}(\mathbb {R} ^{n})$ of all equivalence classes of Lebesgue integrable functions $\mathbb {R} ^{n}\to \mathbb {R}$ belongs to $V_{2\omega }.$ And the set of all bounded linear operators $L^{1}(\mathbb {R} ^{n})\to L^{1}(\mathbb {R} ^{n})$ belongs to $V_{2\omega }.$ Clearly, a lot of notable mathematical objects belong to $V_{2\omega }.$
Would something like $V_{\omega +100}$ suffice for all the objects mentioned above? The answer is negative as long as $\mathbb {R} ^{n}$ is defined as $\mathbb {R} ^{n-1}\times \mathbb {R} =\{(x,y)\mid x\in \mathbb {R} ^{n},y\in \mathbb {R} \}$ where $(x,y)$ means $\{\{x\},\{x,y\}\}.$ For every $n\in \mathbb {N}$ the relation $\mathbb {R} ^{n}\notin V_{\omega +2n-1}$ is ensured by the two exercises below.
* Exercise 9.4. If $A\times B\subset V_{\omega +n+2},$ then $A,B\subset V_{\omega +n}.$ Prove it. Hint: $\{\{a\},\{a,b\}\}=(a,b)\in V_{\omega +n+2}\,\,\Longrightarrow \,\,a,b\in V_{\omega +n}.$
* Exercise 9.5. If $A^{n+1}\subset V_{\omega +2n}$ for some $n,$ then $A\subset V_{\omega }.$ Prove it. Hint: induction in $n\geq 1,$ and the previous exercise.
A more economical encoding is available (and was used in Section 6, see Exercises 6.1, 6.2); instead of the set $\mathbb {R} ^{n}$ of all $n$-tuples $(x_{1},\dots ,x_{n})$ we may use the set $\mathbb {R} ^{[n]}$ of all $n$-sequences $[x_{1},\dots ,x_{n}]$; as before, $[x_{1},\dots ,x_{n}]=\{(1,x_{1}),\dots ,(n,x_{n})\}$ is the set of pairs.
* Exercise 9.6. If $A\in V_{\omega +m+1},$ then $A^{[n]}\in V_{\omega +m+4}$ for all $n\in \mathbb {N} .$ Prove it. Hint: $a_{1},\dots ,a_{n}\in V_{\omega +m}\,\,\Longrightarrow \,\,[a_{1},\dots ,a_{n}]\in V_{\omega +m+3}.$
A lot of theorems are published about real numbers, real-valued functions of real arguments, spaces of such functions etc. I wonder, is there at least one such theorem sensitive to the distinction between $V_{\omega +100}$ and $V_{\omega +200}\,$? That is, theorem that can be formulated and proved within $V_{\omega +200}$ but not $V_{\omega +100}\,$? I guess, the answer is negative. A seemingly similar question: is definability of real numbers sensitive to the distinction between $V_{\omega +100}$ and $V_{\omega +200}$? I mean, is there at least one real number definable in $V_{\omega +200}$ but not $V_{\omega +100}$? This time, the answer is affirmative, as explained below.
For each $n\in \mathbb {N} \cup \{0\}$ we endow the set $V_{\omega +n}$ with the D-structure $D_{\omega +n}$ generated by the membership relation $\{(x,y)\mid x\in y\}$ (for $x,y\in V_{\omega +n},$ of course).
Recall that, treating a real number as a set of rational numbers, and a rational number as an equivalence class of triples $(p,n,q)$ of natural numbers, we have $\mathbb {Q} \in V_{\omega +2}$ and $\mathbb {R} \in V_{\omega +3}.$ That is, $\mathbb {Q} \subset V_{\omega +1}$ and $\mathbb {R} \subset V_{\omega +2}.$
Similarly to the finite set theory, $\mathbb {N}$ and $\mathbb {Q}$ are definable subsets of $V_{\omega +n}$ (whenever $n\geq 1$), and the basic relations between natural numbers are definable, as well as the basic relations between rational numbers. Dissimilarly to the finite set theory, $\mathbb {R}$ is a definable subset of $V_{\omega +n}$ (whenever $n\geq 2$), and the basic relations between real numbers are definable. An example: for $x,y\in \mathbb {R}$ we have $x\leq y\Longleftrightarrow \forall a\in \mathbb {Q} \;\,(a<x\,\,\Longrightarrow \,\,a<y)\Longleftrightarrow \forall a\in \mathbb {Q} \;\,(a\in x\,\,\Longrightarrow \,\,a\in y)\Longleftrightarrow x\subset y.$ Another example: for $x,y,z\in \mathbb {R}$ we have $x+y=z\Longleftrightarrow \forall c\in \mathbb {Q} \;\,{\bigc<z\Longleftrightarrow \exists a\in \mathbb {Q} \;\,(a<x\land c-a<y){\big )}.$ Also the relation "$x=\{b\in \mathbb {Q} \mid b<a\}$" between a rational number $a$ and the corresponding real number $x$ is definable, which implies definability of $\mathbb {N}$ embedded into $\mathbb {R} .$ Thus, all real numbers first-order definable in $(\mathbb {R} ;+,\times ,\mathbb {N} )$ (as in Section 3) are definable in $V_{\omega +n}$ (whenever $n\geq 2$).
What about second-order definability? It was treated in Section 5 as a D-structure on the set ${\big\cup _{n=1}^{\infty }\mathbb {R} ^{n})\cup {\big\cup _{n=1}^{\infty }\operatorname {P} (\mathbb {R} ^{n}){\big )},$ but a more economically encoded set $S={\big\cup _{n=1}^{\infty }\mathbb {R} ^{[n]})\cup {\big\cup _{n=1}^{\infty }\operatorname {P} (\mathbb {R} ^{[n]}){\big )}$ may be used equally well.
* Exercise 9.7. $S\subset V_{\omega +6}.$ Prove it. Hint: use Exercise 9.6.
Moreover, for every $n\geq 6,$ $S$ is a definable subset of $V_{\omega +n}$; and the four relations (that generate the D-structure in Section 5) are definable relations on $V_{\omega +n}.$ Thus, all real numbers second-order definable as in Section 5 are definable in $V_{\omega +n}$ whenever $n\geq 6.$ In particular, the "first-order undefinable but second-order definable" number of Section 6 is definable in $V_{\omega +6}.$ However, all said does not mean that it is undefinable in $V_{\omega +2}.$
What we need is the second-order definability in $(V_{\omega +2},D_{\omega +2})$ rather than $(\mathbb {R} ;+,\times ,\mathbb {N} )$; that is, definability in the set $W_{\omega +2}={\big\cup _{n=1}^{\infty }V_{\omega +2}^{n})\cup {\big\cup _{n=1}^{\infty }\operatorname {P} (V_{\omega +2}^{n}){\big )}.$
* Exercise 9.8. $W_{\omega +2}\subset V_{\omega +6}.$ Prove it. Hint: similar to Exercise 9.7.
Once again, $W_{\omega +2}$ is a definable subset of $V_{\omega +6},$ and all real numbers definable in $W_{\omega +2}$ are definable in $V_{\omega +6}.$ That is, all real numbers second-order definable in $V_{\omega +2}$ are (first-order) definable in $V_{\omega +6}.$
A straightforward generalization of Section 6 gives a real number second-order definable in $V_{\omega +2}$ but first-order undefinable in $V_{\omega +2}.$ This number is definable in $V_{\omega +6}$ but undefinable in $V_{\omega +2}.$ Similarly, for each $n\geq 2$ there exist real numbers definable in $V_{\omega +n+4}$ but undefinable in $V_{\omega +n}.$ We observe an infinite hierarchy of definability orders within $V_{2\omega }.$
Climbing higher on the cumulative hierarchy we get stages $V_{\alpha }$ for ordinal numbers $\alpha$ such as $2\omega +n,3\omega +n,\dots$ Still higher, $\omega \cdot \omega =\omega ^{2},$ then $\omega ^{3},\dots ,$ then $\omega ^{\omega },\omega ^{(\omega ^{2})},\omega ^{(\omega ^{3})},\dots \omega ^{(\omega ^{\omega })},\dots$ Everyone may continue until feeling too dizzy; see Wikipedia:Ordinal notation, Ordinal collapsing function, Large countable ordinal. All these are countable ordinals. By the way, every countable ordinal $\alpha$ may be visualized by a set of rational numbers, using a strictly increasing function $f:\alpha \to \mathbb {Q}$ (that is, $f:\{\beta \mid \beta <\alpha \}\to \mathbb {Q}$). For example, $2\omega$ may be visualized by $\{1-{\tfrac {1}{n}}\mid n\in \mathbb {N} \}\cup \{2-{\tfrac {1}{n}}\mid n\in \mathbb {N} \}.$
For every countable ordinal $\alpha \geq \omega +2$ there exist real numbers definable in $V_{\alpha +4}$ but undefinable in $V_{\alpha }.$ Moreover, some of these real numbers are of the form $\textstyle \sum _{k=1}^{\infty }10^{-k_{n}}$ (recall Section 7), since there exists an increasing sequence (of natural numbers) definable in $V_{\alpha +4}$ that overtakes all sequences definable in $V_{\alpha }.$
A wonder: stages $V_{\alpha }$ for $\alpha$ like $\omega ^{\omega ^{\omega }}$ are as far from ordinary mathematics as numbers like $10^{10^{1000}}$ from ordinary engineering. Nevertheless these $V_{\alpha }$ contribute to the supply of definable real numbers.
Still higher, the set of all countable ordinals is the first uncountable ordinal $\omega _{1}.$ It cannot be visualized by a set of rational or real numbers. Its cardinality is the first uncountable cardinality $\aleph _{1}.$ The continuum hypothesis is equivalent to the equality between $\aleph _{1}$ and the cardinality continuum.
For every ordinal $\alpha \geq \omega +2$ (countable or not) the set of all real numbers definable in $V_{\alpha }$ is countable (and moreover, has an enumeration definable in $V_{\alpha +4}$). In particular, the set of all real numbers definable in $V_{\omega _{1}}$ is countable. On the other hand, new definable real numbers emerge on all countable levels, and there are uncountably many such levels. A contradiction?!
No, this is not a contradiction. Denoting by $R_{\alpha }$ the set of all real numbers definable in $V_{\alpha },$ and by ${\mathcal {O}}_{\alpha }$ the set of all ordinals definable in $V_{\alpha },$ we have $R_{\beta }\subset R_{\alpha }$ wherever $\beta \in {\mathcal {O}}_{\alpha }$ (which follows from the lemma of Section 5). For all countable ordinals mentioned before we have ${\mathcal {O}}_{\alpha }=\alpha$ (that is, all ordinals below $\alpha$ are definable in $V_{\alpha }$). In contrast, ${\mathcal {O}}_{\omega _{1}}\neq \omega _{1},$ since ${\mathcal {O}}_{\omega _{1}}$ is countable. The union ${\tilde {R}}=\cup _{\alpha <\omega _{1}}R_{\alpha }$ contains all real numbers definable with ordinal parameters $\alpha \in \omega _{1}$; but definability with parameters is outside the scope of this essay (recall Section 2).
It is natural to ask, whether ${\mathcal {O}}_{\alpha }=\alpha$ for all countable ordinals $\alpha ,$ or not. Probably, we only know that the affirmative answer cannot be proved without the choice axiom, and do not know, which answer (if any) can be proved with the choice axiom.
If ${\mathcal {O}}_{\alpha }=\alpha$ for all countable ordinals $\alpha ,$ then $R_{\alpha }\uparrow {\tilde {R}},$ and ${\tilde {R}}$ is uncountable (of the cardinality $\aleph _{1}$ of $\omega _{1}$). Otherwise, there exists a countable ordinal $\alpha$ such that ${\mathcal {O}}_{\alpha }\neq \alpha$ while ${\mathcal {O}}_{\beta }=\beta$ for all $\beta <\alpha$ (and therefore ${\mathcal {O}}_{\alpha }=\beta$ for some $\beta <\alpha$). In this case the transfinite sequence $({\mathcal {O}}_{\alpha })_{\alpha <\omega _{1}}$ is not monotone, and we do not know, whether the union ${\tilde {R}}$ is countable, or not.
Countability or uncountability of ${\tilde {R}}$ matters for model dependence. There is a countable set of formulas (in the language of the set theory) that define real numbers on all levels $V_{\alpha }.$ Some are model independent, others are model dependent. If ${\tilde {R}}$ is countable, then each of these model dependent definable real numbers has at most countably many possible values. Otherwise, if ${\tilde {R}}$ is uncountable, then at least one of these model dependent definable real numbers has uncountably many possible values.
This matter is closely related to the position of Laureano Luna (see also [38, pages 19-20]):
    "Pieces of language taken as mere syntactical expressions (letter-strings) should be distinguished from definitions, which are semantical objects, namely, interpreted letter-strings." (Page 61.)
    "The meanings of the letter-strings that express definitions of reals are context-dependent, the context being here the definability level on which they are used. [...] if some letter-strings express more than one definition of a real number, there is no reason to think there are only countably many such definitions and only countably many definable real numbers." (Page 64.)
Two objections arise. First, we did not prove that ${\tilde {R}}$ is uncountable. Second, model dependence does not apply to $V_{\alpha },$ since $V_{\alpha }$ is not a model of ZFC. We'll return to the second objection after climbing on the cumulative hierarchy to $V_{\omega _{1}}$ and much higher.
The stage $V_{\omega _{1}}$ of the cumulative hierarchy is vast; its cardinality is very large (much larger than the cardinality $\aleph _{1}$ of $\omega _{1}$). Now consider the first ordinal $\alpha$ of this very large cardinality, and the corresponding stage $V_{\alpha }.$ Iterating this jump we get a slight idea of the class of all sets, the incredible universe $V_{\text{ZFC}}$ of the set theory ZFC. The whole $V_{\text{ZFC}}$ grows from a small seed, the first infinite ordinal $\omega ,$ whose existence is just postulated (the axiom of infinity).
If you want to soar above $V_{\text{ZFC}},$ you need a new axiom of infinity that ensures existence of an ordinal $\alpha$ such that $V_{\alpha }$ is a model of ZFC; every such ordinal, being initial, is a cardinal, called a worldly cardinal. For climbing still higher try the so-called large cardinals. And be assured that these supernal stages do contribute to the supply of definable real numbers.
Assuming existence of large cardinals we get a transfinite hierarchy of worldly cardinals $\kappa _{\alpha },$ and the corresponding models $W_{\alpha }=V_{\kappa _{\alpha }}$ of ZFC, for all countable ordinals $\alpha$ (and more; but here we do not need uncountable $\alpha$). Using $W_{\alpha }$ instead of $V_{\alpha }$ we get new versions of ${\mathcal {O}}_{\alpha },$ $R_{\alpha }$ and ${\tilde {R}}.$ Again, we do not know, whether this new ${\tilde {R}}$ is countable, or not. If it is uncountable, then again, at least one model dependent definable real number has uncountably many possible values; and this time, model dependence applies.

### Getting rid of undefinable numbers

Climbing down to earth, is it possible to restrict ourselves to definable numbers and still use the existing theory of real numbers and related objects? An affirmative answer was found in 1952 and enhanced recently.
Before climbing down we need to climb up to the first worldly cardinal $\alpha$ and the corresponding model $V_{\alpha }$ of ZFC. Within this model we consider the constructible hierarchy $(L_{\beta })_{\beta \leq \alpha },$ take the least $\beta$ such that $L_{\beta }$ is a model of ZFC, and get the so-called minimal transitive model of ZFC. This model is pointwise definable, that is, every member of this model is definable (in this model).
Accordingly, this model is countable (and $\beta$ is countable). Nevertheless, every theorem of ZFC holds in every model of ZFC; in particular, Cantor's theorem "$\mathbb {R}$ is uncountable" holds in the countable model $L_{\beta }.$ No contradiction; enumerations of $\mathbb {R} \cap L_{\beta }$ exist, but do not belong to $L_{\beta }.$ Likewise, a well-known theorem of measure theory states that the interval $(0,1)$ cannot be covered by a sequence of intervals $(a_{n},b_{n})$ of total length $\textstyle \sum _{n=1}^{\infty }(b_{n}-a_{n})<1.$ True, for every $\varepsilon >0$ the set $(0,1)\cap L_{\beta },$ being countable, can be covered by a sequence of intervals of total length $\varepsilon ;$ but such sequences do not belong to $L_{\beta }$ (even if endpoints $a_{n},b_{n}$ do belong). Working in $L_{\beta }$ we have to ensure that all relevant objects (not only real numbers) belong to $L_{\beta }.$
* One often hears it said that since there are indenumerably many sets and only denumerably many names, therefore there must be nameless sets. The above shows this argument to be fallacious. (Myhill 1952, see.)
* In my opinion, an object is conceivable only if it can be defined with a finite number of words. (Poincare 1910, translated from German, see.)

## Conclusion

Each definition (of a real number, or another mathematical object) is a finite text in a language. The language may be formal (mathematical) or informal (natural). In both cases the text is composed of expressions that refer to objects and relations between objects. The extension of an expression is the corresponding set of objects, or set of pairs (of objects), or triples, and so on. For a mathematical language, all objects are mathematical; a natural language may mention non-mathematical objects, and even itself, as in the phrase "The preceding two paragraphs are an expression in English that unambiguously defines a real number $r$" (recall Introduction, Richard's paradox), which leads to a problem: the mentioned expression in English fails to define! "So when we speak in English about English, the ‘English’ in the metalanguage is not exactly the same as the ‘English’ in the object-language.". A natural language, intended to be its own metalanguage, is burdened with paradoxes. A mathematical language avoids such (and hopefully, any) paradoxes at the expense of being different from its metalanguage. The metalanguage is able to enumerate all real numbers definable in the language and define more real numbers.
On one hand, a natural language itself is inappropriate for mathematics. On the other hand, a mother tongue is always a natural language. In order to avoid both restrictions of a fixed mathematical theory and paradoxes of a natural language we may get the best of both worlds by considering two-part texts. The first part, written in a natural language, introduces a mathematical theory. The second part, written in the (mathematical) language of this theory, defines some real number.
In this framework the question "is every real number definable?" falls out of mathematics, because the notion "mathematical theory" above cannot be formalized. Some may admit only potential infinity and stop on the finite set theory. Some may admit actual infinity and the transfinite hierarchy up to (exclusively) some preferred ordinal (sometimes $2\omega$; more often, something controversially believed to be the first undefinable ordinal). Or the whole universe of ZFC but no more (equivalently, up to the first worldly cardinal). Or the Tarski-Grothendieck set theory. Or higher, up to some preferred large cardinal. Or some more exotic alternative set theory. Or something brand new, like a kind of homotopy type theory. Or even something not yet published. Most choices mentioned above were unthinkable in the first half of the 20th century. Who knows what may happen near year 2100? "Mathematics has no generally accepted definition" (from Wikipedia:Definitions of mathematics); the same can be said about "mathematical theory". Admitting actual infinity we do not get rid of potential infinity; the latter returns, hardened, on a higher level,. Maybe the recent, hotly debated conception of multiverse is another fathomable segment of the unfathomable potential infinity of mathematics. "The most general definition of a definition" appears to be as problematic as "the set of all sets".
Another problem manifests itself as model dependence for a mathematical language, and context dependence for a natural language. In both cases a single text may refer to different objects (depending on the model or the context, respectively), which blurs the idea of definability. Recall Section 8 (the last paragraph): every real number is "hardwired" in some model of the set theory (ZFC). We may feel that definability of the number does not follow unless the model is definable; but what do we mean by definability of a model? Another case, recall Section 9.2 (the last paragraph): uncountable hierarchy of models indexed by countable ordinals leads to a set of real numbers, possibly uncountable (but maybe not). Nothing is "hardwired" here, except for these countable ordinals. Outside mathematics, a more or less similar case, treated by Luna, shows context dependence in a hierarchy of contexts (levels of definability) indexed by definable countable ordinals. A mathematical counterpart with uncountably many definable real numbers could exist in some alternative (to ZFC and alike; probably closer to Kripke–Platek) set theory such that the class of all definable countable ordinals is not a countable set, and preferably, not a set at all.
Bad news: definability is a very subtle property of a real number. Good news: other properties, more relevant to applications, are unsubtle; and definability is rather of philosophical interest. "Mathematicians, in general, do not like to deal with the notion of definability; their attitude toward this notion is one of distrust and reserve." (Tarski, the first phrase; now partially obsolete, partially actual.)

## Competing interests

The author has no competing interest.