Post · 17 min read· pp. 87–92

Just-do-it proofs

This post is another sample Tricks Wiki article, which revisits a theme that I treated on my web page. Imre Leader pointed out to me that I hadn’t completely done justice to the idea, and that the notion of a “just-do-it proof” had some more specific features that I had not sufficiently emphasized. His opinion matters to me since he was the one who told me about the concept. He himself got it from Béla Bollobás: I don’t know whether it goes further back than that. This is a second attempt at explaining it. Imre, if there’s anything you don’t like about this one, then please edit it when it appears on the Tricks Wiki.

Title: Just-do-it proofs.

Quick description: If you are asked to prove that a sequence or a set exists with certain properties, then the best way of doing so may well be not to use any tricks but just to go ahead and do it: that is, you build the set/sequence up one element at a time, and however you do so you find that it is never difficult to continue building.

Prerequisites: Basic undergraduate mathematics. Ordinals for one example.

Example 1: A subset AA of the plane is called dense if for every point xx in the plane and for every positive real number δ\delta there exists a point a∈Aa\in A such that the distance from xx to aa is at most δ\delta. Does there exist a dense subset of the plane that contains no three points in a line?

This is an example of a question that is quite hard (though not impossible) if you go about it the wrong way, and almost trivial if you are used to just-do-it proofs. The hard way of solving it is to try to think of a clever definition of a set that works. One might, for instance, start with a very obvious dense set, such as the set of all points with rational coordinates, and use a continuous map to distort it in such a way that no three points lie in a line. But such an approach will need some ingenuity: the continuous map would need to be nice enough for it to be possible to prove that no three rational points had images in a line, which would be a question in number theory, but it couldn’t be too nice or there would be three images in a line.

If you are interested in keeping life simple, then the mistake in such an approach is to try to define the whole set at once. What if instead you build it up element by element?

In order to do this, you need to be clear about the conditions that the set must eventually satisfy. These can be written as follows: ∀x ∀δ>0 ∃a∈A d(x,a)<δ\forall x\ \forall \delta>0\ \exists a\in A\ d(x,a)<\delta. (Here, d(x,a)d(x,a) denotes the distance from xx to aa.) At first it looks challenging to create a set that satisfies all these conditions because there are uncountably many of them, one for each point xx and each δ>0\delta>0. However this appearance is illusory (as it often is), because we can replace this uncountable set of conditions by a countable one: it is enough to prove it for every δ\delta of the form 1/n1/n for some positive integer nn, and it is also enough to prove it just for points xx that have rational coordinates. (Then, if you want to find a point in AA that is within δ\delta of a point zz in the plane, you first find a rational point xx such that d(x,z)<δ/2d(x,z)<\delta/2, then a positive integer nn such that 1/n<δ/21/n<\delta/2, and finally a point a∈Aa\in A such that d(x,a)<1/nd(x,a)<1/n.)

The set of points within a distance 1/n1/n of a point xx with rational coordinates is an open disc, so we can redescribe our problem as follows: we have a certain countable set of open discs D1,D2,D3,…D_1,D_2,D_3,\dots, and we would like to find a set AA such that every DnD_n contains at least one point of AA and no three points of AA lie in a line.

Once reformulated in this very minor way, the problem is perfectly set up for a just-do-it approach. We need D1D_1 to contain a point in AA, so let a1a_1 be a point in D1D_1. We need D2D_2 to contain a point in AA, so let a2a_2 be a point in D2D_2. We need D3D_3 to contain a point in AA, so let a3a_3 be a point in D3D_3, but this time we have to be a tiny bit careful because if a1≠a2a_1\ne a_2 (which we may as well assume), then a3a_3 must not be on the line that contains a1a_1 and a2a_2. But you can’t cover all of D3D_3 by a line, so it’s easy to pick a3a_3 that avoids this line.

In general, suppose that we have chosen distinct points a1,a2,…,ana_1,a_2,\dots,a_n such that aia_i belongs to DiD_i for every ii and no three of the aia_i lie in a line. Can we continue the process? Well, we need an+1a_{n+1} to belong to Dn+1D_{n+1}, to be different from all of a1,a2,…,ana_1,a_2,\dots,a_n, and not to lie on any of the (n2)\binom n2 lines LijL_{ij}, where by this we mean the line that contains aia_i and aja_j. But one cannot cover an open disc with just finitely many points and lines, so there is no difficulty in choosing an+1a_{n+1}.

(It’s pretty obvious that you can’t cover an open disc with finitely many points and lines, but it is not quite trivial, so here’s a short proof: since there are only finitely many lines LijL_{ij} it is possible to pick a line LL through the centre of Dn+1D_{n+1} that is not parallel to any of them. Then we can choose any point of L∩Dn+1L\cap D_{n+1} as long as it isn’t one of the forbidden points or the point of intersection of LL with one of the LijL_{ij}. But L∩Dn+1L\cap D_{n+1} is infinite and this rules out only finitely many points.)

It is not hard to modify the above proof to add the condition that every point in AA has rational coordinates

General remarks: A just-do-it proof is one that builds a sequence a1,a2,…a_1,a_2,\dots that satisfies a sequence of constraints P1,P2,…P_1,P_2,\dots, where the nnth constraint, PnP_n, is a property of a1,…,ana_1,\dots,a_n, and where for any sequence a1,…,ana_1,\dots,a_n that satisfies PnP_n it is not hard to prove that there exists an+1a_{n+1} such that the sequence a1,…,an+1a_1,\dots,a_{n+1} satisfies Pn+1P_{n+1}. In the example above, a1,a2,…a_1,a_2,\dots were points in the plane and PnP_n was the property that ai∈Dia_i\in D_i for every i≤ni\leq n, the aia_i with i≤ni\leq n are distinct, and no three of those aia_i lie in a line.

Example 1 is what one might think of as a completely standard just-do-it proof. If you adopt the mentality used in the above proof, then many results that at first look quite hard can in fact be proved extremely easily. In the remainder of this article, we shall give two further examples of the basic just-do-it approach, then two examples of problems that are not immediately obviously of the just-do-it type, but which can be converted into ones that are, and finally an example where the building-up process continues transfinitely.

Example 2. Is it possible to colour the positive integers with two colours, red and blue, in such a way that no infinite arithmetic progression is coloured entirely red or entirely blue?

Once again, a very small amount of reformulation is needed to bring out the just-do-it nature of this problem. First, one notes that there are only countably many infinite arithmetic progressions. If we enumerate these as A1,A2,A3,…A_1,A_2,A_3,\dots, then it is enough to construct sequences r1,r2,r3,…r_1,r_2,r_3,\dots and b1,b2,b3,…b_1,b_2,b_3,\dots of positive integers such that for each ii both rir_i and bib_i belong to AiA_i and such that no rir_i is equal to any bjb_j. If we can do that, then we can colour the rir_i red, the bib_i blue, and all other integers however we like, and each AiA_i will contain at least one red point and at least one blue point.

But this is a very easy task. If we have chosen r1,…,rnr_1,\dots,r_n and b1,…,bnb_1,\dots,b_n such that rir_i and bib_i belong to AiA_i for each i≤ni\leq n and such that no rir_i is equal to any bjb_j, then there is no difficulty in continuing the sequence with rn+1r_{n+1} and bn+1b_{n+1}, since An+1A_{n+1} is infinite and there are only finitely many numbers that have already been used.

In this case it is quite easy to define a colouring that works, but the just-do-it approach brings out the true nature of the problem: that it is trivial.

Example 3. Is it possible to find exponentially many subsets of {1,2,…,N}\{1,2,\dots,N\} such that any two of them have symmetric difference of size at least N/3N/3?

There are clever methods in coding theory for defining such a collection of sets, but these methods were serious mathematical results. Actually, so was the observation that a just-do-it approach would work, but from today’s perspective is more or less obvious. All you do is choose a sequence of sets A1,A2,…A_1,A_2,\dots however you like, making sure only that when you choose AnA_n the symmetric difference of AiA_i and AnA_n has size at least N/3N/3 for every i<ni<n. When is this easy to do? Well, for a set to have symmetric difference with AiA_i of size at most N/3N/3 you have to choose a set of size at most N/3N/3 to be the symmetric difference. The number of these is at most ∑k=0N/3(Nk)\sum_{k=0}^{N/3}\binom Nk, and it is a straightforward exercise (consider ratios of successive binomial coefficients) to show that this is bounded above by CNC^N for some constant CC that is strictly less than 2. Therefore, provided nCN<2NnC^N<2^N, we can continue the sequence. From this it follows that we can choose exponentially many such sets.

