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

Include keccak & aux lemmas conditionally #779

Merged
merged 17 commits into from
Aug 22, 2024
Merged

Conversation

palinatolmach
Copy link
Collaborator

@palinatolmach palinatolmach commented Aug 16, 2024

Closes #715.
Partially addresses #780.

This PR

  • adds keccak.md file containing (unsound) assumptions about keccak to facilitate reasoning, use it by default
  • adds kontrol_lemmas.md file containing other Kontrol lemmas that facilitate reasoning (copied from Morpho lemmas with the exclusion of keccak assumptions included in keccak.md)
  • includes both during kontrol build by default
  • adds --no-keccak-lemmas, --auxiliary-lemmas options to kontrol build which excludes and includes keccak and auxiliary lemmas, respectively
  • fixes a typo in an error message ("provided")

@palinatolmach palinatolmach requested review from anvacaru and PetarMax and removed request for PetarMax and anvacaru August 16, 2024 14:20
src/kontrol/kompile.py Outdated Show resolved Hide resolved
@palinatolmach palinatolmach mentioned this pull request Aug 20, 2024
11 tasks
@palinatolmach palinatolmach self-assigned this Aug 21, 2024
@palinatolmach palinatolmach changed the title Include keccak lemmas, add --no-keccak-lemmas option Include keccak & aux lemmas conditionally Aug 21, 2024
@palinatolmach palinatolmach marked this pull request as ready for review August 21, 2024 11:39
@palinatolmach
Copy link
Collaborator Author

Something's off with some integration tests but it doesn't happen locally — I'll try to re-run both in CI and locally too.

@PetarMax
Copy link
Contributor

It seems to take too long, the task... perhaps it is better to not include by default, and include only on demand?

@palinatolmach palinatolmach merged commit 501727c into master Aug 22, 2024
12 checks passed
@palinatolmach palinatolmach deleted the add-keccak-lemmas branch August 22, 2024 15:48
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.

Auto-include keccak lemmas conditionally
3 participants