Skip to content

compare evaluation winterfell plonky3#533

Open
Soulthym wants to merge 89 commits into0xMiden:nextfrom
massalabs:feat-compare-eval-winterfell-plonky3
Open

compare evaluation winterfell plonky3#533
Soulthym wants to merge 89 commits into0xMiden:nextfrom
massalabs:feat-compare-eval-winterfell-plonky3

Conversation

@Soulthym
Copy link
Collaborator

@Soulthym Soulthym commented Jan 9, 2026

Describe your changes

Solves #532.
This implements a test harness comparing evaluations on plonky3 and winterfell generated constraints. It compares evaluations on random traces and tailored made ones to account for valid/invalid traces scenarios.

Left as a draft until the task list is marked as completed.

Task list:

  • Generic test harness comparing evaluations on all frames.
  • Test for simple cases: binary, bitwise, fibonacci, constraints comprehension
  • Test for cases involving an aux trace.
  • Test for cases involving module hierarchies.
  • Rebase on next once Add plonky3 backend #461 is merged

Checklist before requesting a review

  • Repo forked and branch created from next according to naming convention.
    This branch is based on the current state of Add plonky3 backend #461

  • Commit messages and codestyle follow conventions.

  • Commits are signed.

  • Relevant issues are linked in the PR description.

  • Tests added for new functionality.

  • Documentation/comments updated according to changes.

  • Updated CHANGELOG.md

TODO: can't evaluate without constraints on winterfell
TODO: aux width mismatch in build_aux_trace
…-up needed

TODO: can't evaluate without constraints on winterfell
…up needed

TODO: can't evaluate without constraints on winterfell
…p needed

TODO: can't evaluate without constraints on winterfell
…p needed

TODO: can't evaluate without constraints on winterfell
@Soulthym Soulthym marked this pull request as ready for review February 2, 2026 13:37
@Soulthym
Copy link
Collaborator Author

Soulthym commented Feb 2, 2026

This PR should be ready for review, the only remaining work should be to rebase on next once #461 is merged.

I've added tests comparing evaluations for all current golden tests (air-script/src/tests) between Winterfell and Plonky3.

NOTE: some simple bus tests do not have any constraints on the main trace, which leads to Winterfell not being able to initialize the prover. I have marked those tests as #[ignore].

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