Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert polynomial coefficient type to use modarith #1096

Draft
wants to merge 45 commits into
base: main
Choose a base branch
from

Conversation

j2kun
Copy link
Collaborator

@j2kun j2kun commented Nov 16, 2024

TODO:

  • Add verifiers to ensure polynomial leading term and monomial op use the correct AnyType
  • Refactor PolynomialToStandard to make type management less chaotic

@j2kun j2kun marked this pull request as draft November 16, 2024 01:16
@j2kun j2kun force-pushed the polynomial-anytype branch 2 times, most recently from 3b3cff8 to f962e3e Compare November 19, 2024 05:13
@j2kun j2kun force-pushed the polynomial-anytype branch 2 times, most recently from 3a71467 to beab499 Compare November 20, 2024 07:14
Replacing x-y with x + -1*y started breaking things because the constant
-1, when inserted into a mod arith type as a mod_arith.constant, was
being represented internally as -1 : i32, which for test_mul_1 caused it
to be one larger than the modulus (which was 2**31 - 1), i.e., zero,
which resulted in an infinite loop.
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