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

Witness multiple vars at once #55

Merged
merged 9 commits into from
Feb 19, 2025
Merged

Witness multiple vars at once #55

merged 9 commits into from
Feb 19, 2025

Conversation

mitschabaude
Copy link
Collaborator

@mitschabaude mitschabaude commented Feb 15, 2025

this PR changes the fundamental "witness" operation from producing a single field element variable to a vector of variables.

this gives us a more natural way to witness composed provable types like U32. previously we had to emulate witnessing a vector by calling the same witness generator multiple times and extracting elements.

other unrelated changes:

  • deletes unused old constraint/expression definition files
  • fixes indentation in Vector.lean

@mitschabaude mitschabaude marked this pull request as ready for review February 18, 2025 11:17
@marcobesier marcobesier self-requested a review February 19, 2025 08:42
Copy link
Collaborator

@marcobesier marcobesier left a comment

Choose a reason for hiding this comment

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

Sweet! This is a nice improvement. Looking good to me. 👍

@mitschabaude mitschabaude merged commit 3cea9f1 into main Feb 19, 2025
1 check passed
@mitschabaude mitschabaude deleted the multiple-witnesses branch February 19, 2025 11:55
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