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(init/meta/interative): Change the behaviour of specialize to put goals from underscores first #530

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update library/init/meta/interactive.lean
Co-authored-by: Bryan Gin-ge Chen <[email protected]>
shingtaklam1324 and bryangingechen authored Feb 11, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 49839fd7d6a287883c0ee68fe3e7fca6fccd4ef6
2 changes: 1 addition & 1 deletion library/init/meta/interactive.lean
Original file line number Diff line number Diff line change
@@ -1636,7 +1636,7 @@ do gs ← get_goals,
/--
The tactic `specialize h a₁ ... aₙ` works on local hypothesis `h`. The premises of this hypothesis, either universal quantifications or non-dependent implications, are instantiated by concrete terms coming either from arguments `a₁` ... `aₙ`. The tactic adds a new hypothesis with the same name `h := h a₁ ... aₙ` and tries to clear the previous one.
-/
meta def specialize' (p : parse texpr) : tactic unit :=
meta def specialize (p : parse texpr) : tactic unit :=
focus1 $
do e ← i_to_expr p,
let h := expr.get_app_fn e,