typst compile accepts nearly anything in math mode, so "compiles" says almost nothing about correctness. In a ~150-sentence stress test, ~99% of outputs compiled, including:
strings of single letters, from words the model didn't know: x s b i ("x sub i"), c u e sqrt(x) ("cube root of x")
unbalanced brackets: (x + 1)^2 + 1)^2 + 1)^2, (-frac(b, 2). Typst renders these without an error.
Only an unclosed function call (x y z frac(x) actually failed.
Fix:
Add a balanced-bracket check ((), function calls) as its own metric in isotope-eval.
Grow eval/hand_test.jsonl from about 32 to about 100 rows using the stress-test failures (see the other issues), tagging each row by category so results can be broken down.
Later: render-match evaluation, i.e. compare rendered output rather than strings.
Do this first, so the other fixes can be measured.
`typst compile` accepts nearly anything in math mode, so "compiles" says almost nothing about correctness. In a ~150-sentence stress test, ~99% of outputs compiled, including:
- strings of single letters, from words the model didn't know: `x s b i` ("x sub i"), `c u e sqrt(x)` ("cube root of x")
- unbalanced brackets: `(x + 1)^2 + 1)^2 + 1)^2`, `(-frac(b, 2)`. Typst renders these without an error.
Only an unclosed function call (`x y z frac(x`) actually failed.
**Fix:**
- [ ] Add a balanced-bracket check (`()`, function calls) as its own metric in `isotope-eval`.
- [ ] Grow `eval/hand_test.jsonl` from about 32 to about 100 rows using the stress-test failures (see the other issues), tagging each row by category so results can be broken down.
- [ ] Later: render-match evaluation, i.e. compare rendered output rather than strings.
Do this first, so the other fixes can be measured.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
typst compileaccepts nearly anything in math mode, so "compiles" says almost nothing about correctness. In a ~150-sentence stress test, ~99% of outputs compiled, including:x s b i("x sub i"),c u e sqrt(x)("cube root of x")(x + 1)^2 + 1)^2 + 1)^2,(-frac(b, 2). Typst renders these without an error.Only an unclosed function call (
x y z frac(x) actually failed.Fix:
(), function calls) as its own metric inisotope-eval.eval/hand_test.jsonlfrom about 32 to about 100 rows using the stress-test failures (see the other issues), tagging each row by category so results can be broken down.Do this first, so the other fixes can be measured.