[Merged by Bors] - chore(Analysis/InnerProductSpace): weaken assumptions to SeminormedAddCommGroup#17007
[Merged by Bors] - chore(Analysis/InnerProductSpace): weaken assumptions to SeminormedAddCommGroup#17007yoh-tanimoto wants to merge 9 commits intomasterfrom
SeminormedAddCommGroup#17007Conversation
PR summary 0f88afc31fImport changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diffNo declarations were harmed in the making of this PR! 🐙 You can run this locally as follows## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>The doc-module for |
|
!bench |
|
Here are the benchmark results for commit 94fe59e. |
|
I span off #17011 from this; I think that in turn will make some sections more generalizable. |
SemiNormedAddCommGroupSemiNormedAddCommGroup
SemiNormedAddCommGroupSemiNormedAddCommGroup
| namespace Completion | ||
|
|
||
| variable (𝕜 E : Type*) [NormedField 𝕜] [NormedAddCommGroup E] [NormedSpace 𝕜 E] | ||
| variable (𝕜 E : Type*) [NormedField 𝕜] [SeminormedAddCommGroup E] [NormedSpace 𝕜 E] |
There was a problem hiding this comment.
I've done a much more thorough version of this in #17059, but they can be merged in either order.
I managed to solve this for you with a |
SemiNormedAddCommGroupSeminormedAddCommGroup
eric-wieser
left a comment
There was a problem hiding this comment.
This now looks good to me; I think there are probably more generalizations possible elsewhere, but this already hits quite a lot of them!
Were there any more you wanted help with, or can the help-wanted label go?
|
Yes, I only checked Could you please tell me why |
SeminormedAddCommGroupSeminormedAddCommGroup
|
@yoh-tanimoto I think Eric already explained this above. The issue is that the instance it was trying to use required |
|
bors merge |
…ddCommGroup` (#17007) replace the assumption `NormedAddCommGroup` to `SemiNormedAddCommGroup` in various places. motivation: with the weakened assumption the results apply to `InnerProductSpace` without `definite` assumption. This is suggested in #16707, and continues from #14024. Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
Pull request successfully merged into master. Build succeeded: |
SeminormedAddCommGroupSeminormedAddCommGroup
Actually the issue here was more subtle; the lemma was about a non-instance typeclass argument provided through a messy |
|
Yes, I meant that. Even with |
…ddCommGroup` (#17007) replace the assumption `NormedAddCommGroup` to `SemiNormedAddCommGroup` in various places. motivation: with the weakened assumption the results apply to `InnerProductSpace` without `definite` assumption. This is suggested in #16707, and continues from #14024. Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
replace the assumption
NormedAddCommGrouptoSemiNormedAddCommGroupin various places.motivation: with the weakened assumption the results apply to
InnerProductSpacewithoutdefiniteassumption.This is suggested in #16707, and continues from #14024.
I think it should be possible to do the same with
IsSymmetric.restrictScalarsbutCompatibleSMul E E ℝ 𝕜cannot be synthesized. Can anyone help?Are there other things that work with
SemiNormedAddCommGroup?I noticed that in InnerProductSpace.Basic there are two instances of
InnerProductSpace ℝ ℂ. Should I remove the latter?