Skip to content

fix(scoring): strip frac parens around post-#434 power atoms - #472

Open
marktech0813 wants to merge 2 commits into
James-CUDA:mainfrom
marktech0813:fix/frac-power-atomic-parens
Open

fix(scoring): strip frac parens around post-#434 power atoms#472
marktech0813 wants to merge 2 commits into
James-CUDA:mainfrom
marktech0813:fix/frac-power-atomic-parens

Conversation

@marktech0813

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • pytest tests/test_reward_nested_frac_unwrap.py
  • CI lint / typecheck / tests green

Made with Cursor

marktech0813 and others added 2 commits July 24, 2026 13:51
After braced exponents fold to base^(...), \frac{x^{2}}{2} stayed
(x^(2))/2 while the slash form was x^(2)/2 — exact match failed without
sympy. Extend the atomic-operand strip to that spelling (James-CUDA#471).

Co-authored-by: Cursor <cursoragent@cursor.com>
…UDA#423)

Main ships James-CUDA#423 regression tests; without excluding '.' from the edge-strip
set, wrapped tokens like '.5.' / '$.5' collapse to 5.0 and fail CI.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] MATH normalize: \frac{x^{2}}{2} keeps outer parens after #434 exponent fold — exact match fails vs x^{2}/2

1 participant