-
Notifications
You must be signed in to change notification settings - Fork 384
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: isCoprime_mul_units_left
, isCoprime_mul_units_right
#19133
Conversation
PR summary 57594724f1Import 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/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit> The doc-module for No changes to technical debt.You can run this locally as
|
There are two things that I can do further (but not sure if it worths to do):
|
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 probably would suggest reproving isCoprime_mul_unit_left/right
, yes
Co-authored-by: Ruben Van de Velde <[email protected]>
theorem isCoprime_mul_unit_left (hu : IsUnit x) (y z : R) : | ||
IsCoprime (x * y) (x * z) ↔ IsCoprime y z := | ||
isCoprime_mul_units_left hu hu _ _ | ||
|
||
theorem isCoprime_mul_unit_right (hu : IsUnit x) (y z : R) : | ||
IsCoprime (y * x) (z * x) ↔ IsCoprime y z := | ||
(isCoprime_mul_unit_right_left hu y (z * x)).trans (isCoprime_mul_unit_right_right hu y z) | ||
isCoprime_mul_units_right hu hu _ _ |
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.
Would it be better to remove these two lemmas and add deprecated aliases pointing to your lemmas?
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.
No, I don't think so
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!
maintainer merge
theorem isCoprime_mul_unit_left (hu : IsUnit x) (y z : R) : | ||
IsCoprime (x * y) (x * z) ↔ IsCoprime y z := | ||
isCoprime_mul_units_left hu hu _ _ | ||
|
||
theorem isCoprime_mul_unit_right (hu : IsUnit x) (y z : R) : | ||
IsCoprime (y * x) (z * x) ↔ IsCoprime y z := | ||
(isCoprime_mul_unit_right_left hu y (z * x)).trans (isCoprime_mul_unit_right_right hu y z) | ||
isCoprime_mul_units_right hu hu _ _ |
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.
No, I don't think so
🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde. |
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 merge
Co-authored-by: Seewoo Lee <[email protected]>
Pull request successfully merged into master. Build succeeded: |
isCoprime_mul_units_left
, isCoprime_mul_units_right
isCoprime_mul_units_left
, isCoprime_mul_units_right
Add
isCoprime_mul_units_left
andisCoprime_mul_units_right
. These are slight generalizations of same unit versionisCoprime_mul_unit_left
andisCoprime_mul_unit_right
. Currently exists as a lemma in #18882.