Vectors from boxes to similarity
Edit coordinates and inspect alignment, contribution traces, norms, dot products, and cosine similarity.
Open full-screen Python lab ↗A complete course · six parts
The book begins with two self-contained tutoring chapters for readers whose last formal mathematics course was calculus. Only after those foundations are secure does it introduce the search problem, the proof, approximate encryption, HDL, and the production implementation.
Begin with four boxes → Open the live Doolittle core atlas ↗ Enter the pure-GPU chip deep dive ↗Hands-on laboratory atlas
These are reactive Marimo applications, not screenshots. They execute entirely in your browser with Pyodide WebAssembly, keep their construction code visible, and are embedded again at the moment each chapter needs them.
Edit coordinates and inspect alignment, contribution traces, norms, dot products, and cosine similarity.
Open full-screen Python lab ↗Construct every pair, route it to a bucket, and change only the boundary rule to obtain negacyclic multiplication.
Open full-screen Python lab ↗Solve the index equation, inspect contributor bounds, and probe the proof with small exact examples.
Open full-screen Python lab ↗Change values and scale bits while tracking rounding error, product scale, integer growth, and remaining headroom.
Open full-screen Python lab ↗Change downstream stalls and latency while watching offers, transfers, accepted order, and completion order.
Open full-screen Python lab ↗Detailed contents
Each section contains explanations, worked examples, visual models, retrieval questions, and a compact section summary. Studios close each chapter with cumulative practice.
Part I · Chapter 1
The language of positions, sums, and matching coordinates
Part I · Chapter 2
Polynomials and convolution without assumed algebra or number theory
Part II · Chapter 3
Embeddings, similarity search, and the privacy boundary
Part III · Chapter 4
Deriving the reversal instead of presenting a trick
Part III · Chapter 5
Support, wraparound, invariants, and complexity
Part IV · Chapter 6
CKKS introduced as layers, not alphabet soup
Part V · Chapter 7
A patient introduction to HDL and streaming datapaths
Part VI · Chapter 8
From source contracts to the score engine and back
The teaching contract
Every compact formula is first expanded into ordinary steps. Every new term is named only after its underlying action is visible. Every boundary rule gets a picture and a worked example.
The book expects persistence, not prior number theory. Optional formal notation is placed behind disclosures so it can enrich the lesson without blocking the main path.