-
Notifications
You must be signed in to change notification settings - Fork 297
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(logic/basic, logic/function/basic): make cast
the simp-normal form of eq.mp
and eq.mpr
, add lemmas
#6834
Conversation
The failure is a bit odd; it's on this line: mathlib/src/category_theory/filtered.lean Line 230 in 0ded4eb
And it gets stuck at the goal
|
Should the simp lemmas be restricted to Another option is to give them a lower priority, so that |
|
Another idea here would be to make |
Good point about the lemmas being trivial for |
There is no reason to put it in core. I would put them into logic/basic or logic/function/basic. |
…er-community/mathlib into eric-wieser/eq_rec_on_bijective
…on_bijective Also fixes some missing simp lemmas
cast
the simp-normal form of eq.mp
and eq.mpr
, add lemmas
lemma eq_mp_bijective {α β : Sort*} (h : α = β) : function.bijective (eq.mp h) := | ||
eq_rec_on_bijective h | ||
|
||
lemma eq_mpr_bijective {α β : Sort*} (h : α = β) : function.bijective (eq.mpr h) := | ||
eq_rec_on_bijective h.symm | ||
|
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.
Should I just remove these, now that mp
and mpr
are rewritten into cast
by simp
?
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 wouldn't remove them. One can't be sure that simp
will be able to reach every eq.mp
.
bors r+ |
…form of `eq.mp` and `eq.mpr`, add lemmas (#6834) This adds the fact that `eq.rec`, `eq.mp`, `eq.mpr`, and `cast` are bijective, as well as some simp lemmas that follow from their injectivity.
Pull request successfully merged into master. Build succeeded: |
cast
the simp-normal form of eq.mp
and eq.mpr
, add lemmascast
the simp-normal form of eq.mp
and eq.mpr
, add lemmas
…form of `eq.mp` and `eq.mpr`, add lemmas (#6834) This adds the fact that `eq.rec`, `eq.mp`, `eq.mpr`, and `cast` are bijective, as well as some simp lemmas that follow from their injectivity.
This adds the fact that
eq.rec
,eq.mp
,eq.mpr
, andcast
are bijective, as well as some simp lemmas that follow from their injectivity.