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

Better error message in case iRevert fails.

parent 86f93e35
No related branches found
No related tags found
No related merge requests found
......@@ -368,10 +368,11 @@ Tactic Notation "iApply" open_constr (H) "{" open_constr(x1) open_constr(x2)
Tactic Notation "iRevert" "★" := eapply tac_revert_spatial; env_cbv.
Tactic Notation "iForallRevert" ident(x) :=
match type of x with
| _ : Prop => revert x; apply tac_pure_revert
let A := type of x in
lazymatch type of A with
| Prop => revert x; apply tac_pure_revert
| _ => revert x; apply tac_forall_revert
end.
end || fail "iRevert: cannot revert" x.
Tactic Notation "iImplRevert" constr(H) :=
eapply tac_revert with _ H _ _; (* (i:=H) *)
......
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