Example 4. Are all real numbers algebraic? That is, is every real number a root of some polynomial with integer coefficients? The answer is of course no, and as is very well known there are two contrasting approaches. One is that of Liouville, which was to prove that no algebraic number can be too well approximated by rationals and then to construct a real (and irrational) number that could be very well approximated by rationals. In a similar spirit, Hermite and Lindemann showed that ee and π\pi are transcendental. The other approach is that of Cantor, who noted that the algebraic numbers form a countable set, while the real numbers are uncountable.

It is often stated (even by me on occasion) that Cantor’s proof is an abstract existence proof. But a better way of regarding it is as a just-do-it proof, as I shall explain.

Let us take it as read that the algebraic numbers are countable. What then is our task? We have a list a1,a2,…a_1,a_2,\dots of real numbers and we must find a new real number rr that is not equal to any number on our list. This does not look like a just-do-it proof because we are trying to find a single object, the real number rr, rather than a sequence. But if you are acquainted with elementary real analysis then you will know that the single-object quality of a real number is somewhat illusory, and that real numbers is intimately tied up with sequences. (An elementary illustration of this is the fact that real numbers can be given by infinite decimal expansions and usually not by finite ones. The restnof the discussion could take place in terms of decimal expansions but I prefer the approach I shall take, which is based on Cantor’s first proof that the reals are uncountable.)

One way of specifying a real number is as the unique point that belongs to a nested intersection of closed intervals with widths that tend to zero. That is, one uses the lemma (which is equivalent to the completeness property of the reals) that if u1≤u2≤…u_1\leq u_2\leq\dots and v1≥v2≥…v_1\geq v_2\geq\dots are sequences of real numbers such that vn−unv_n-u_n is a non-negative sequence that tends to zero, then there is exactly one real number that belongs to every closed interval [un,vn][u_n,v_n]. This is useful to us because it allows us to construct a sequence of some kind rather than defining rr all at once; it therefore opens up the possibility of a just-do-it proof.

What properties should the sequence of intervals [un,vn][u_n,v_n] have if we want the intersection not to equal any of the ana_n? Well, if we ensure that for each nn the number ana_n does not belong to the interval [un,vn][u_n,v_n] then we will certainly have ensured that ana_n does not belong to the intersection of all those intervals. Therefore, we will be done if we can construct the intervals [un,vn][u_n,v_n] in such a way that an∉[un,vn]a_n\notin [u_n,v_n], that [un+1,vn+1]⊂[un,vn][u_{n+1},v_{n+1}]\subset [u_n,v_n] for every nn and (less importantly) that the lengths vn−unv_n-u_n tend to zero. But this is easy: given any closed interval II and any real number aa one can find a closed subinterval J⊂IJ\subset I that does not contain aa and has at most half the length of II.

The above proof is inexplicit in the sense that it does not directly specify a transcendental number. However, with a little trouble it can be converted into an algorithm for generating the sequence of intervals, so in that sense it is a constructive proof. (One would have to modify it slightly so that for each polynomial one found good approximations to its roots and then avoided any numbers that were within the margin of error.) But what the proof does not give is a formula for the intersection of the intervals that result.

Example 5. Is there an infinite matrix (amn)(a_{mn}) such that lim⁡namn=0\lim_n a_{mn}=0 for every mm and lim⁡mamn=1\lim_m a_{mn}=1 for every nn?

We have already seen that problems may need to be reformulated in order to become amenable to the basic just-do-it technique. Up to now the reformulation has been very mild. This example is here to show that sometimes it can be slightly deeper. In a moment I will say more precisely what I mean by this comment.

Let us begin with the observation that we have a countable set of conditions that our matrix must satisfy: its rows must tend to 0 and its columns must tend to 1. The main constraint we face is that if a row and a column intersect then they must take the same value at the point of intersection. There is thus the potential for a just-do-it proof, but in order to make it fit the general description of such proofs we need to choose what order to do the tasks in. This is where the very slight depth arises: effectively we need to prove that the union of the set of all rows and the set of all columns is countable. The simplest way of listing them is to take the first row, then the first column, then the second row, then the second column, and so on.

