Chapter 17
The Deep Mystery of Mathematics

17.1 The Universal Agreement

Logic and mathematics are abstract by nature. What is common to the addition of two bananas and the addition of two apples is the expression 2 + 2. Yet 2 + 2 is not something one can eat, touch, or weigh. It is not located anywhere in space. It has no mass, no electric charge. It cannot be detected with any measurement device—not even LIGO or the James Webb Space Telescope (JWST)! What, then, is it?

The most striking feature of mathematics is its stubborn universality. Two sentient beings, separated by light-years of vacuum or centuries of history, will inevitably converge upon the same Prime Number Theorem. No matter how far we look in space and time, all of physics appears to follow the same universal rules, without exception.

This suggests that mathematics is not a mere cultural artifact like music or fashion, but a reflection of a fundamental structure.

The physicist Eugene Wigner famously called this the “Unreasonable Effectiveness of Mathematics in the Natural Sciences.” Math does not appear to be just a language we speak, but a landscape we explore.

17.2 Doctrines of Mathematics

In the history of philosophy, several primary “doctrines” have attempted to explain this phenomenon.

Platonism

Platonists, such as Roger Penrose, argue that mathematical entities (numbers, sets, functions) are real, abstract objects that exist independently of us. They do not exist in space or time, but they have a permanent existence in a “Platonic realm.”

The “unreasonable effectiveness” of mathematics in the physical sciences suggests that the universe is built on a mathematical blueprint. If we simply made it up, why does it predict the behavior of subatomic particles so perfectly?

Formalism

Formalists, like David Hilbert, argue that mathematics is a formal game played with marks on paper. We agree on the results not because we’ve discovered some universal truth, but because we started with the same axioms (rules). If we both play chess with the exact same rules, we will both agree on what a checkmate looks like. That doesn’t mean checkmate is a fundamental law of physics; it is just the logical conclusion of the rules we agreed upon.

Intuitionism

This school of thought argues that math is entirely a construction of the human mind. Mathematics appears universal only because the human brain evolved to process logic and patterns in a specific, advantageous way. We don’t see exceptions to math in the universe because we use math as the sensory filter to understand the universe in the first place. If something did not fit our mathematical logic, we might not even have the cognitive architecture to perceive it.

In this view, the universe may be fundamentally chaotic, and math is merely our brain’s formatting tool. Imagine if our eyes could only see red, green, and blue; we would confidently conclude the universe is made of only those colors. However, those colors are properties of us, the observers. Math could be a similar evolutionary filter, causing us to ignore the parts of reality that do not fit into tidy equations.

Structuralism / Type Theory

Structuralists argue that mathematics is about patterns and relationships, not the intrinsic nature of the objects themselves. Type theory formalizes this perspective: every object has a type, and operations are only valid if the types match. In programming, this is analogous to type-safe code: you cannot add a string to an integer without explicit type-casting or conversion.

Type theory serves as an alternative foundation for modern mathematics, bridging naturally to computer science, automated proof assistants, and functional programming.

17.3 The Predictive Power Problem

One of the strongest arguments for Platonism is when math boldly leads the way and physical reality is forced to follow.

Astronomers didn’t find Neptune by aimlessly scanning the night sky. They noticed Uranus wasn’t moving the way Newton’s math said it should. Urbain Le Verrier did the pen-and-paper math, calculated the exact coordinates of an undiscovered gravitational disturber, and told observers where to look. They pointed a telescope there, and there it was.

Paul Dirac wrote down a relativistic quantum equation for the electron in 1928. The math stubbornly yielded two solutions (much like how √ --
  4 can be 2 or 2). One solution described the standard electron; the other predicted a bizarre, positively charged twin. A few years later, the positron was physically discovered.

Einstein’s equations of General Relativity predicted that a sufficiently massive star could collapse into a spatial point of infinite density. Even Einstein found this physically absurd and assumed nature would prevent it. Yet, we now have direct images of event horizon boundaries thanks to the Event Horizon Telescope (EHT).

17.4 Axiomatic Systems

Mathematics is an axiomatic system. It consists of a set of axioms—statements assumed to be true without proof—and rules of logical inference used to generate further statements, called theorems.

Classical mathematics, from Euclid’s geometry to modern set theory, operates within such frameworks. One starts from a set of axioms, and mathematics is everything that logically follows.

Unification of Mathematics

Just like different physical theories have been unified, modern mathematics has undergone massive consolidation. In the early 20th century, it appeared that all disparate branches of math—from the smooth curves of geometry to the probabilities of statistics—could be expressed in the unified language of Set Theory. By defining a “number” or a “point” as a specific arrangement of sets, mathematicians created a universal assembly language.

As of today, Zermelo-Fraenkel Set Theory with the Axiom of Choice (ZFC) is the standard “assembly language” of mathematics. One can define a number as a set, a function as a set of ordered pairs, and a geometric shape as a set of points.

