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

[Merged by Bors] - chore(field_theory/splitting_field): remove unneeded parameter #15716

Closed
wants to merge 3 commits into from

Conversation

Vierkantor
Copy link
Collaborator

The definition of splitting_field_aux relied on a parameter hfn : n = f.nat_degree that was never actually used in the construction or its instances, only in the splits theorem. So we might as well delete it.

This PR prepares for a redefinition of all instances on splitting_field_aux to fix instance diamonds, see the splitting_field-diamond branch for progress.


Open in Gitpod

The definition of `splitting_field_aux` relied on a parameter `hfn : n = f.nat_degree` that was never actually used in the construction or its instances, only in the `splits` theorem. So we might as well delete it.

This PR prepares for a redefinition of all instances on `splitting_field_aux` to fix instance diamonds, see the `splitting_field-diamond` branch for progress.
@Vierkantor Vierkantor added easy < 20s of review time. See the lifecycle page for guidelines. awaiting-review The author would like community review of the PR awaiting-CI The author would like to see what CI has to say before doing more work. t-algebra Algebra (groups, rings, fields etc) labels Jul 27, 2022
@eric-wieser
Copy link
Member

bors d+

This all looks reasonable to me. I guess one thing to consider is whether it should be called remove_factors rather than splitting_field_aux now.

@bors
Copy link

bors bot commented Jul 27, 2022

✌️ Vierkantor can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@github-actions github-actions bot added delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels Jul 27, 2022
@Vierkantor
Copy link
Collaborator Author

Vierkantor commented Jul 27, 2022

This all looks reasonable to me. I guess one thing to consider is whether it should be called remove_factors rather than splitting_field_aux now.

polynomial.remove_factor already exists so I think this would be too confusing (f.remove_factor is the polynomial in (adjoin_root f)[X] given by removing the (X - root f) factor).

@github-actions github-actions bot removed the awaiting-CI The author would like to see what CI has to say before doing more work. label Jul 27, 2022
@Vierkantor
Copy link
Collaborator Author

bors r+

@github-actions github-actions bot added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Jul 27, 2022
bors bot pushed a commit that referenced this pull request Jul 27, 2022
The definition of `splitting_field_aux` relied on a parameter `hfn : n = f.nat_degree` that was never actually used in the construction or its instances, only in the `splits` theorem. So we might as well delete it.

This PR prepares for a redefinition of all instances on `splitting_field_aux` to fix instance diamonds, see the `splitting_field-diamond` branch for progress.





Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
@robertylewis
Copy link
Member

bors merge

bors bot pushed a commit that referenced this pull request Jul 28, 2022
The definition of `splitting_field_aux` relied on a parameter `hfn : n = f.nat_degree` that was never actually used in the construction or its instances, only in the `splits` theorem. So we might as well delete it.

This PR prepares for a redefinition of all instances on `splitting_field_aux` to fix instance diamonds, see the `splitting_field-diamond` branch for progress.





Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
@bors
Copy link

bors bot commented Jul 28, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(field_theory/splitting_field): remove unneeded parameter [Merged by Bors] - chore(field_theory/splitting_field): remove unneeded parameter Jul 28, 2022
@bors bors bot closed this Jul 28, 2022
@bors bors bot deleted the splitting_field_aux-unneeded branch July 28, 2022 07:21
bottine pushed a commit to bottine/mathlib that referenced this pull request Jul 30, 2022
…rover-community#15716)

The definition of `splitting_field_aux` relied on a parameter `hfn : n = f.nat_degree` that was never actually used in the construction or its instances, only in the `splits` theorem. So we might as well delete it.

This PR prepares for a redefinition of all instances on `splitting_field_aux` to fix instance diamonds, see the `splitting_field-diamond` branch for progress.





Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
robertylewis pushed a commit that referenced this pull request Aug 2, 2022
The definition of `splitting_field_aux` relied on a parameter `hfn : n = f.nat_degree` that was never actually used in the construction or its instances, only in the `splits` theorem. So we might as well delete it.

This PR prepares for a redefinition of all instances on `splitting_field_aux` to fix instance diamonds, see the `splitting_field-diamond` branch for progress.





Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
khwilson pushed a commit that referenced this pull request Aug 2, 2022
The definition of `splitting_field_aux` relied on a parameter `hfn : n = f.nat_degree` that was never actually used in the construction or its instances, only in the `splits` theorem. So we might as well delete it.

This PR prepares for a redefinition of all instances on `splitting_field_aux` to fix instance diamonds, see the `splitting_field-diamond` branch for progress.





Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated The PR author may merge after reviewing final suggestions. easy < 20s of review time. See the lifecycle page for guidelines. ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) t-algebra Algebra (groups, rings, fields etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants