Display equations and inline math interleave with prose. KaTeX or MathJax may render math after widget mount; the walker should treat math containers as no-mark zones (they don't contain natural-language prose).
Per plan/01_renderer.md, math blocks render as <div class="math-display" data-block-id="…"> and inline math is wrapped in <span class="math-inline">. Both should be skipped by the term walker.
The Hessian is the matrix of second-order partials. In the LaTeX source above, the words "gradient", "Jacobian", and "Hessian" do not appear — they're only in the surrounding prose, which is where they should be marked.
The inverse is the logit. Cross-entropy loss between a target distribution p and a prediction q is H(p,q)=−∑ipilogqi. KL divergence is DKL(p∥q)=∑ipilogqipi.
In self-attention, queries Q, keys K, and values V combine via scaled dot product:
Attention(Q,K,V)=softmax(dkQK⊤)V
The numerator's normalization is cosine similarity when Q and K are unit-norm. The whole operation acts on tensors of shape (batch, heads, seq, d_k). einsum notation compresses the math: bhqd, bhkd -> bhqk.
Positional encoding adds a sinusoidal vector to each token embedding so the dot-product attention can distinguish positions:
Inline math in dense paragraphs: when f(x)=x2 and g(x)=ex, the chain rule gives dxdg(f(x))=g′(f(x))f′(x)=ex2⋅2x. The terms "gradient" and "attention" appear in this very paragraph and should be marked in the prose, but the math expressions f, g, ex2 should NOT be touched by the walker.