If we do this then the problem becomes as easy as the other examples above. How can we make the first row tend to 0? The simplest way is to set a1n=0a_{1n}=0 for every nn. How can we make the first column tend to 1, given that it must agree with the first row at a11a_{11}? The simplest way is to set a11=0a_{11}=0 and am1=1a_{m1}=1 for every m>1m>1. If we continue in this way then we rapidly see that it produces the example amn=0a_{mn}=0 if m≤nm\leq n and amn=1a_{mn}=1 if m>nm>n.

One sometimes sees examples such as am,n=m/(m+n)a_{m,n}=m/(m+n) given as solutions to this problem. While they too work, they obscure the fact that once again the problem is trivial (in the sense that no serious constraints arise when one tries to build an example).

Here is an exercise. Let gg be any function from Q×Q\mathbb{Q}\times\mathbb{Q} to R\mathbb{R}. Prove that there is a function ff from Q×Q\mathbb{Q}\times\mathbb{Q} such that for any two rational numbers λ\lambda and μ\mu the limit of f(x,λx+μ)f(x,\lambda x+\mu), as xx tends to infinity in Q\mathbb{Q}, is g(λ,μ)g(\lambda,\mu). This problem would be pretty hard to solve with an explicit formula but it is just as easy as all the others if one uses a just-do-it approach.

I should remark that in principle it is possible to use any well-ordered set to index the tasks in a just-do-it approach. This is why I describe the idea of organizing the above construction by alternating between rows and columns as “slightly deep”, since one has to realize that it is a bad idea to do all the rows first and then all the columns. The next example illustrates a just-do-it proof over a more general well-ordered set.

Example 6. Is there a subset A⊂R2A\subset\mathbb{R}^2 such that for every positive real number rr there is exactly one pair of points x,yx,y in AA such that the distance between xx and yy is rr?

The answer to this is yes, but this time the building-up process is transfinite. The set AA is required to satisfy one constraint for each positive real number rr. So we build it up an element at a time, with each new element designed to make sure that some new distance rr occurs. Of course, as we do so, we must be careful that no distance occurs twice.

To make this approach work we must appeal to the well-ordering principle, which tells us that we can ind a well-ordering of the positive real numbers. Moreover, we can do so in such a way that the number of predecessors of each rr in the well-ordering is strictly less than the number of reals. (If the continuum hypothesis is true then the number of predecessors will therefore be countable, but that is not necessary.)

If the positive reals are well-ordered, then we can associate with each one an ordinal α\alpha, which we call its index. Now let us define the elements of AA by induction on these ordinals. Suppose that we have defined a sequence of sets AβA_\beta, one for each ordinal less than α\alpha, in such a way that (i) if β<γ\beta<\gamma then Aβ⊂AγA_\beta\subset A_\gamma, (ii) for each β<α\beta<\alpha the real number with index β\beta occurs as a distance in AβA_\beta, and (iii) no distance occurs more than once in any AβA_\beta. We now construct AαA_\alpha as follows. If the distance rr with index α\alpha occurs in some AβA_\beta with β<γ\beta<\gamma then we let AαA_\alpha be the union of all AβA_\beta with β<α\beta<\alpha. Otherwise, we take this union and add an extra point to it in order to create a distance of rr. To do this, we choose an arbitrary point PP in the union and look at the circle of radius rr about PP. We would like to pick a point in this circle to add to our set, since this would give us a distance of rr. However, we must not add a point that causes any of the existing distances to be duplicated. Geometrically speaking, our new point must not lie on any circle about any existing point if the radius of that circle is equal to a distance we already have in the set. But each such circle intersects the circle of radius rr about PP in at most two points, and the number of such circles is easily checked to be less than the cardinality of R\mathbb{R}, which is the cardinality of any circle, so we can find a new point to continue our sequence. Continuing in this way we create the desired set.

Exercise: Here is a final question that can be solved easily using the technique of Example 6. Can you prove that there is a red/blue colouring of the set of all infinite subsets of the natural numbers, with the following two properties: (i) every infinite set XX of natural numbers has at least one red subset and at least one blue subset, and (ii) if the symmetric difference of two sets of natural numbers is finite then they have the same colour? (The second condition is there to rule out a well-known and rather straightforward direct application of the axiom of choice to obtain a colouring where two sets have different colours whenever they have a finite symmetric difference that is of odd cardinality.)