New | Zipf's Law in the Book

Available now

The Math Inside the Machine

How Intelligence Emerges from Eleven Simple Operations

Michael J. Bommarito II

History

Stories

A Napoleonic revelation in Egypt. An escape from the plague. A beachside think tank gaming the apocalypse. A dying genius, guards at his door. The people who built the math that built the machine.

Approach

Two paths

Some will follow every equation and emerge ready to read the original papers. Others will let the stories carry them. Each chapter is structured so you know when it's safe to skim.

Design

Visual

Over one hundred original diagrams trace the math from first principles to working transformer. Clean typography, copper accents, and a book designed to be read and revisited.

About the book

You already know the math inside ChatGPT. You just don't know you know it.

A Napoleonic revelation in the land of Ra. An escape from The Plague. A beachside think tank, gaming the apocalypse. A dying genius, guards at his door, and one unfinished question. These events don't seem connected to each other, let alone your last chatbot query, but they are.

Inside every AI system that appears to think is a machine built from eleven operations, the same ones you learned between kindergarten and calculus. In this book, you'll learn not just what this math means and how it works, but how the course of human history wandered its way to this moment.

Through these chapters, we trace this history: from Fourier before a skeptical Lagrange, to Shannon's statue and shadow, to Newton and Leibniz's bitter priority war, a dispute whose modern echo has spawned its own memes.

Not in the mood for math? This book is built for two kinds of reading. Some will follow every equation and find rigor enough to tackle the original papers afterward. Others will let the stories carry them. Each chapter is structured so you'll know when it's safe to skim.

By the final chapter, you'll trace a word through the transformer itself. You'll see the system as engineers do. The black box becomes glass, even if the wonder of emergence remains.

You'll be left with one last question: which is more unbelievable - the superhuman technology we are building, or the fragile history that brought us here?

Available now

Choose your edition

Stay in the loop

Get launch updates and early chapters

Follow the blog for release news, speaking events, and a first look at the diagrams and chapters.