reference
Next task →
Reference lessons

Thirteen lessons that teach their own subject

These pages are written for the concept they claim to teach: topic-specific notation, real derivations, executable code, controlled experiments and honest failure analysis. They are hand-authored, not independently peer-reviewed. Generated pages elsewhere carry a template warning and are not presented as equivalent.
Hand-authored lessons
13
9 concepts + 4 full studies
With a real derivation
13
steps, not formula lists
With executable code
13
small and asserted
With failure analysis
13
specific to the topic
concept · mathematicshand-authored

Quantifiers

Quantifiers turn a predicate into a proposition: ∀ means the predicate holds for every element of a domain, ∃ means it holds for at least one. Their order changes the meaning, and their negations follow two exact rules.

Open concept lesson →
concept · linear-algebrahand-authored

Rank–nullity theorem

For a linear map T: V → W between finite-dimensional vector spaces, dim V = dim ker T + dim im T. The theorem is an exact dimension identity, proved by extending a basis of the kernel to a basis of the whole space.

Open concept lesson →
concept · optimizationhand-authored

Gradient Descent

Gradient descent turns the local geometry of a differentiable loss surface into an iterative algorithm: move opposite the steepest local direction, with a step size justified by a first-order Taylor model.

Open concept lesson →
concept · linear-algebrahand-authored

Singular Value Decomposition and Principal Component Analysis

The singular value decomposition factors any matrix into orthogonal directions and nonnegative scales, giving the optimal low-rank approximation; PCA is that same spectral structure applied to a centered data matrix, recovering the directions of maximum variance.

Open concept lesson →
concept · probability-statisticshand-authored

Bayes' Theorem and Bayesian Inference

Bayes' theorem inverts conditional probabilities: the posterior odds of a hypothesis equal its prior odds multiplied by the likelihood ratio of the observed data, with the evidence playing the role of a normalization constant.

Open concept lesson →
concept · deep-learninghand-authored

Backpropagation and Computational Graphs

Backpropagation is reverse-mode automatic differentiation: it composes local derivatives in reverse topological order of a computational graph, obtaining the gradient of one scalar loss with respect to every parameter at roughly the cost of one forward pass.

Open concept lesson →
concept · generative-aihand-authored

Scaled Dot-Product Self-Attention

Scaled dot-product self-attention maps each token to queries, keys and values, computes softmax of $QK^\top/\sqrt{d_k}$, and returns a convex combination of values — a content-based, permutation-equivariant routing layer with $O(n^2d)$ cost.

Open concept lesson →
concept · generative-aihand-authored

Transformer Architecture

A Transformer is a stack of blocks, each combining multi-head self-attention with a position-wise feed-forward network, residual connections and normalization. Attention mixes information across tokens; the feed-forward network transforms each token independently.

Open concept lesson →
concept · reinforcement-learninghand-authored

Proximal Policy Optimization

PPO stabilizes policy-gradient training by limiting how far the policy can move per update: TRPO imposes a hard KL trust region, while PPO uses a clipped importance-ratio surrogate that removes the incentive for overly large probability changes. Combined with generalized advantage estimation and value/entropy losses, it is the default general-purpose on-policy RL algorithm.

Open concept lesson →
evaluation · advancedhand-authored study

LLM-as-a-Judge: Designing Trustworthy Model-Based Evaluation

How to use an LLM as a grader without being fooled by position bias, verbosity, self-preference or uncalibrated confidence.

Open topic-specific study →
ai-agents · advancedhand-authored study

Agent Evaluation: Measuring Reliability Under Tool Failure

How to evaluate autonomous agents on long-horizon tasks when tools fail, traces are noisy and success is not a single answer.

Open topic-specific study →
research-specializations · researchhand-authored study

Mechanistic Interpretability: From Activations to Causal Claims

How to move from 'this neuron lights up' to a controlled causal claim about a circuit, with superposition and controls taken seriously.

Open topic-specific study →
gpu-infrastructure · researchhand-authored study

FlashAttention: Deriving IO-Aware Exact Attention

Why exact attention is memory-bound, how tiling and online softmax avoid the n×n matrix, and how to verify correctness.

Open topic-specific study →
New here? The core path orders nine of these concept lessons so each one uses only earlier material, and says what you should be able to do after each.
What “hand-authored” means here. The prose, notation and code were written for this concept, and the numerical examples were checked by hand or by an assertion. It does not mean the page has passed external peer review. The quality audit measures structural specificity only; it cannot certify scientific accuracy. If you find an error, it is a real defect and should be reported.