A few years ago this false argument was trending on reddit, it claimed to prove that π=4

The first step is right, the diameter is 1, so the circumferance is π.

The second step is right, the bounding square has a perimeter of 4.

The third step is right, as is the fourth step. In fact, any finite number of iterations of that rule will yield a polygon of perimeter 4. Also, the perimeter converges to the circle.

However, the final step is wrong, because it states that π = 4. Since this is not true, this proof must have a flaw somewhere. But where?

When I first saw this, I thought the reason the proof was wrong was that the perimeter *didn’t* converge to the circle, that it instead became some kind of fractal. This turned out to be wrong, as the people on /r/math were quick to point out.

So if the perimeter does converge to the circle, what’s wrong?

The answer took me two classes in introductory real analysis to finally understand, the answer is subtle, but it has to do with the fifth step, *repeat to infinity*. Mathematics can certainly handle repeating something to infinity, but it usually defies your intuition. As it did mine.

First, suppose we a sequence of continuous functions:

Where for each non-negative integer n,

That is, it maps a point in the closed unit interval into the plane, since it is continuous, each f_{n} defines a curve.

These f_{n} functions represent the successive perimeters, f_{0} is the square, f_{1} is the square with the corners inverted, etc.

Now, what the picture showed holds in the case that n is finite, that is, given any non-negative integer n, f_{n} has a perimeter of 4.

Also, what the picture suggested is that the limit of f_{n} as n goes to infinity is the circle. Formally:

Where C is the function that defines a circle of diameter 1.

Formally, this means that given any real number t in [0,1], and any ε > 0, we can find an N high enough so for that all n > N,

This just means that any given point on the curve gets arbitrarily close to a point on the circle. This is a kind of convergence called *pointwise convergence*.

One downside to pointwise convergence is that it is possible for a sequence of continuous functions to converge to a non-continuous function. Also, **the limit of the perimiter is not necessarily the perimeter of the limit**.

Therefore, even though the sequence of perimeter 4 polygons converged pointwise to a circle, the limit of the permieter, π, does not necessarily equal the perimeter of the limit, 4.

~~Another kind of convergence, called uniform convergence does have the properties that the trollface wants, but this sequence does not uniformly converge, the proof of which I will leave to the reader as an exercise.~~

My explanation by non-uniform convergence is wrong, the property that the f_{n} sequence must have is that the first-order derivatives f’_{n} must converge, which they don’t since each one has corners.

To see why, the definition of curve length of f_{n} over an interval [a,b] is:

At each corner point, the derivative f’_{n} is not even defined, therefore the derivatives do not converge.

Thank you commenters for pointing this out, and reminding me how important it is to get the details right. I was wrong about that argument being wrong in multiple ways.