Skip to content

Fix power precedence and bounded refusals in MathGate - #1

Merged
kyal102 merged 1 commit into
masterfrom
codex/mathgate-boundaries
Oct 1, 2026
Merged

kyal102 merged 1 commit into
masterfrom
codex/mathgate-boundaries

Conversation

@kyal102

@kyal102 kyal102 commented Oct 1, 2026

Copy link
Copy Markdown
Owner

MathGate previously evaluated -2^2 as 4, associated chained powers incorrectly, and could raise instead of returning a refusal for large factorials or deeply nested input. This change applies conventional power precedence and returns sealed refusals for documented computation, output-size and parsing limits.

The public 240-case corpus is unchanged: 192 exact answers and 48 expected refusals, with zero failures or certificate drift. Eighteen unit tests pass, including new regressions for the discovered failures. The README now identifies this corpus as a public development suite rather than an independent evaluation.

Validation: python -m unittest discover -s tests, python -m mathgate --bench, demo, and git diff --check passed. AI-assisted implementation and review.

@kyal102
kyal102 merged commit a70db26 into master Oct 1, 2026
10 checks passed
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.

2 participants