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

Suboptimal Instruction-Specific Constraints #339

Open
aszepieniec opened this issue Nov 21, 2024 · 0 comments
Open

Suboptimal Instruction-Specific Constraints #339

aszepieniec opened this issue Nov 21, 2024 · 0 comments

Comments

@aszepieniec
Copy link
Collaborator

Upon skimming the result of cargo test print_number_and_degrees_of_transition_constraints_for_all_instructions -- --nocapture, 8 instructions stand out as having max degree 10 or 11. I am skeptical that these constraints must be so expensive. With the fancy technique that enabled pick and place, i.e., using an inner product with potentially shifted weight vectors, I am sure we can shrink these instructions' polynomials' degrees' maximum.

Instruction #polys max deg Degrees
pop 1 16 10 [1, 1, 1, 1, 2, 2, 2, 2, 1, 5, 5, 10, 4, 1, 1, 1]
divine 1 16 10 [1, 1, 1, 1, 2, 2, 2, 2, 1, 5, 5, 10, 4, 1, 1, 1]
read_mem 1 30 10 [1, 1, 1, 1, 2, 2, 2, 2, 1, 5, 5, 10, 10, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 1, 1]
write_mem 1 30 10 [1, 1, 1, 1, 2, 2, 2, 2, 1, 5, 5, 10, 10, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 1, 1]
sponge_absorb 10 11 [1, 1, 1, 1, 1, 1, 11, 1, 1, 1]
sponge_squeeze 10 11 [1, 1, 1, 1, 1, 1, 11, 1, 1, 1]
read_io 1 16 10 [1, 1, 1, 1, 2, 2, 2, 2, 1, 5, 5, 10, 5, 4, 1, 1]
write_io 1 16 10 [1, 1, 1, 1, 2, 2, 2, 2, 1, 5, 5, 10, 5, 4, 1, 1]
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

No branches or pull requests

1 participant