-
Notifications
You must be signed in to change notification settings - Fork 427
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: add Nat.mod_eq_sub
and fix dependencies from Nat.sub_mul_eq_mod_of_lt_of_le
#6160
base: master
Are you sure you want to change the base?
Conversation
Mathlib CI status (docs):
|
awaiting-reviews |
Actually, it looks like one such theorem exists already: |
Could we make sure
makes it in? Either strip this PR down to just that, or close this PR and include it in a subsequent PR? |
Nat.mod_eq_sub_of_le_of_lt
Nat.mod_eq_sub
and fix dependencies from Nat.sub_mul_eq_mod_of_lt_of_le
I have fixed the dependencies from the existing theorem (which is now not private anymore and in a different location, otherwise I could not use it) and kept |
This PR adds theorem
mod_eq_sub
, makes theoremsub_mul_eq_mod_of_lt_of_le
not private anymore and moves its location within therotate*
section to use it in other proofs.