56dd0b921a769a4e9bc852f0f408968f076334f9
compiles alone accepts unbalanced parens and stray letters, so isotope-eval now also reports a balanced column and breaks hand-test exact match down by category (equation, variables, robustness, bounds, bigop-lhs, long, ...). The new rows come from the stress-test failures in #2 and #4-#9. Baseline with the current model: hand exact 41.2%, compiles 99.0%. Refs #3
isotope-typst
isotope-typst turns math written in plain English into Typst markup. For example, the integral from 0 to infinity of e to the minus x squared dx becomes $integral_0^infinity e^(-x^2) dif x$. It is a small encoder–decoder Transformer, built and trained from scratch in PyTorch on synthetic data.
Running it
You need uv and the Typst CLI (brew install typst).
./run.sh # generate data, train, and evaluate (~20 min on an M-series Mac)
uv run isotope "x squared plus 1" # translate a sentence
uv run isotope # interactive prompt