However, a growing rival is Category Theory. Where Set Theory focuses on the “insides” of objects (what elements are in a set), Category Theory focuses entirely on the “relationships” (how structures transform into one another). Many argue that Category Theory is a far more natural unified language because it handles compositional structures beautifully.

The Programming Analogy

There is a surprisingly clean analogy between programming paradigms and the set-theoretic vs. category-theoretic perspectives. All software consists of two ingredients: data and code. Depending on which perspective you emphasize, you get different paradigms:

# Functional style (focus on code / transformations)
shift_left(integer)

# Object-oriented style (focus on data / objects)
integer.shift_left()

Set theory is analogous to the object-oriented, data-centric perspective: everything is built bottom-up from elements and sets of elements. Category theory is analogous to the functional, transformation-centric perspective: it focuses on how structures relate and compose, abstracting away the internal data.

Category Theory Equation Example

In category theory, objects and morphisms (arrows) are central.

A simple example:

f : X → Y,  g : Y → Z   ⇒    g ∘ f : X → Z

Mathematical Pluralism

Modern mathematical philosophy has shifted significantly toward Mathematical Pluralism [6]. Proponents like Joel David Hamkins argue for a set-theoretic multiverse [8], suggesting that instead of one absolute, unique mathematical reality, there exist diverse, distinct concepts of sets, each instantiated in its own valid mathematical universe [16].

Pluralism allows multiple internally consistent mathematical worlds to coexist. Only a small subset of these frameworks appears realized in our specific physical universe, but multiple structures (set theory, category theory, type theory) remain fully valid within their own logical jurisdictions.

In computing, these ideas are highly practical: when building a compiler, a programming language, or an automated theorem prover, you must explicitly choose which underlying logic your system will enforce.

17.5 The Foundational Crisis

Not even mathematics is perfect.

David Hilbert famously dreamed of a universal, mechanical way to prove every mathematical truth. Later, researchers wondered if mathematical truth could be entirely mechanized as a computational process.

However, Kurt Gödel and Alan Turing shattered this dream of total mechanization. Turing proved that there are fundamental limits to what a machine can calculate, even given infinite time and memory. For example, Chaitin’s Constant Ω is a well-defined real number that is mathematically proven to be uncomputable. Gödel proved that in any sufficiently powerful axiomatic system, there will always be true statements that the system’s own rules can never prove.

All mathematical doctrines attempt to resolve the same unsettling observation: the universal consensus of mathematical truth. Whether in the biological mind of a human or the silicon circuits of a space probe, the internal logic of mathematics remains invariant.

In computer science, there is no ambiguity that data-oriented and code-oriented programming paradigms serve as two complementary perspectives on the exact same underlying substrate—the Turing Machine.

However, this clean duality slightly breaks down when comparing set theory and category theory. Several deep puzzles remain:

17.6 Non-Mathematics and Pluralistic Physics

One might ask whether entirely different kinds of universes could exist—ones that do not admit a description in terms of ordinary, classical mathematics.

If mathematics were merely a cultural game humans invented, could there be at least one person out of billions who could develop a functioning “non-mathematics”—a system that successfully describes observable physical measurements using an entirely different mathematical universe?

Actually, we don’t even need to look to other universes for this. Our own physics is already quietly pluralistic.

Does physics always have to follow standard, non-plural math? A physical measurement—like a detector registering a photon—is just a raw event in the world. How we calculate and predict that event is entirely up to our choice of mathematical framework.

For instance, we standardly model quantum mechanics using complex numbers and continuous calculus. But we could stubbornly choose to describe the exact same quantum experiments using Constructive Mathematics (where infinite real numbers do not exist and the Law of the Excluded Middle is rejected), or even purely discrete graph theory and cellular automata.

The physics (the observable measurements) remains identical, but the mathematical ground beneath it shifts entirely.

So, pluralism is not a system of chaos where 2 + 2 = 5. Rather, it appears to be the realization that we do not live in a single, rigid mathematical dictatorship. Physics does not demand a single “true” math; it is perfectly content to be mapped by a pluralistic multiverse of different logical systems. We are not discovering the one true language of the universe; we are simply choosing which mathematical dialect we prefer to write our maps in.

17.7 Conclusions

Across all major doctrines—Platonism, Formalism, Intuitionism, Structuralism, and Pluralism—one finds a common, unavoidable feature: mathematics is not arbitrary. Its universality and predictive power never fail to assert themselves to any rational observer.

However, to a software developer accustomed to selecting the right tool for a specific job, the existence of Mathematical Pluralism introduces a lingering doubt. It suggests that Eugene Wigner’s “unreasonable effectiveness of mathematics” might not be a divine, fundamental truth of the cosmos.