Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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(linear_algebra/tensor_product,algebra/module/linear_map): Made tmul_smul and map_smul_of_tower work for int over semirings #5430
[Merged by Bors] - feat(linear_algebra/tensor_product,algebra/module/linear_map): Made tmul_smul and map_smul_of_tower work for int over semirings #5430
Changes from all commits
d25591f
eb28041
8e975ff
09678cc
eb59174
e850a35
01f551c
c44e729
5669b41
32ef645
3cafb18
f2d2f20
f93d2e8
8c1d180
406c33c
501ddfe
df20c17
313c8e6
45c1738
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this ever actually happen? If
[semiring S] [has_scalar ℤ S]
then presumablyS
is a ring, and from where I'm sitting it seems unlikely that in practice someone would prove that something is a ring by showing it's a semiring with a scalar action of the integers. Is this instance useful? Is there a situation where this applies but the user either doesn't want or doesn't have access to[ring S] [add_comm_group M] [module S M]
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted this lemma in https://github.com/leanprover-community/mathlib/pull/5476/files#r548338701.
This does happen - consider a case where I have
add_comm_group M
semimodule \N M
. R=\N isn't and cannot be a ring.Sure, I could just require
semimodule \Z M
, but I don't want to do that because I want to use the same base ring for my entire def.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will update this PR to include the lemma it simplifies once #5476 is merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/leanprover-community/mathlib/pull/5430/files#r551947248
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This type of change was the motivation for this PR