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(analysis/normed_space/linear_isometry): linear_equiv.of_eq
as a linear_isometry_equiv
#15471
Conversation
|
||
variables {p q} | ||
|
||
@[simp] lemma coe_of_eq_apply (h : p = q) (x : p) : (of_eq p q h x : E) = x := rfl |
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.
Could you please setup simps
to work with linear isometries, if that is not already done? Then these lemmas can be auto-generated.
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 think simps is easy to configure to generate the right name here (with coe
as a prefix)
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.
Yes, if we want to autogenerate these we can't do anything about the names. I'm struggling a bit to understand how to setup these properly, but I'll ask people in Providence tomorrow
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 did the simps
setup and removed the coe_of_eq_apply
, here and for linear_equiv
, since simps
generate it as of_eq_apply
, which is more homogeneous with the rest of the library. Does that sound fine ?
variables {R E E₂ E₃} {R' : Type*} [ring R'] [module R' E] (p q : submodule R' E) | ||
|
||
/-- `linear_equiv.of_eq` as a `linear_isometry_equiv`. -/ | ||
@[simps apply symm_apply] def of_eq (hpq : p = q) : |
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.
What lemmas does this generate now then?
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.
Okay I should have checked more carefully, because this doesn't give what we want here. The generated lemmas basically says that linear_isometry_equiv.of_eq p q h x = linear_equiv.of_eq p q h x
, which itself simplifies back to equiv.set_of_eq
...
So I'll switch back to the manually generated ones
✌️ ADedecker can now approve this pull request. To approve and merge a pull request, simply reply with |
bors r+ |
…a `linear_isometry_equiv` (#15471) We also setup `simps` on `linear_isometry` and `linear_isometry_equiv`.
Pull request successfully merged into master. Build succeeded: |
linear_equiv.of_eq
as a linear_isometry_equiv
linear_equiv.of_eq
as a linear_isometry_equiv
…a `linear_isometry_equiv` (#15471) We also setup `simps` on `linear_isometry` and `linear_isometry_equiv`.
We also setup
simps
onlinear_isometry
andlinear_isometry_equiv
.