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

Z.mod_mul_r and Z.rem_mul_r reversed #31

Open
whonore opened this issue Oct 30, 2019 · 0 comments
Open

Z.mod_mul_r and Z.rem_mul_r reversed #31

whonore opened this issue Oct 30, 2019 · 0 comments

Comments

@whonore
Copy link
Contributor

whonore commented Oct 30, 2019

Description of the problem

Check Z.mod_mul_r.
(* forall a b c : Z,
     b <> 0 -> c <> 0 -> Z.rem a (b * c) = Z.rem a b + b * Z.rem (a ÷ b) c *)
Check Z.rem_mul_r.
(* forall a b c : Z,
     b <> 0 -> 0 < c -> a mod (b * c) = a mod b + b * ((a / b) mod c) *)

Shouldn't these names be switched to be consistent with Nat.mod_mul_r and N.mod_mul_r, which both have similar conclusions to Z.rem_mul_r?

Coq Version

At least 8.8 - master.

@proux01 proux01 transferred this issue from rocq-prover/rocq Jan 13, 2025
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

No branches or pull requests

1 participant