Post · 17 min read· pp. 60–65

What is deep mathematics?

Note added 12/9/09: It seems that many people are looking at this post, because Derren Brown claims to have used “deep mathematics” combined with “the wisdom of crowds” to predict the lottery. All I can say is that this is obvious nonsense. Whatever method you use to predict the lottery, the drawing of the balls is a random process, so you will not improve your chances of being correct. Brown has done a clever trick — I won’t speculate about his methods, as I’m not interested enough in them — but his explanation of how he did it is not to be taken seriously.

In this post I shall discuss the proofs of two statements in real analysis, one of which is clearly deeper than the other. My aim is to shed some small light on what it is that we mean when we make that judgment. A related aim is to try to demonstrate that a computer is in principle capable of “having mathematical ideas”. To do these two things I shall attempt to explain how an automatic theorem prover might go about proving the two statements in real analysis: in one case this is quite easy and in the other quite hard but by no means impossible. In the hard case what interests me is the precise ways that it is hard, which I think say something about the notion of depth in mathematics. 

The first statement is that if a function f:R→Rf:\mathbb{R}\rightarrow\mathbb{R} is continuous, then for every xx and every sequence (xn)(x_n) that converges to xx we also have that f(xn)f(x_n) converges to f(x)f(x). Most experienced mathematicians would not regard this as a deep statement because proving it is “just an exercise” rather than a result that “needs an idea”. (Spotting that it is a useful statement is a different matter, but it’s not what I’m talking about here.)

I shall now give a proof of the statement in such a way that every step of the proof is the obvious thing to do, where by “obvious” I mean in some sense “algorithmic”. I could go into more detail about how these obvious steps could be carried out by an actual program, but then what I wrote would be much less readable. So I’m compromising by giving a slightly higher-level discussion. But if anyone thinks I’m using that to sneak in a trick that only a human could spot then I’ll be happy to elaborate on parts of the proof later. So here goes.

We want to show that if ff is continuous, then it commutes with taking limits. Suppose then that xnx_n converges to xx. We would like to prove that f(xn)f(x_n) converges to f(x)f(x). Therefore we must let ϵ>0\epsilon>0 and find some NN such that ∣f(xn)−f(x)∣<ϵ|f(x_n)-f(x)|<\epsilon whenever n≥Nn\geq N. (That is just translating the definition, which is clearly an automatic process.)

How can we find such an NN? Well, what could possibly imply that ∣f(xn)−f(x)∣<ϵ|f(x_n)-f(x)|<\epsilon? To answer this question we write out the information we have and simply look at it to see if anything has a statement resembling ∣f(xn)−f(x)∣<ϵ|f(x_n)-f(x)|<\epsilon as a conclusion. And we notice that the definition of continuity of ff ends with the assertion ∣f(y)−f(z)∣<δ|f(y)-f(z)|<\delta. (For safety’s sake, we give all our dummy variables different names.) So we focus on the whole definition: ∀z ∀δ ∃θ ∀y ∣y−z∣<θ⇒∣f(y)−f(z)∣<δ\forall z \ \forall \delta \ \exists \theta \ \forall y \ |y-z|<\theta\Rightarrow|f(y)-f(z)|<\delta.

So the obvious thing to try is taking δ\delta to be ϵ\epsilon, zz to be xx and yy to be xnx_n. We’re free to do the first two as the above assertion starts with “∀z ∀δ\forall z\ \forall\delta“, but what about the third? Well, we also have a “∀y\forall y” but it comes with the condition that ∣y−z∣|y-z|, or rather ∣y−x∣|y-x|, should be at most θ\theta, which depends somehow on xx and δ\delta. So we can conclude the following: if ∣xn−x∣<θ|x_n-x|<\theta then ∣f(xn)−f(x)∣<ϵ|f(x_n)-f(x)|<\epsilon.

