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

Stwobackend #1822

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

Stwobackend #1822

wants to merge 14 commits into from

Conversation

ShuangWu121
Copy link
Collaborator

@ShuangWu121 ShuangWu121 commented Sep 23, 2024

Stwobackend PR #1822

Description

This PR is a work in progress to add stwo prover to powdr backend

The key changes include:

  • Add stwo prover

Changes Made

  • Added support for stwo features.
  • Added fibonacci instance and proved by stwo

To Do List

  • Generate execution trace (from analyzed to ColumnVec)
  • implement the trait FrameworkEval, which is used by stwo to defined constraint, to powdrCircuit

Testing

cargo run -r --features stwo pil test_data/pil/fibonacci.pil -o output -f --field m31 --prove-with stwo

manually set "FIB_SEQUENCE_LENGTH" in prover.rs match the number in pil file.

Shuang Wu and others added 13 commits October 1, 2024 09:31
…ackedM31 format, for parelle computation, fibonacci.pil file is changed to N=32 as stwo requires sequence is of length at least 16 #1783
…s show me stwo-prover is undecleared, and when I run with stwo feature, everything fine, I added stwo prover to default, so it won't disturb me now
… sequence length is 6. stwo use data parallel structure to prove, which means it can prove many fibonacci instance (32 in code) at the same time, now I just get the fibonacci sequence from powdr, copy it to 32 identical instances, then use stwo to prove, many manul process still #1783
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.

1 participant