Skip to content

Conversation

@msooseth
Copy link
Collaborator

@msooseth msooseth commented Jan 7, 2026

Description

Checklist

  • tested locally
  • added automated tests
  • updated the docs
  • updated the changelog

@msooseth msooseth force-pushed the dev-pow-product-update branch 4 times, most recently from 0ac6cf8 to 6b51cd6 Compare January 7, 2026 13:21
Lit 0 -> do
benc <- exprToSMT b
pure $ "(ite (= " <> benc `sp` zero <> " ) " <> one `sp` zero <> ")"
Lit 1 -> pure one
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I added this here, because while simplify indeed handles special cases, we ALSO have fuzz-testing and I want to be able to fuzz-test, which does NOT use the simplify since we are testing if the simplify is correct :)

@msooseth msooseth marked this pull request as ready for review January 7, 2026 13:23
@msooseth msooseth force-pushed the dev-pow-product-update branch 5 times, most recently from 62f7e67 to 7bb5b96 Compare January 7, 2026 14:47
…wModNatural

Removing powModNatural

Update changelog
@msooseth msooseth force-pushed the dev-pow-product-update branch from b9a282f to c2e937e Compare January 7, 2026 14:48
Copy link
Collaborator

@blishko blishko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
I think the last line in changelog is unnecessary, no?
Otherwise good to merge!

CHANGELOG.md Outdated
- Encode symbolic power of 2 as bit-shift in SMT encoding.
- Limit the expansion of the EXP operation to avoid blow-up in the size of the SMT expressions.
- New EXP rewrite rule for base-2 exponents
- Use `bvshl` in SMT for base-2 exponentiation so we can explore more.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this refers to the change from the previous PR, no?
It should be covered by Encode symbolic power of 2 as bit-shift in SMT encoding.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, removing last line!

@msooseth msooseth force-pushed the dev-pow-product-update branch from 6cb01a1 to 4e66adf Compare January 7, 2026 14:58
@msooseth msooseth merged commit 688ad61 into main Jan 7, 2026
6 of 7 checks passed
@msooseth msooseth deleted the dev-pow-product-update branch January 7, 2026 14:59
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.

3 participants