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

feat: generalize to arbitrary bitvec width zeroextend_bigger_smaller and truncate_of_concat_is_lsb #221

Merged
merged 10 commits into from
Oct 8, 2024

Conversation

luisacicolini
Copy link
Contributor

@luisacicolini luisacicolini commented Oct 6, 2024

Description:

This PR extends truncate_of_concat_is_lsb_64 to arbitrary-width bitvectors.

Testing:

What tests have been run? Did make all succeed for your changes? Yes
Was conformance testing successful on an Aarch64 machine? yes

License:

By submitting this pull request, I confirm that my contribution is
made under the terms of the Apache 2.0 license.

@luisacicolini luisacicolini requested a review from shigoel as a code owner October 6, 2024 09:50
Copy link
Collaborator

@shigoel shigoel left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, @luisacicolini!

A high-level comment: could you please use LNSym's PR template for this PR's description?

Proofs/SHA512/SHA512_block_armv8_rules.lean Outdated Show resolved Hide resolved
Proofs/SHA512/SHA512_block_armv8_rules.lean Outdated Show resolved Hide resolved
@luisacicolini
Copy link
Contributor Author

thank you for reviewing this @shigoel! Everything should be fixed now. I removed zeroextend_bigger_smaller and added a comment pointing to the correct arbitrary-width version.

alexkeizer
alexkeizer previously approved these changes Oct 7, 2024
Copy link
Collaborator

@alexkeizer alexkeizer left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! LGTM, but I've left some nits on how the theorem could be generalized further.

Proofs/SHA512/SHA512_block_armv8_rules.lean Outdated Show resolved Hide resolved
@luisacicolini
Copy link
Contributor Author

luisacicolini commented Oct 7, 2024

thanks @alexkeizer! I updated the theorem with your suggestions

Copy link
Collaborator

@shigoel shigoel left a comment

Choose a reason for hiding this comment

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

Thanks, @luisacicolini!

@shigoel shigoel merged commit 7850ae0 into leanprover:main Oct 8, 2024
3 checks passed
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