-
Notifications
You must be signed in to change notification settings - Fork 380
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(LinearAlgebra/Finsupp/linearCombination): add bilinearCombination #22678
Conversation
PR summary 757fb139c8Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
variable (α M) | ||
|
||
@[simp] | ||
theorem linearCombination_zero : linearCombination R (0 : α → M) = 0 := |
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 don't understand why you're moving these
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.
It was a mistake.
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.
Can you move them back to where they were?
bors d+
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 moved linearCombination_zero
to its initial place, but the bilinearCombination
part fits better at the end, because it uses some simp
lemmas that are proved earlier and requires to add some variables (such as Module S M
).
Co-authored-by: Eric Wieser <[email protected]>
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.
Thanks 🎉
bors merge
#22678) Add `Finsupp.bilinearCombination` and `Fintype.bilinearCombination` as bilinear maps. Previously, `Fintype.linearCombination` was a bilinear map, but `Finsupp.linearCombination` was only linear in the second variable. That made `Fintype.linearCombination` unusable in the noncommutative case. By consistency, `Fintype.linearCombination` is downgraded to a linear map.
bors r- |
Canceled. |
✌️ AntoineChambert-Loir can now approve this pull request. To approve and merge a pull request, simply reply with |
bors r+ |
#22678) Add `Finsupp.bilinearCombination` and `Fintype.bilinearCombination` as bilinear maps. Previously, `Fintype.linearCombination` was a bilinear map, but `Finsupp.linearCombination` was only linear in the second variable. That made `Fintype.linearCombination` unusable in the noncommutative case. By consistency, `Fintype.linearCombination` is downgraded to a linear map.
Pull request successfully merged into master. Build succeeded: |
variable (α M) | ||
|
||
@[simp] | ||
theorem linearCombination_zero : linearCombination R (0 : α → M) = 0 := |
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 is the line I was arguing should not have moved
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.
OMG, I'll open a PR at once to restore that one and the one after at this place, now I see your point.
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.
… lemmas (#22713) When merging #22678 , I had not understood an observation of @eric-wieser that two lemmas had been uselessly displaced. This PR puts them at their initial place.
Add
Finsupp.bilinearCombination
andFintype.bilinearCombination
as bilinear maps.Previously,
Fintype.linearCombination
was a bilinear map, butFinsupp.linearCombination
was only linear in the second variable.That made
Fintype.linearCombination
unusable in the noncommutative case.By consistency,
Fintype.linearCombination
is downgraded to a linear map.