From 0fa2fdcf7334957d4cd2ade1639f1e297fecb2b8 Mon Sep 17 00:00:00 2001 From: Robbert Krebbers <mail@robbertkrebbers.nl> Date: Tue, 24 May 2016 15:38:37 +0200 Subject: [PATCH] Error message when =>[H1 .. Hn] is used and goal is not a pvs. --- proofmode/tactics.v | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/proofmode/tactics.v b/proofmode/tactics.v index 17fc75871..ed27be14a 100644 --- a/proofmode/tactics.v +++ b/proofmode/tactics.v @@ -190,7 +190,10 @@ Local Tactic Notation "iSpecializePat" constr(H) constr(pat) := eapply tac_specialize_assert with _ _ _ H1 _ lr Hs _ _ _ _; [env_cbv; reflexivity || fail "iSpecialize:" H1 "not found" |solve_to_wand H1 - |match k with GoalStd => apply to_assert_fallthrough | GoalPvs => apply _ end + |match k with + | GoalStd => apply to_assert_fallthrough + | GoalPvs => apply _ || fail "iSpecialize: cannot generate pvs goal" + end |env_cbv; reflexivity || fail "iSpecialize:" Hs "not found" |(*goal*) |go H1 pats] @@ -713,7 +716,10 @@ Tactic Notation "iAssert" constr(Q) "with" constr(Hs) "as" constr(pat) := |iDestructHyp H as pat] | [SGoal ?k ?lr ?Hs] => eapply tac_assert with _ _ _ lr Hs H Q _; (* (js:=Hs) (j:=H) (P:=Q) *) - [match k with GoalStd => apply to_assert_fallthrough | GoalPvs => apply _ end + [match k with + | GoalStd => apply to_assert_fallthrough + | GoalPvs => apply _ || fail "iAssert: cannot generate pvs goal" + end |env_cbv; reflexivity || fail "iAssert:" Hs "not found" |env_cbv; reflexivity| |iDestructHyp H as pat] -- GitLab