Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

[Merged by Bors] - feat(algebra/direct_sum): constructor for morphisms into direct sums #5204

Closed
wants to merge 9 commits into from

Conversation

jcommelin
Copy link
Member

@jcommelin jcommelin commented Dec 3, 2020

@jcommelin jcommelin added the awaiting-review The author would like community review of the PR label Dec 3, 2020
Comment on lines +117 to +122
/-- `from_add_monoid φ` is the natural homomorphism from `γ` to `⨁ i, β i`
induced by a family `φ` of homomorphisms `γ → β i`.

Note that this is not an isomorphism. Not every homomorphism `γ →+ ⨁ i, β i` arises in this way. -/
def from_add_monoid : (⨁ i, γ →+ β i) →+ (γ →+ ⨁ i, β i) :=
to_add_monoid $ λ i, add_monoid_hom.comp_hom (of β i)
Copy link
Member

Choose a reason for hiding this comment

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

Does it make sense to putt this in dfinsupp (and finsupp, as (i →₀ γ →+ β) →+ (γ →+ i →₀ β)) too?

Copy link
Member

Choose a reason for hiding this comment

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

cc @urkud who added finsupp.lift_add_hom in the first place.

Copy link
Member Author

Choose a reason for hiding this comment

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

@eric-wieser I don't know... what will be the benefit of direct_sum over dfinsupp? Should we just remove direct_sum and make it optional notation for dfinsupp? Where exactly should the API boundary lie? I've never really used dfinsupp.

Copy link
Member

Choose a reason for hiding this comment

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

I already don't know what the benefit of direct_sum over dfinsupp is. My guess is that the best comparison is monoid_algebra vs finsupp, where the former gets convolutive multiplication while the latter gets pointwise multiplication.

Of course, this is currently irrelevant for direct_sum and dfinsupp because neither gets any multiplication!

Copy link
Member Author

Choose a reason for hiding this comment

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

hmm, then I would prefer to just do this for direct_sum for now. I tried copying the def to dfinsupp, but it didn't just work. And for me it's clear that this is something that we want for direct sums.
If we decide to merge the two concepts, then this PR is certainly not the place for that.

Copy link
Member

Choose a reason for hiding this comment

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

Fair enough

jcommelin and others added 2 commits December 3, 2020 13:04
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
src/algebra/group/hom.lean Outdated Show resolved Hide resolved
src/algebra/group/hom.lean Outdated Show resolved Hide resolved
@jcommelin jcommelin 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 Dec 4, 2020
@bryangingechen bryangingechen 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 Dec 5, 2020
@eric-wieser
Copy link
Member

Needs a merge/rebase to remove the changes from #5202

@eric-wieser eric-wieser 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 Dec 8, 2020
Co-authored-by: Bhavik Mehta <bhavikmehta8@gmail.com>
@github-actions github-actions bot added the merge-conflict Please `git merge origin/master` then a bot will remove this label. label Dec 8, 2020
@github-actions github-actions bot removed the merge-conflict Please `git merge origin/master` then a bot will remove this label. label Dec 9, 2020
@github-actions
Copy link

github-actions bot commented Dec 9, 2020

🎉 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!

@jcommelin jcommelin added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Dec 10, 2020
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.

LGTM

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-review The author would like community review of the PR labels Dec 14, 2020
@bors
Copy link

bors bot commented Dec 14, 2020

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(algebra/direct_sum): constructor for morphisms into direct sums [Merged by Bors] - feat(algebra/direct_sum): constructor for morphisms into direct sums Dec 14, 2020
@bors bors bot closed this Dec 14, 2020
@bors bors bot deleted the hom-to-direct-sum branch December 14, 2020 16:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.

5 participants