Now let’s recall precisely what we want to prove. We would like to show that there exists NN such that if n≥Nn\geq N then ∣f(xn)−f(x)∣<ϵ|f(x_n)-f(x)|<\epsilon. From what we have just shown, it will be sufficient to prove that ∣xn−x∣<θ|x_n-x|<\theta. And now we see that just such a conclusion appears at the end of the definition of the convergence of xnx_n to xx, and it is easy to see that the premise is exactly what we want too as it gives us our NN.

Incidentally, the converse of this statement can also be proved in a fully justified doable-in-principle-by-computer way too. (In fact, I discussed both directions many years ago on my web page.) However, I only really need one sample of “non-deep” mathematics to illustrate my point, so I won’t discuss the converse here. Instead, let’s move to the second statement, which is a beautiful problem that is often set to Cambridge undergraduates. It can serve either as a hard problem for those who have done a first course in analysis (one that perhaps one or two people per year are capable of solving) or a hardish exercise in applying the Baire category theorem.

It’s quite interesting to discuss how a computer could solve the problem if it had the hint that the Baire category theorem should be applied, but then it becomes more like the first example: it can be done by “pattern matching”. But then one would feel that the computer had cheated and been told the idea. So it is even more interesting to see how a computer could solve the problem from scratch, succeeding where all but a handful of students fail.

The statement in question is this. Let ff be a continuous function and suppose that for every θ>0\theta>0 the sequence f(θ),f(2θ),f(3θ),…f(\theta),f(2\theta),f(3\theta),\dots tends to 0. Prove that f(x)f(x) tends to 0 as x→∞x\rightarrow\infty. If you haven’t seen this before and want to get the most out of this post then you should (of course) make a serious attempt to solve this beautiful problem before reading on.

On then to the proof. The aim, as with the previous result, is to present the proof in such a way that every step is “the obvious” thing to do, or at least sufficiently obvious that it would be one of the first things that a well-programmed computer would try.

Let us begin with steps that really are automatic, such as translating the problem into more formal language and converting “for all”s into “let”s (by which I mean that if you want to prove a statement that begins “for every x in A” you start by writing “let x be in A”, and so on). In this case we are trying to prove that f(x)f(x) tends to 0, so we let ϵ\epsilon be positive. We would now like to find MM such that ∣f(x)∣<ϵ|f(x)|<\epsilon whenever x>Mx>M. But simple pattern-matching lets us down: the obvious (and only) statement available to us that resembles ∣f(x)∣<ϵ|f(x)|<\epsilon is the statement ∣f(nθ)∣<δ|f(n\theta)|<\delta that comes at the end of a formal definition of the hypothesis of the problem. And that is true only if nn is at least as big as some NN that depends on θ\theta in a way that we know nothing about.

This is a point where many human mathematicians will feel stuck. But one move that sometimes helps is to do something else that can be easily automated and aim for a proof by contradiction, so let’s try it.

If we cannot achieve our goal then for every MM there exists x>Mx>M such that ∣f(x)∣≥ϵ|f(x)|\geq\epsilon. And now, if we want a contradiction, we must prove that there exists θ\theta such that ∣f(nθ)∣|f(n\theta)| does not tend to 0. Writing out this last statement in full gives us ∃δ>0 ∀N ∃n>N ∣f(nθ)∣≥δ\exists\delta>0\ \forall N\ \exists n>N\ |f(n\theta)|\geq\delta.

Now we make three observations. First, it is fairly clear that we shall need to use the fact that ff is continuous. (I have thought quite hard about how a computer might come to this realization, or at least construct, when asked, an example of a discontinuous function ff that does not tend to zero despite the fact that f(nθ)f(n\theta) always does. I’ll save my conclusions about that for another post. For now let us be satisfied with the idea that the continuity of ff was given as a hypothesis and the computer will naturally tend to see what comes of using the hypotheses.) Second, there is a promising resemblance between ∣f(nθ)∣≥δ|f(n\theta)|\geq\delta and ∣f(x)∣≥ϵ|f(x)|\geq\epsilon. Third, we are trying to construct a real number that satisfies an infinite set of conditions, one for each NN.

