Skip to content

[Merged by Bors] - chore: remove Equiv.toFun_as_coe_apply - #7902

Closed
PatrickMassot wants to merge 3 commits into
masterfrom
pm_coe_porting_note
Closed

PatrickMassot wants to merge 3 commits into
masterfrom
pm_coe_porting_note

Conversation

@PatrickMassot

@PatrickMassot PatrickMassot commented Oct 24, 2023 •

Copy link
Copy Markdown
Member

This simp lemma was added during the port but tagged as probably unnecessary after fixing leanprover/lean4#1937. This PR confirms it is indeed no longer necessary. The only proofs that needed fixing were the one explicitly calling the new simp lemma.

The porting note can go too.


Open in Gitpod

@PatrickMassot PatrickMassot added awaiting-review easy < 20s of review time. See the lifecycle page for guidelines. labels Oct 24, 2023
Comment on lines -188 to -193
-- porting note: `simp` should prove this using `toFun_as_coe`, but it doesn't.
-- This might be a bug in `simp` -- see https://github.com/leanprover/lean4/issues/1937
-- If this issue is fixed then the simp linter probably will start complaining, and
-- this theorem can be deleted hopefully without breaking any `simp` proofs.
@[simp] theorem toFun_as_coe_apply (e : α ≃ β) (x : α) : e.toFun x = e x := rfl

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why doesn't simpNF complain about this one?

@eric-wieser eric-wieser changed the title chore: Fix a porting note chore: remove Equiv.toFun_as_coe_apply Oct 24, 2023
@eric-wieser

Copy link
Copy Markdown
Member

bors merge

I tweaked the title to include the name of the lemma

@github-actions github-actions Bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Oct 24, 2023
bors Bot pushed a commit that referenced this pull request Oct 24, 2023
This `simp` lemma was added during the port but tagged as probably unnecessary after fixing leanprover/lean4#1937. This PR confirms it is indeed no longer necessary. The only proofs that needed fixing were the one explicitly calling the new simp lemma.

The porting note can go too.
@bors

bors Bot commented Oct 24, 2023

Copy link
Copy Markdown

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors Bot changed the title chore: remove Equiv.toFun_as_coe_apply [Merged by Bors] - chore: remove Equiv.toFun_as_coe_apply Oct 24, 2023
@bors bors Bot closed this Oct 24, 2023
@bors
bors Bot deleted the pm_coe_porting_note branch October 24, 2023 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

easy < 20s of review time. See the lifecycle page for guidelines. ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants