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(algebra/module/basic): smul_add_hom_one #7461

Closed
wants to merge 4 commits into from

Conversation

jcommelin
Copy link
Member


Open in Gitpod

@jcommelin jcommelin added the awaiting-review The author would like community review of the PR label May 4, 2021
def cast_add_hom' (a : A) : ℕ →+ A :=
{ to_fun := λ n, n • a,
map_zero' := zero_smul _ _,
map_add' := λ m n, add_smul m n a }
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this smul_add_hom ℕ A a or similar?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. Turns out you also need a flip. Not sure if these are worth keeping, or that I should just use the (smul_add_hom _ _).flip directly.

Copy link
Member

Choose a reason for hiding this comment

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

I think they're probably not worth keeping as is. If this comes up often you could probably come up with a nicer name for (smul_add_hom R M).flip, but I don't think the special cases for int and nat are useful.

@jcommelin
Copy link
Member Author

Okido, thanks for pointing to smul_add_hom!

@jcommelin jcommelin closed this May 4, 2021
@jcommelin jcommelin reopened this May 4, 2021
@jcommelin jcommelin changed the title feat(algebra/module/basic): variant on {nat,int}.cast_add_hom feat(algebra/module/basic): smul_add_hom_one May 4, 2021
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-review The author would like community review of the PR labels May 7, 2021
bors bot pushed a commit that referenced this pull request May 7, 2021
@bors
Copy link

bors bot commented May 7, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(algebra/module/basic): smul_add_hom_one [Merged by Bors] - feat(algebra/module/basic): smul_add_hom_one May 7, 2021
@bors bors bot closed this May 7, 2021
@bors bors bot deleted the int-cast-add-hom branch May 7, 2021 13:53
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