Let us think about the last observation first. How does one construct a real number with infinitely many properties? A standard answer, and one that is closely bound up in the very idea of a real number, is to construct it as the limit of a sequence. But what will make that limit satisfy all the properties? To make this question slightly more concrete, let us call the properties P1,P2,…P_1,P_2,\dots and let the sequence be θ1,θ2,…\theta_1,\theta_2,\dots, converging to θ\theta. We don’t have much to play with here: all we can say about each θi\theta_i and each PjP_j is whether or not θi\theta_i has property PjP_j. And our main information about θ\theta is that the θi\theta_i get close to it.

As we build our sequence θ1,θ2,…\theta_1,\theta_2,\dots, how can we make sure that its limit θ\theta at least has property P1P_1? A natural answer is to insist that every θi\theta_i belongs to some closed set F1F_1, all of whose elements satisfy property P1P_1. Here I am using “closed” in the sense of “closed under taking limits”. The most basic examples of closed sets are closed intervals, and this thought leads us to one of the basic theorems of real analysis: that a nested intersection of closed bounded intervals is non-empty. But I prefer to think of this statement as yet another version of the completeness axiom, and it leads us to the following basic real-number-constructing principle, which I would imagine a computer as having been taught rather than as having invented: if you want to construct a real number θ\theta that has properties P1,P2,…P_1,P_2,\dots, then see if you can construct a nested sequence of closed bounded intervals I1⊃I2⊃…I_1\supset I_2\supset\dots (of non-zero length) such that every x∈Ijx\in I_j has property PjP_j. If you can, then any θ\theta in the intersection will have all the properties simultaneously.

Now let us return to the problem at hand. Property PNP_N is the property that there exists n≥Nn\geq N such that ∣f(nx)∣≥δ|f(nx)|\geq\delta. So let us suppose that we have already constructed the closed bounded interval IN−1I_{N-1} and see if we can find a closed subinterval INI_N all of whose elements satisfy PNP_N.

It would be nice to avoid the language of intervals, so let [a,b][a,b] be the interval IN−1I_{N-1}. Our task is then to find real numbers cc and dd such that a<c<d<ba<c<d<b (that makes INI_N a subinterval) and such that for every xx with c≤x≤dc\leq x\leq d there exists n≥Nn\geq N such that ∣f(nx)∣≥δ|f(nx)|\geq\delta (that makes every element of InI_n satisfy property PNP_N).

Before we attack this (by now not terribly hard) problem it feels as though we need to choose our δ\delta. From string-matching we more or less know that δ\delta will depend on ϵ\epsilon (since the only lower bounds we have for values of ff are that there are arbitrarily large xx with ∣f(x)∣>ϵ|f(x)|>\epsilon). And here there is a very useful method that human mathematicians use all the time: just guess the simplest possible dependence and make adjustments if it doesn’t work. The simplest non-trivial dependence would be δ=ϵ\delta=\epsilon, which turns out to work later if we “adjust” it to δ=ϵ/2\delta=\epsilon/2. Another method, again used by human mathematicians, is “let δ\delta be a positive real number to be chosen later”. Here one sort of pretends to have chosen δ\delta and as the proof proceeds one finds that δ\delta must satisfy certain conditions for the argument to work. One then shows that these conditions can be satisfied. Let us adopt the latter approach here.

At this stage a computer may well not see its way to the end of the proof, but another thing it can certainly do is look about for places to apply the continuity hypothesis. And since there is only one thing we know about the values taken by ff (that they have modulus ϵ\epsilon for arbitrarily large xx), there is only one place we can apply this hypothesis.

