-
Notifications
You must be signed in to change notification settings - Fork 900
[Merged by Bors] - refactor(Algebra/Polynomial/Splits): continue deprecation #32103
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
Conversation
PR summary 633ee94e38Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
This pull request has conflicts, please merge |
Vierkantor
left a comment
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.
Otherwise I really like the results of this PR, code becomes quite a bit nicer! 🎉
| theorem splits_of_splits_gcd_left [DecidableEq K] {f g : K[X]} (hf0 : f ≠ 0) | ||
| (hf : Splits (f.map i)) : Splits ((EuclideanDomain.gcd f g).map i) := | ||
| Polynomial.splits_of_splits_of_dvd i hf0 hf (EuclideanDomain.gcd_dvd_left f g) | ||
| Splits.of_dvd hf (map_ne_zero hf0) <| map_dvd i <| EuclideanDomain.gcd_dvd_left f g |
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.
(Sorry for catching this only now!) Seeing the name Splits.of_dvd repeated so many times has made me realize I don't like it very much. I think it's because there are three parts of this lemma, a Splits input, a Dvd input, and a Splits output, and the name only mentions two of them? So there's a bit of a weird overlap in reading in having to assign the Splits to both in- and output.
Maybe Splits.splits_of_dvd or Splits.left_of_dvd? (Dvd.splits might also work, although it's weird that a "more complicated" result about polynomials ends up in a "more simple" namespace about monoids with zero.)
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.
Splits.splits_of_dvd sounds reasonable to me.
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 disagree here. Using Foo.of_bar to mean Foo _ -> Bar _ -> Foo _ is a common and understood pattern. As such, this rename is both out of scope for this PR and (IMO) a regression.
|
Thanks 🎉 bors merge |
This PR continues the deprecation in `Splits.lean` as we move over to the new API in `Factors.lean`. Co-authored-by: tb65536 <[email protected]>
|
Pull request successfully merged into master. Build succeeded: |
This PR continues the deprecation in
Splits.leanas we move over to the new API inFactors.lean.