Skip to content

fix(scoring): peel absolute-value bars |x| to abs(x) - #493

Open
marktech0813 wants to merge 1 commit into
James-CUDA:mainfrom
marktech0813:fix/490-abs-bars
Open

fix(scoring): peel absolute-value bars |x| to abs(x)#493
marktech0813 wants to merge 1 commit into
James-CUDA:mainfrom
marktech0813:fix/490-abs-bars

Conversation

@marktech0813

Copy link
Copy Markdown
Contributor

Summary

  • Extract keeps |-3| as one term (not signed -3).
  • Normalize folds |x|abs(x) so gold 3 matches.
  • CI helpers: ruff <0.16, DROP leading-decimal edge-strip.

Fixes #490

Test plan

  • pytest tests/test_reward_abs_bars.py
  • CI green on this PR

Made with Cursor

|-3| was extracted as the signed interior and never equated to 3; keep
the barred span and normalize to sympy abs (James-CUDA#490).

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 grader: absolute-value bars |-x| never peel — boxed |-3| ≠ 3

1 participant