To elaborate, we know that ∀M ∃x≥M ∣f(x)∣≥ϵ\forall M\ \exists x\geq M\ |f(x)|\geq\epsilon, and we also know that ∀y ∀η>0 ∃γ>0 ∣y−z∣<γ⇒∣f(y)−f(z)∣<η\forall y\ \forall\eta>0\ \exists\gamma>0\ |y-z|<\gamma\Rightarrow|f(y)-f(z)|<\eta. To apply the second statement we must choose values for yy and η\eta. The only real number we have around is xx (which depends on MM) so let us choose yy to be xx. That gives us the statement ∀M ∃x≥M (∣f(x)∣≥ϵ)∧(∀η>0 ∃γ>0 ∣x−z∣<γ⇒∣f(x)−f(z)∣<η).\forall M\ \exists x\geq M\ (|f(x)|\geq\epsilon)\wedge(\forall\eta >0\ \exists\gamma>0\ |x-z|<\gamma\Rightarrow|f(x)-f(z)|<\eta).

Rearranging this to bring the quantifiers as far as possible to the left, we obtain the equivalent statement ∀M ∃x≥M ∀η>0 ∃γ>0 ∣x−z∣<γ⇒(∣f(x)∣≥ϵ ∧ ∣f(x)−f(z)∣<η).\forall M\ \exists x\geq M\ \forall\eta>0\ \exists\gamma>0\ |x-z|<\gamma\Rightarrow(|f(x)|\geq\epsilon\ \wedge\ |f(x)-f(z)|<\eta).

Now an applying-the-triangle-inequality module will leap into action and observe that from the final two inequalities it follows that ∣f(z)∣>ϵ−η|f(z)|>\epsilon-\eta. The end of the conclusion we are trying to obtain is ∣f(nθ)∣≥δ|f(n\theta)|\geq\delta for some δ>0\delta>0, so string-matching tells us that we would like ϵ−η\epsilon-\eta to be positive, and an elementary-inequality module will tell us that the simplest η\eta that is both positive and less than ϵ\epsilon is ϵ/2\epsilon/2. So let us make this choice of η\eta, take δ\delta to be ϵ/2\epsilon/2, and see what we have when we put all the quantifiers back. We have ∀M ∃x≥M ∃γ>0 ∀z ∣x−z∣<γ⇒∣f(z)∣≥δ\forall M\ \exists x\geq M\ \exists\gamma>0\ \forall z\ |x-z|<\gamma\Rightarrow|f(z)|\geq\delta. (Incidentally, there should, strictly speaking, have been “∀z\forall z“s in some of the earlier statements, but it is quite common, if sloppy, to regard those as sort of implied by the symbol “⇒\Rightarrow“.)

Now we observe that we are in a stronger position than before. Although δ\delta is smaller than ϵ\epsilon, all we knew about ϵ\epsilon was that it was positive, and that’s all we know about δ\delta. So from the perspective of proving the result, there is absolutely no loss in passing from ϵ\epsilon to δ\delta. (This is itself a useful principle that it would be quite good to make a bit more formal.) On the other hand, the range of values where ∣f(x)∣|f(x)| is at least δ\delta has increased from a single arbitrarily large xx to an interval of arbitrarily large zzs.

Suppose we have some xx and γ\gamma such that ∣x−z∣<γ|x-z|<\gamma implies that ∣f(z)∣≥δ|f(z)|\geq\delta. String-matching tells us that we will be done if we can choose cc and dd and an integer n≥Nn\geq N such that a<c<d<ba<c<d<b and such that ∣nθ−x∣<γ|n\theta-x|<\gamma whenever c≤θ≤dc\leq\theta\leq d. Elementary manipulation of inequalities tells us that for this we need nc>x−γnc>x-\gamma and nd<x+γnd<x+\gamma. Let us pretend that we have chosen cc. Then the Archimedean principle tells us that we can find nn with nc>x−γnc>x-\gamma and a standard reflex tells us that if there exists such an nn then there exists a minimal one. So let nn be minimal such that nc>x−γnc>x-\gamma. Can we now find dd with c<d<bc<d<b such that nd<x+γnd<x+\gamma? Obviously we can if and only if nc<x+γnc<x+\gamma. Now we have not yet chosen cc, so let us try to choose nn and cc in such a way that a<c<ba<c<b and x−γ<nc<x+γx-\gamma<nc<x+\gamma.

