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(analysis/normed_space/linear_isometry): linear_equiv.of_eq as a linear_isometry_equiv #15471

Closed
wants to merge 6 commits into from

Conversation

ADedecker
Copy link
Member

@ADedecker ADedecker commented Jul 17, 2022

We also setup simps on linear_isometry and linear_isometry_equiv.


Open in Gitpod


variables {p q}

@[simp] lemma coe_of_eq_apply (h : p = q) (x : p) : (of_eq p q h x : E) = x := rfl
Copy link
Member

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.

Copy link
Member

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)

Copy link
Member Author

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

Copy link
Member Author

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 ?

@eric-wieser eric-wieser added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Jul 18, 2022
@ADedecker ADedecker removed the easy < 20s of review time. See the lifecycle page for guidelines. label Jul 19, 2022
@ADedecker ADedecker added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Jul 20, 2022
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) :
Copy link
Member

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?

Copy link
Member Author

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

@bors
Copy link

bors bot commented Jul 20, 2022

✌️ ADedecker can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ADedecker ADedecker added delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels Jul 20, 2022
@ADedecker
Copy link
Member Author

bors r+

bors bot pushed a commit that referenced this pull request Jul 21, 2022
…a `linear_isometry_equiv` (#15471)

We also setup `simps` on `linear_isometry` and `linear_isometry_equiv`.
@bors
Copy link

bors bot commented Jul 21, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(analysis/normed_space/linear_isometry): linear_equiv.of_eq as a linear_isometry_equiv [Merged by Bors] - feat(analysis/normed_space/linear_isometry): linear_equiv.of_eq as a linear_isometry_equiv Jul 21, 2022
@bors bors bot closed this Jul 21, 2022
@bors bors bot deleted the AD_linear_isometry_equiv_of_eq branch July 21, 2022 04:32
joelriou pushed a commit that referenced this pull request Jul 23, 2022
…a `linear_isometry_equiv` (#15471)

We also setup `simps` on `linear_isometry` and `linear_isometry_equiv`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated The PR author may merge after reviewing final suggestions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants