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] - refactor(data/mv_polynomial): cleanup equivs #6589

Closed
wants to merge 18 commits into from

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Mar 8, 2021

This:

  • Replaces alg_equiv_congr_left with rename_equiv (to match rename)
  • Removes ring_equiv_congr_left (it's now rename_equiv.to_ring_equiv)
  • Renames alg_equiv_congr_right to map_alg_equiv (to match map) and removes the comap from the definition
  • Renames ring_equiv_congr_right to map_equiv (to match map)
  • Removes alg_equiv_congr (it's now (map_alg_equiv R e).trans $ (rename_equiv e_var).restrict_scalars _, which while longer is never used anyway)
  • Removes ring_equiv_congr (it's now (map_equiv R e).trans $ (rename_equiv e_var).to_ring_equiv, which while longer is never used anyway)
  • Replaces punit_ring_equiv with punit_alg_equiv
  • Removes comap from the definition of sum_alg_equiv
  • Promotes option_equiv_left, option_equiv_right, and fin_succ_equiv to alg_equivs

This is a follow-up to #6420


@github-actions github-actions bot added the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Mar 8, 2021
@eric-wieser eric-wieser added the awaiting-review The author would like community review of the PR label Mar 8, 2021
Comment on lines 262 to 264
-- TODO: move
instance : is_scalar_tower R (mv_polynomial S₁ R) (polynomial (mv_polynomial S₁ R)) :=
finsupp.is_scalar_tower ℕ _
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will remove these after #6592 is merged.

@eric-wieser eric-wieser marked this pull request as ready for review March 8, 2021 21:22
@riccardobrasca
Copy link
Member

It looks very nice! Is it now possible to get rid of some comap in mv_polynomial.quotient_alg_equiv_quotient_mv_polynomial?

@eric-wieser
Copy link
Member Author

Yes, I think after this PR every use of comap can be removed.

@github-actions github-actions bot removed the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Mar 9, 2021
@github-actions
Copy link

github-actions bot commented Mar 9, 2021

🎉 Great news! Looks like all the dependencies have been resolved:

💡 To add or remove a dependency please update this issue/PR description.

Brought to you by Dependent Issues (:robot: ). Happy coding!

Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🎉

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Mar 9, 2021
bors bot pushed a commit that referenced this pull request Mar 9, 2021
This:
* Replaces `alg_equiv_congr_left` with `rename_equiv` (to match `rename`)
* Removes `ring_equiv_congr_left` (it's now `rename_equiv.to_ring_equiv`)
* Renames `alg_equiv_congr_right` to `map_alg_equiv` (to match `map`) and removes the `comap` from the definition
* Renames `ring_equiv_congr_right` to `map_equiv` (to match `map`)
* Removes `alg_equiv_congr` (it's now `(map_alg_equiv R e).trans $ (rename_equiv e_var).restrict_scalars _`, which while longer is never used anyway)
* Removes `ring_equiv_congr` (it's now `(map_equiv R e).trans $ (rename_equiv e_var).to_ring_equiv`, which while longer is never used anyway)
* Replaces `punit_ring_equiv` with `punit_alg_equiv`
* Removes `comap` from the definition of `sum_alg_equiv`
* Promotes `option_equiv_left`, `option_equiv_right`, and `fin_succ_equiv` to `alg_equiv`s

This is a follow-up to #6420
@bors
Copy link

bors bot commented Mar 9, 2021

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Mar 9, 2021
This:
* Replaces `alg_equiv_congr_left` with `rename_equiv` (to match `rename`)
* Removes `ring_equiv_congr_left` (it's now `rename_equiv.to_ring_equiv`)
* Renames `alg_equiv_congr_right` to `map_alg_equiv` (to match `map`) and removes the `comap` from the definition
* Renames `ring_equiv_congr_right` to `map_equiv` (to match `map`)
* Removes `alg_equiv_congr` (it's now `(map_alg_equiv R e).trans $ (rename_equiv e_var).restrict_scalars _`, which while longer is never used anyway)
* Removes `ring_equiv_congr` (it's now `(map_equiv R e).trans $ (rename_equiv e_var).to_ring_equiv`, which while longer is never used anyway)
* Replaces `punit_ring_equiv` with `punit_alg_equiv`
* Removes `comap` from the definition of `sum_alg_equiv`
* Promotes `option_equiv_left`, `option_equiv_right`, and `fin_succ_equiv` to `alg_equiv`s

This is a follow-up to #6420
@bors
Copy link

bors bot commented Mar 10, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title refactor(data/mv_polynomial): cleanup equivs [Merged by Bors] - refactor(data/mv_polynomial): cleanup equivs Mar 10, 2021
@bors bors bot closed this Mar 10, 2021
@bors bors bot deleted the eric-wieser/mv-polynomial-rename branch March 10, 2021 02:23
ocfnash pushed a commit that referenced this pull request Mar 12, 2021
This:
* Replaces `alg_equiv_congr_left` with `rename_equiv` (to match `rename`)
* Removes `ring_equiv_congr_left` (it's now `rename_equiv.to_ring_equiv`)
* Renames `alg_equiv_congr_right` to `map_alg_equiv` (to match `map`) and removes the `comap` from the definition
* Renames `ring_equiv_congr_right` to `map_equiv` (to match `map`)
* Removes `alg_equiv_congr` (it's now `(map_alg_equiv R e).trans $ (rename_equiv e_var).restrict_scalars _`, which while longer is never used anyway)
* Removes `ring_equiv_congr` (it's now `(map_equiv R e).trans $ (rename_equiv e_var).to_ring_equiv`, which while longer is never used anyway)
* Replaces `punit_ring_equiv` with `punit_alg_equiv`
* Removes `comap` from the definition of `sum_alg_equiv`
* Promotes `option_equiv_left`, `option_equiv_right`, and `fin_succ_equiv` to `alg_equiv`s

This is a follow-up to #6420
b-mehta pushed a commit that referenced this pull request Apr 2, 2021
This:
* Replaces `alg_equiv_congr_left` with `rename_equiv` (to match `rename`)
* Removes `ring_equiv_congr_left` (it's now `rename_equiv.to_ring_equiv`)
* Renames `alg_equiv_congr_right` to `map_alg_equiv` (to match `map`) and removes the `comap` from the definition
* Renames `ring_equiv_congr_right` to `map_equiv` (to match `map`)
* Removes `alg_equiv_congr` (it's now `(map_alg_equiv R e).trans $ (rename_equiv e_var).restrict_scalars _`, which while longer is never used anyway)
* Removes `ring_equiv_congr` (it's now `(map_equiv R e).trans $ (rename_equiv e_var).to_ring_equiv`, which while longer is never used anyway)
* Replaces `punit_ring_equiv` with `punit_alg_equiv`
* Removes `comap` from the definition of `sum_alg_equiv`
* Promotes `option_equiv_left`, `option_equiv_right`, and `fin_succ_equiv` to `alg_equiv`s

This is a follow-up to #6420
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants