Skip to content

fix(scoring): extract and value-normalize \binom / \choose#492

Open
marktech0813 wants to merge 1 commit into
James-CUDA:mainfrom
marktech0813:fix/489-binom-choose
Open

fix(scoring): extract and value-normalize \binom / \choose#492
marktech0813 wants to merge 1 commit into
James-CUDA:mainfrom
marktech0813:fix/489-binom-choose

Conversation

@marktech0813

Copy link
Copy Markdown
Contributor

Summary

  • Extract keeps \binom{n}{k} / {n \choose k} as one term.
  • Normalize folds to binomial(n,k) so gold 10 matches (not index k).
  • CI helpers: ruff <0.16, DROP leading-decimal edge-strip.

Fixes #489

Test plan

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

Made with Cursor

Binomial answers were read as the lower index digit and never equated to
the combinatorial value; fold to sympy binomial(n,k) (James-CUDA#489).

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: \binom{n}{k} / \choose extract k and never equal binomial value

1 participant