-
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(tactic/lift): elaborate proof with the expected type #7739
Conversation
also slightly refactor the corresponding function a bit
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.
bors r+
prf ← mk_app `can_lift.cond [old_tp, new_tp, inst, e] >>= assert prf_nm, | ||
dsimp_target s to_unfold {}, swap, return prf) | ||
expected_prf_ty ← s.dsimplify to_unfold expected_prf_ty, | ||
if h_some : h.is_some 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.
A match h with | some h => ... | none => ...
seems infinitely clearer here than the dependent if, but I realize that's in the eye of the beholder.
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.
Fair
* also slightly refactor the corresponding function a bit * add some tests * move all tests to `tests/lift.lean`
Pull request successfully merged into master. Build succeeded: |
tests/lift.lean