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(data/matrix/hadamard): add the Hadamard product #8956
Conversation
l534zhan
commented
Sep 1, 2021
This is a PR as a part of a large project mentioned in https://leanprover.zulipchat.com/#narrow/stream/113489-new-members/topic/Contribute.20a.20project. |
I got the reported error: Why should I do this change? |
get rid of those parameters and start the proof with |
I just don't understand, why I have to do this? Do you have any idea? @ericrbg @eric-wieser |
it's unneeded, basically. the |
i'm sort of finding it hard to say exactly what I mean, but the main essential difference is that |
So that still means |
so mathlib as a library overall accepts Choice (⇒ LEM). therefore, in some ways,
because in the first α has an implicit now, in your proof, you don't actually write down |
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Any further improvement or suggestions? @eric-wieser |
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.
LGTM, but I think @Vierkantor should take a quick look at the trace statements to check we're not missing a simpler result.
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.
I believe dot_product_vec_mul_hadamard
is AFAIK the standard formulation of that statement, and the complexity of the proof is not so bad. So I don't really know a simpler result.
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.
Thanks 🎉
bors r+
Co-authored-by: l534zhan <84618936+l534zhan@users.noreply.github.com>
Build failed (retrying...): |
Co-authored-by: l534zhan <84618936+l534zhan@users.noreply.github.com>
Build failed (retrying...): |
What's the problem here? @Vierkantor |
Co-authored-by: l534zhan <84618936+l534zhan@users.noreply.github.com>
Build failed (retrying...): |
There aren't any problems here as far as I can tell. We merge our PRs in batches using bors, so a build failure could be due to any of the PRs in a batch or an interaction between any subset of them. Generally, if the bot posts a message that says "retrying...", you can just keep waiting; oftentimes the issue is elsewhere and your PR will get merged in a later batch. If it posts a "Build failed" message without "retrying" though, then that means the problem is with your PR and you should click the link to see what exactly failed. |
Co-authored-by: l534zhan <84618936+l534zhan@users.noreply.github.com>
Pull request successfully merged into master. Build succeeded: |