Skip to content
Snippets Groups Projects
Commit 46878a8c authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Better error message for iSpecialize.

parent 2a8c9e10
No related branches found
No related tags found
No related merge requests found
......@@ -169,7 +169,9 @@ Tactic Notation "iSpecializePat" constr(H) constr(pat) :=
eapply tac_specialize with _ _ H2 _ H1 _ _ _ _; (* (j:=H1) (i:=H2) *)
[env_cbv; reflexivity || fail "iSpecialize:" H2 "not found"
|env_cbv; reflexivity || fail "iSpecialize:" H1 "not found"
|solve_to_wand H1
|let P := match goal with |- ToWand ?P ?Q _ => P end in
let Q := match goal with |- ToWand ?P ?Q _ => Q end in
apply _ || fail "iSpecialize: cannot instantiate" H1 ":" P "with" H2 ":" Q
|env_cbv; reflexivity|go H1 pats]
| SPersistent :: ?pats =>
eapply tac_specialize_range_persistent with _ _ H1 _ _ _ _;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment