-
Notifications
You must be signed in to change notification settings - Fork 341
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
[Merged by Bors] - feat: add lemma List.prod_map_ite_eq
#13023
Conversation
Is it from an open source project? If yes, then please link. Also, what do you think about adding these generic lemmas?
|
…lib4 into BoltonBailey/prod_map_ite_eq
Seems good, I have added these. |
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
…lib4 into BoltonBailey/prod_map_ite_eq
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maintainer merge
🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde. |
Co-authored-by: Johan Commelin <johan@commelin.net>
…lib4 into BoltonBailey/prod_map_ite_eq
PR summary 75218f0978Import changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diff
You can run this locally as follows## summary with just the declaration names:
./scripts/no_lost_declarations.sh short <optional_commit>
## more verbose report:
./scripts/no_lost_declarations.sh <optional_commit> |
bors merge |
Proves that the (product) sum of a list mapped through a function of the form `if x = a then ... else ...` is equal to the (product) sum over the list mapped through the else condition, (times) plus an additional factor about the number of times `a` appears. Upstreamed from [another project](https://github.com/BoltonBailey/formal-snarks-project).
Pull request successfully merged into master. Build succeeded: |
List.prod_map_ite_eq
List.prod_map_ite_eq
Proves that the (product) sum of a list mapped through a function of the form
if x = a then ... else ...
is equal to the (product) sum over the list mapped through the else condition, (times) plus an additional factor about the number of timesa
appears.Upstreamed from another project.