-
Notifications
You must be signed in to change notification settings - Fork 632
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
Add reg
theorems for nat
on multiplication
#17560
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: remzi <13716567376yh@gmail.com>
We already have Lemma eqn_pmul2l m n1 n2 : 0 < m -> (m * n1 == m * n2) = (n1 == n2).
Lemma eqn_pmul2r m n1 n2 : 0 < m -> (n1 * m == n2 * m) = (n1 == n2). why would you need a weaker version? (if the implication is really needed, one can use |
Hi @robbertkrebbers, do we still need these? |
Ho, sorry it's about Coq stdlib here. I accidentally mixed up with MathComp, so please disregard my comment above. |
Thanks for the PR. I think it's important that If we want to have them for all, we should remove the specific versions for If we want to have them for none at all, we should deprecated the versions for |
Hi @robbertkrebbers, should we define a type class for all number types? |
There is a module in Coq for all number types, and my suggestion is that the |
Signed-off-by: remzi <13716567376yh@gmail.com>
Hi @robbertkrebbers, could I know which module it is? |
|
Signed-off-by: remzi <13716567376yh@gmail.com>
Move |
Note that if you (re)move lemmas, you need a deprecation (https://coq.inria.fr/distrib/current/refman/using/libraries/writing.html). |
Unless I am mistaken, you can still refer to the |
By the way, it appears there are plenty of more lemmas specific to |
Thank you, @proux01 @robbertkrebbers for your review!
I am not familiar with the module type in Coq. But actually, I can't refer Z.mul_reg_l or Z.mul_reg_r. I need to check if
Good point!. I filed #17606 to track it |
@coqbot run full ci |
Sorry, @HaoYang670, this coqbot command only works if you're a member of @coqbot run full CI |
Not sure if CI failures are real, at least some of them are not so let's get a fresh run @coq/stdlib-maintainers please take a decision on this PR instead of waiting another year |
Let's merge if CI passes. |
Fixes / closes #17354