Let us focus first on choosing nn. If we have chosen nn then we will be able to find our cc if and only if x+γ>nax+\gamma>na and x−γ<nbx-\gamma<nb. Let us choose the minimal nn that satisfies the second inequality. Then nb≤x−γ+bnb\leq x-\gamma+b, so na≤x−γ+b−n(b−a)na\leq x-\gamma+b-n(b-a), so we are done if b−n(b−a)<2γb-n(b-a)<2\gamma, for which we need nn to be at least (b−2γ)/(b−a)(b-2\gamma)/(b-a). We have the lower bound n>(x−γ)/bn>(x-\gamma)/b, and x−γx-\gamma can be made arbitrarily large (because we may as well impose the bound γ<1\gamma<1 if it helps, which it does). Therefore, we can have our lower bound on nn.

That argument can of course be very significantly tidied up. The basic idea is that every sufficiently large real number xx is a multiple of an element of (a,b)(a,b), since the intervals (na,nb)(na,nb) start to overlap when nn gets large. So if xx is sufficiently large then we can choose cc and nn with a<c<ba<c<b and nc=xnc=x. (But the computer needs an extra idea to try for the stronger statement nc=xnc=x rather than the weaker statement x−γ<nc<x+γx-\gamma<nc<x+\gamma.) Having chosen such a pair c,nc,n we can easily choose dd in such a way that c<d<bc<d<b and nd<x+γnd<x+\gamma.

If you agree that the above account does demonstrate that the proof can be generated in a fairly automatic way from a rather small and simple set of precise problem-solving techniques in real analysis, then there are two possible reactions. One would be to say that the proof is less deep than it looks, and only appears deep in its usual presentation because the Baire category theorem is used as a piece of magic (which we might refer to as the “insight” of certain mathematicians from around a century ago). Another would be to search for differences between the way the second proof is generated and the way the first one is. And a definite difference is that the second involves a process of construction: of the nested closed intervals INI_N. The fact that we just went ahead and did the construction in a fairly automatic way does place some upper bound on the depth, and it is perhaps the automatic nature of this stage of the proof that encourages one to abstract out what has been done and formulate the Baire category theorem.

Let me be more precise about the difference. At times during both proofs we needed to find real numbers with certain properties. However, only in the second proof did we need to find a real number with an infinite sequence of properties, which resulted from the fact that the string of quantifiers in the statement we wished to prove had “∀N\forall N” after the “∃θ\exists\theta“. In order to find the real number with infinitely many properties, we converted the problem into one about constructing a sequence, which then meant that we were back in the world of finding real numbers with just finitely many properties.

I’ll end with a brief remark that I hope to elaborate on in a future post. It seems that a significant challenge for an automatic theorem prover is to deal with statements that do not have uniquely obvious proofs. (This of course relates to my earlier post on when two proofs are the same.) And this non-uniqueness often arises when a construction is involved. If one is asked to construct a mathematical object, one can sometimes create an artificial uniqueness by imposing extra properties on what one is constructing, or restrictions on how one goes about constructing it (such as always trying the simplest thing first, whatever that may mean in the given context). But it is not always easy.

To illustrate this, here is a simple problem where the non-uniqueness seems to create difficulties for a computer: find an injection from N×N\mathbb{N}\times\mathbb{N} to N\mathbb{N}. In a later post I shall discuss this example, but for now let me just try to explain why it is difficult. The reason is that if you want to approach it systematically, then you need to choose values of the function for each pair of integers (m,n)(m,n) in turn. But what does “in turn” mean? It seems to require you to put the pairs in order, and that is rather close to what you were asked to do in the first place. (However, “rather close” turns out not to mean “identical”.) I mention this problem here just to suggest in a tentative way that non-uniqueness of this kind may also be a major contributor to our perceptions of depth in mathematics.