Skip to content
nonconvexcard

Mathematical laboratory

nonconvexcard

The mathematical foundations of modern AI — from probability to optimization, learning theory, deep learning and LLM systems.

Theory with the hypotheses stated, proofs you can fold away until you have tried, seeded simulations you can rerun, and a problem database that goes past the point where the answers are known.

How every topic is built

The same twelve movements, in the same order, on every page. You always know where the proof is, and you always know whether there is one.

  1. 01IntuitionWhat the result says before any notation.
  2. 02DefinitionsStated precisely, with the quantifiers in the right order.
  3. 03FormulationThe object of study, written down.
  4. 04TheoremsWith every hypothesis spelled out.
  5. 05ProofsComplete, folded by default so you can try first.
  6. 06DerivationsStep by step, with the reason for each step.
  7. 07ExamplesWorked, including ones where the hypotheses fail.
  8. 08ExperimentA seeded simulation you can rerun.
  9. 09CodeThe algorithm, implemented.
  10. 10ProblemsWith hints and full solutions.
  11. 11PapersWhere this mathematics is actually used.
  12. 12ResearchWhat is open, stated as open.

Every claim carries its status

Proof library

The most common failure in writing about machine learning is presenting an empirical regularity in the grammar of a theorem. Nothing here does that. “SGD converges” is never written; “under assumptions A, B and C, SGD satisfies X” is, with A, B and C stated.

  • Theorem

    Proved here, or proved in a cited source and marked as such.

  • Heuristic

    An argument that is useful and is not a proof.

  • Empirical observation

    A measurement that has been reproduced and not explained.

  • Conjecture

    Believed, with reasons given, and unproved.

  • Open problem

    Nobody knows. Stated so you can see the edge.

294 of the 463 results stated on this site are proved in full on their page; the rest are definitions, or are labelled with one of the statuses above.

Models

Systems

A result, as it appears here

Theorem

Cauchy–Schwarz inequality

The inner product of two vectors is bounded by the product of their norms, with equality exactly for parallel vectors.

Linear Algebra for Machine Learning · Theorem · proof included

From The Abyss

All 38
SolvedProblemFieldTypeDifficultyTime
Derive the optimal weight update abyssQuantizationProofAdvanced1 hour
Exactness of speculative sampling with a modified acceptance rule abyssLLM OpsProofAdvanced1 hour
Prove Eckart–Young–Mirsky abyssFine-TuningProofAdvanced1 hour

Papers, broken down by the mathematics they use

All 29

On sources and honesty

The exposition, examples and problems here are original. Standard references — Vershynin’s High-Dimensional Probability, Boyd and Vandenberghe, Shalev-Shwartz and Ben-David, Wainwright, and the cited papers — are named where a result is standard, and none of them is reproduced. Where a proof is omitted, the page says so and points at a source rather than gesturing. Where nothing is known, the page says that too.

Your progress is stored only in this browser: there is no account, no server and no analytics. The whole site is a static export, so there is nowhere for your data to go.