Hyperreals in a Nutshell

Link post

Epistemic status: Vaguely confused and probably lacking a sufficient technical background to get all the terms right. Is very cool though, so I figured I’d write this.

And what are these Fluxions? The Velocities of evanescent Increments? And what are these same evanescent Increments? They are neither finite Quantities nor Quantities infinitely small, nor yet nothing. May we not call them the ghosts of departed quantities?

George Berkeley, The Analyst

When calculus was invented, it didn’t make sense. Newton and Leibniz played fast and dirty with mathematical rigor to develop methods that arrived at the correct answers, but no one knew why. It took another one and a half centuries for Cauchy and Weierstrass develop analysis, and in the meantime people like Berkeley refused to accept the methods utilizing these “ghosts of departed quantities.”

Cauchy’s and Weierstrass’s solution to the crisis of calculus was to define infinitesimals in terms of limits. In other words, to not describe the behavior of functions directly acting on infinitesimals, but rather to frame the the entire endeavour as studying the behaviors of certain operations in the limit, in that weird superposition of being arbitrarily close to something yet not it.

(And here I realize that math is better shown, not told)

The limit of a function at is if for any there exists some such that if

then

Essentially, the limit exists if there’s some value that forces to be within of if is within of . Note that this has to hold true for all , and you choose first!

From this we get the well-known definition of the derivative:

and you can define the integral similarly.

The limit solved calculus’s rigor problem. From the limit the entire field of analysis was invented and placed on solid ground, and this foundation has stood to this day.

Yet, it seems like we lose something important when we replace the idea of the “infinitesimally small” with the “arbitrarily close to.” Could we actually make numbers that were infinitely small?

The Sequence Construction

Imagine some mathematical object that had all the relevant properties of the real numbers (addition, multiplication are associative and commutative, is closed, etc.) but had infinitely small and infinitely large numbers. What does this object look like?

We can take the set of all infinite sequences of real numbers as a starting point. A typical element would be

where is some infinite sequence of real numbers.

We can define addition and multiplication element-wise as:

You can verify that this is a commutative ring, which means that these operations behave nicely. Yet, being a commutative ring is not the same thing as being an ordered field, which is what we eventually want if our desired object is to have the same properties as the reals.

To get from to a field structure, we have to modify it to accommodate well-defined division. The typical way of doing this is looking at how to introduce the zero product property: i.e. ensuring that if then if either one of is .

If we let be the sequence of all zeros in then it is clear that we can have two non-zero elements multiply to get zero. If we have

and

then neither of these are the zero element, yet their product is zero.

How do we fix this? Equivalence classes!

Our problem is that there are too many distinct “zero-like” things in the ring of real numbered sequences. Intuitively, we should expect the sequence to be basically zero, and we want to find a good condensation of that allows for this.

In other words, how do we make all the sequences with “almost all” their elements as zero to be equal to zero?

Almost All Agreement ft. Ultrafilters

Taken from “five ways to say “Almost Always” and actually mean it”:

A filter on an arbitrary set is a collection of subsets of that is closed under set intersections and supersets. (Note that this means that the smallest filter on is itself).

An ultrafilter is a filter which, for every , contains either or its complement. A principal ultrafilter contains a finite set.

A nonprincipal ultrafilter does not.

This turns out to be an incredibly powerful mathematical tool, and can be used to generalize the concept of “almost all” to esoteric mathematical objects that might not have well-defined or intuitive properties.

Let’s say we define some nonprincipal ultrafilter on the natural numbers. This will contain all cofinite sets, and will exclude all finite sets. Now, let’s take two sequences and define their agreement set to be the indices on which are identical (have the same real number in the same position).

Observe that is a set of natural numbers. If then cannot be finite, and it seems pretty obvious that almost all the elements in are the same (they only disagree at a finite number of places after all). Conversely, if this implies that , which means that disagree at almost all positions, so they probably shouldn’t be equal.

Voila! We have a suitable definition of “almost all agreement”: if the agreement set is contained in some arbitrary nonprincipal ultrafilter .

Let be the quotient set of under this equivalence relation (essentially, the set of all distinct equivalence classes of ). Does this satisfy the zero product property?

(Notation note: we will let denote the infinite sequence of the real number , and the equivalence class of the sequence in .)

Yes, This Behaves Like The Real Numbers

Let such that . Let’s break this down element-wise: either must be zero for all As one of the ultrafilter axioms is that it must contain a set or its complement, either the index set of the zero elements in or the index set of the zero elements in will be in any nonprincipal ultrafilter on Therefore, either or is equivalent to in so satisfies the zero product property.

Therefore, division is well defined on ! Now all we need is an ordering, and luckily almost all agreement saves the day again. We can say for that if almost all elements in are greater than the elements in at the same positions (using the same ultrafilter equivalence).

So, is an ordered field!

Infinitesimals and Infinitely Large Numbers

We have the following hyperreal:

Recall that we embed the real numbers into the hyperreals by assigning every real number to the equivalence class . Now observe that is smaller than every real number embedded into the hyperreals this way.

Pick some arbitrary real number . There exists such that . There are infinitely many fractions of the form , where is a natural number greater than , so is smaller than at almost all positions, so it is smaller than .

This is an infinitesimal! This is a rigorously defined, coherently defined, infinitesimal number smaller than all real numbers! In a number system which shares all of the important properties of the real numbers! (except the Archimedean one, as we will shortly see, but that doesn’t really matter).

Consider the following

By a similar argument this is larger than all possible real numbers. I encourage you to try to prove this for yourself!

(The Archimedean principle is that which guarantees that if you have any two real numbers, you can multiply the smaller by some natural number to become greater than the other. This is not true in the hyperreals. Why? (Hint: breaks this if you consider a real number.))

How does this tie into calculus, exactly?

Well, we have a coherent way of defining infinitesimals!

The short answer is that we can define the star operator (also called the standard part operator) as that which maps any hyperreal to its closest real counterpart. Then, the definition of a derivative becomes

where is some infinitesimal, and is the natural extension of to the hyperreals. More on this in a future blog post!

It also turns out the hyperreals have a bunch of really cool applications in fields far removed from analysis. Check out my expository paper on the intersection of nonstandard analysis and Ramsey theory for an example!

Yet, the biggest effect I think this will have is pedadogical. I’ve always found the definition of a limit kind of unintuitive, and it was specifically invented to add post hoc coherence to calculus after it had been invented and used widely. I suspect that formulating calculus via infinitesimals in introductory calculus classes would go a long way to making it more intuitive.