Hand stencils at Cueva de las Manos, Argentina (c. 7300 BC - AD 700). Paint was sprayed through bone pipes onto hands pressed against the rock wall. Photo: \cite[Pablo A. Gimenez]{cuevadelasmanos_image}, [CC BY-SA 2.0](https://creativecommons.org/licenses/by-sa/2.0/).The Mark I Perceptron, the experimental letter-recognising machine built by Frank Rosenblatt's group and announced by the U.S. Navy. Photo: \cite[U.S. Navy]{perceptronimagedetection}, public domain.
## A personal note: This is an experiment
The universe is a process of reaching out into the multi-colored world, and drawing it together into a single, new unity.
What I was trying here is to understand AI using AI. I tried to follow every question I could possibly think of regarding AI to it's source, trying to find original publications and put everything in place, so one has a complete mental model of where AI came from and how it works. I go into many different, seemingly unrelated fields, but as a Whiteheadian, I assume that Reality is One, and everything is connected to everything else, and as such there are no *really* unrelated fields. Often, connections arise where you didn't expect them at all; these are the connections I am trying to find, to weave picture of AI as complete as I can.
I tried my best to fact-check every claim, but since this project also my personal learning curve of a diverse set of very different, very complex sciences like Astronomy, Mathematics, Computer Science, Material Science, Cultural History, Cosmology, Chemistry, Physics and so on, and I myself am not a polymath (even though I aspire to be one to the best of my limited abilities), I may have introduced errors here and there.
What I'm trying to do here is to paint a more-or-less complete picture of how AI came to be, and how many threads were neccessary for it to come into existance.
Similiar to the [unfinishable map](https://unfinishablemap.org/), this is a never-to-be-finished task, since the Universe is constantly changing, and so is AI. My goal is to, as clearly and deeply as possible, draw the current state of what lead to AI systems like chatGPT. I go into the [history](history), starting with the invention of counting itself, and the prehistory, starting with the question [why anything at all exists and the Big Bang](untold_history_i), and many things inbetween.
## What This Course Is β and What It Isn't
**This is** a long, free, interactive digital textbook that traces the ideas behind modern AI from Stone Age tools and the history of mathematics all the way to how large language models actually work inside. It is hands-on and often mathematically demanding: you build intuition by doing, and by the end you understand the *why* and the *how*, not just the *what*.
**This is not** a programming tutorial (you will not set up a dev environment), a "5 quick tips" article or a list of prompting tricks, or a passive overview you can skim in one evening. If you are looking for a short, surface-level introduction, this is not it. If you want the real, complete picture β history, mathematics, and machines together β you are in the right place.
## A Synthesis of Science and History
To understand a Neural Network is to understand a tapestry of ideas that kept sidetracking into unexpected fields β and the tapestry is wide: its threads begin at the **Big Bang**, pass through the forging of the elements, the first cells, and the first numbers, and run on to the first looms and the first chips. Two pages carry that history: [The Brief History of AI](history.php) is the entry into the history of AI β the direct intellectual lineage from the first tools to the first neural models. [The Untold History of AI](untold_history_i.php) starts at the very beginning: the question of why there is anything at all, the Big Bang, the forging of the elements, and the development of life. The most consequential sidetracks:
* **Astronomy and Precision:** Astronomers from the fourth century onward, mapping the stars with imperfect data, developed the very optimization tools that let modern LLMs learn from the internet.
* **The Technical and The Philosophical:** I do not just look at code. Concepts of logic, language, and "Geist" migrate from philosophical debates into billions of trainable parameters β and I follow them the whole way.
* **AI in Society:** I treat the technology as a cultural mirror, looking at how these systems meet human values, the risks of hallucinations, and the ethical responsibility of building intelligent tools.
* **The Number and the Token:** I follow the number itself β from the Babylonians' place value and the Indian zero, through the Chinese minus sign and Leibniz's binary, to the token vocabularies modern models actually read. The "token" a Transformer predicts is a direct descendant of the first numerals, and every integer in the code you write inherits the same chain.
For most of the last century, the sciences and the humanities have drifted into two separate worlds whose methods, vocabulary, and values are largely opaque to each other β a split \cite[Charles Percy Snow (1959)]{twocultures} memorably named the "two cultures" problem. I believe reality is one, and different sciences are different ways of looking at the same world β so this course needs both ways of looking at it.
## An Interactive Playground
This is not a book to be read passively. It is a playground for exploration:
* **Learn by Doing:** Move the sliders, input your own data, click through the visualizations. Curiosity is the primary engine of learning here β try to see where the logic holds and where it breaks.
* **Navigating Complexity:** At times the mathematics gets heavy. You do not need to master every equation on the first pass: skip it, play with the interactive models, and return to the theory once the numbers have an intuitive feel.
* **Pick and Skip:** Use the *table of contents* to navigate and skip all sections that are of no interest to you.
* **The Atlas:** Every person, place, institution, author, and event in the Atlas dataset is a dot on [The Atlas](atlas.php) β an interactive 3D globe you can zoom from Earth, past the Moon, all the way to the Big Bang.
* **The Starting Point:** I assume no prior knowledge beyond good English reading capability, the practical knowledge of a Stone Ager, and the willingness to put in effort. That said, the climb is steep: I start from nothing but quickly ascend into dense mathematics and complex architectures. You will not grasp everything on the first read, and that is fine. Use the interactive demos to build intuition, skip what feels too heavy, and come back later. Expect to re-read, tinker, and take your time.
## A Course That Adapts to You
This course is too long to consume in one shape, so it adapts to **you**. Look for the button top-right and pick your *profile* (Curious / Student / Engineer / Researcher) and *level* (High School / Undergrad / Grad / PhD); each combination loads a curated topic set. **Math is split into Math I / II / III** and **Statistics into Stats I / II**, so a high-school reader is never shoved into graduate-level integrals. If you identify more with *being* a certain kind of reader than with what you do, the picker also offers the **classic types** β the mathematician who wants the math but not the history, the builder, the historian, the philosopher β and, if you refuse to skip anything, the **polymath**, who loads everything. You can also choose how *heavy* to go: **tone** dials mute the dense math, formal logic, linguistics, or code, and **interested layman** mode keeps only the accessible, jargon-free core.
The fastest start: pick the type you're most like, or open the detailed settings and tune every topic by hand:
Toggle individual topics to fine-tune (click several at once β it's pure set logic, and the page reacts live). The **tone** chips switch off whatever feels heavy in one click; sections that no longer match recede behind a soft banner that tells you *why*, partially-matching ones fade back but stay readable, and home-page tiles dim in step so you can always see what exists. Your choices are saved in a cookie and survive reloads.
## What You Will Achieve
By the time you reach the end of this journey, you will have moved from basic arithmetic to a deep technical understanding of modern Large Language Models. You will be able to:
* **Explain the inner workings** of Neural Networks, from the first Perceptron to the Transformer architectures that power ChatGPT.
* **Manipulate and optimize** data models using the same mathematical principles of probability and approximation used by researchers.
* **Critically evaluate** the societal and philosophical implications of AI, understanding both its technical brilliance and its inherent limitations.
You will see that AI is not a sudden magic invention, but the technical and philosophical culmination of centuries of human inquiry.
## Navigating the Ladder of Abstraction
To truly grasp the nature of Artificial Intelligence, I will move through various levels of abstraction, much like the framework described by \citeauthor{hayakawa} β and I will train myself to climb up and down this "ladder" fluently:
* **The Concrete Base:** At the lowest rungs I deal with the "process level" β the raw, physical bits of data and the specific numerical weights in a matrix.
* **The Intermediate Technicalities:** As I ascend, I group these specifics into functional concepts like Backpropagation or Gradient Descent β the tools that organize raw data into recognizable patterns.
* **The High-Level Abstract:** At the top of the ladder I reach broad terms like "Topology", "Fiber Bundles", "Intelligence", "Logic", and "Ethics". They let me discuss the impact of AI on society, and they stay grounded in the mathematical rungs beneath them.
This text is designed to carry you through those shifts: I constantly move from a philosophical "why" down to a mathematical "how", keeping even the most abstract concepts tied to concrete reality.
## Disclaimer
This interactive textbook was built with the help of Google Gemini, Claude, ChatGPT and other LLM systems. I've done my best to verify the code and info, but please double-check before using it in production.
## Please report Errors!
Please report errors to my email. I try my best to keep this site as factually correct as possible, but I may get things wrong or incomplete β so I am happy to get any feedback.
Part 1
Foundations
Where we came from, what language is, and the mathematical bedrock beneath AI.