Skip to content

feat: more lemmas about equality#465

Merged
joehendrix merged 4 commits intoleanprover-community:mainfrom
astrainfinita:more_lemmas_about_eq
Jan 11, 2024
Merged

feat: more lemmas about equality#465
joehendrix merged 4 commits intoleanprover-community:mainfrom
astrainfinita:more_lemmas_about_eq

Conversation

@astrainfinita
Copy link
Copy Markdown
Contributor

No description provided.

@astrainfinita astrainfinita mentioned this pull request Dec 15, 2023
2 tasks
@astrainfinita
Copy link
Copy Markdown
Contributor Author

awaiting-review

@github-actions github-actions bot added the awaiting-review This PR is ready for review; the author thinks it is ready to be merged. label Dec 17, 2023
Std/Logic.lean Outdated
Comment on lines +743 to +747
@[simp] theorem eq_mp_eq_cast (h : α = β) : Eq.mp h = cast h :=
rfl

@[simp] theorem eq_mpr_eq_cast (h : α = β) : Eq.mpr h = cast h.symm :=
rfl
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

These two theorems should not be simp.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This broke mathlib in a few case. Was that breakage expected?

@joehendrix joehendrix added awaiting-author Waiting for PR author to address issues and removed awaiting-review This PR is ready for review; the author thinks it is ready to be merged. labels Dec 20, 2023
@astrainfinita
Copy link
Copy Markdown
Contributor Author

awaiting-review

@github-actions github-actions bot added awaiting-review This PR is ready for review; the author thinks it is ready to be merged. and removed awaiting-author Waiting for PR author to address issues labels Dec 20, 2023
@fgdorais fgdorais added awaiting-author Waiting for PR author to address issues and removed awaiting-review This PR is ready for review; the author thinks it is ready to be merged. labels Dec 28, 2023
Co-authored-by: François G. Dorais <fgdorais@gmail.com>
@astrainfinita
Copy link
Copy Markdown
Contributor Author

awaiting-review

@github-actions github-actions bot added awaiting-review This PR is ready for review; the author thinks it is ready to be merged. and removed awaiting-author Waiting for PR author to address issues labels Dec 29, 2023
@joehendrix joehendrix added will-merge-soon PR will be merged soon. Any concerns should be raised quickly. and removed awaiting-review This PR is ready for review; the author thinks it is ready to be merged. labels Jan 10, 2024
@fgdorais fgdorais mentioned this pull request Jan 10, 2024
@joehendrix joehendrix merged commit b6dedd7 into leanprover-community:main Jan 11, 2024
Comment on lines +769 to +773
theorem eq_mp_eq_cast (h : α = β) : Eq.mp h = cast h :=
rfl

theorem eq_mpr_eq_cast (h : α = β) : Eq.mpr h = cast h.symm :=
rfl
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm not thilled about PRs that upstream lemmas but drop @[simp] attributes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think that was an oversight. We could add them in a separate PR.

Copy link
Copy Markdown
Collaborator

@fgdorais fgdorais Jan 11, 2024

Choose a reason for hiding this comment

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

This was my bad! The issue is that Std doesn't know much what to do with cast, so these simps led "nowhere" in a sense.

A better solution would have been to delete them and wait until better cast support makes it down to Std.

astrainfinita added a commit to leanprover-community/mathlib4 that referenced this pull request Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

will-merge-soon PR will be merged soon. Any concerns should be raised quickly.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants