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] - feat(data/matrix/basic): provide equiv versions of matrix.map, linear_map.map_matrix, and ring_hom.map_matrix. #8468

Closed
wants to merge 3 commits into from

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Jul 30, 2021

This moves all of these definitions to be adjacent, adds the standard family of functorial simp lemmas, and relaxes some typeclass requirements.

This also renames matrix.one_map to matrix.map_one to match matrix.map_zero.


Open in Gitpod

…ear_map.map_matrix`, and `ring_hom.map_matrix`.

This moves all of these definitions to be adjacent, adds the standard family of functorial simp lemmas, and relaxes some typeclass requirements.
@eric-wieser eric-wieser added the awaiting-review The author would like community review of the PR label Jul 30, 2021
src/data/matrix/basic.lean Show resolved Hide resolved
src/data/matrix/basic.lean Show resolved Hide resolved
@Vierkantor Vierkantor added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Aug 2, 2021
@eric-wieser
Copy link
Member Author

If we merge #8486 before this one, then I'll update this with the alg_hom versions too

Vierkantor added a commit that referenced this pull request Aug 2, 2021
These can already be found by `simp` since `matrix.map_zero` is a `simp` lemma,
and we can manually use `foo_hom.map_matrix.map_zero` introduced by #8468 instead.
Copy link
Collaborator

@Vierkantor Vierkantor 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 r+

@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-author A reviewer has asked the author a question or requested changes labels Aug 2, 2021
@Vierkantor
Copy link
Collaborator

Oops, missed the build failure.

bors r-

@bors
Copy link

bors bot commented Aug 2, 2021

Canceled.

@Vierkantor
Copy link
Collaborator

bors d+

@bors
Copy link

bors bot commented Aug 2, 2021

✌️ eric-wieser 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 the delegated The PR author may merge after reviewing final suggestions. label Aug 2, 2021
@eric-wieser
Copy link
Member Author

What build failure?

@eric-wieser
Copy link
Member Author

It looks like by pushing your branch you confused github, but https://github.com/leanprover-community/mathlib/actions/runs/1082117908 seems happy.

@Vierkantor
Copy link
Collaborator

Ah, that's why I didn't notice the build failure :P Nevermind then!

bors r+

@eric-wieser
Copy link
Member Author

If we merge #8486 before this one, then I'll update this with the alg_hom versions too

I'll do the alg_hom versions in a follow-up PR instead.

bors bot pushed a commit that referenced this pull request Aug 2, 2021
…ear_map.map_matrix`, and `ring_hom.map_matrix`. (#8468)

This moves all of these definitions to be adjacent, adds the standard family of functorial simp lemmas, and relaxes some typeclass requirements.

This also renames `matrix.one_map` to `matrix.map_one` to match `matrix.map_zero`.
@bors
Copy link

bors bot commented Aug 2, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(data/matrix/basic): provide equiv versions of matrix.map, linear_map.map_matrix, and ring_hom.map_matrix. [Merged by Bors] - feat(data/matrix/basic): provide equiv versions of matrix.map, linear_map.map_matrix, and ring_hom.map_matrix. Aug 2, 2021
@bors bors bot closed this Aug 2, 2021
@bors bors bot deleted the eric-wieser/matrix.map_hom branch August 2, 2021 11:37
Vierkantor added a commit that referenced this pull request Aug 2, 2021
These can already be found by `simp` since `matrix.map_zero` is a `simp` lemma,
and we can manually use `foo_hom.map_matrix.map_zero` introduced by #8468 instead.
bors bot pushed a commit that referenced this pull request Aug 2, 2021
These can already be found by `simp` since `matrix.map_zero` is a `simp` lemma, and we can manually use `foo_hom.map_matrix.map_zero` introduced by #8468 instead. They also don't seem to be used anywhere in mathlib, given that deleting them with no replacement causes no build errors.



Co-authored-by: Eric Wieser <wieser.eric@gmail.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. 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

2 participants