aboutsummaryrefslogtreecommitdiff
path: root/contrib/linear
diff options
context:
space:
mode:
authorherbelin2003-03-31 21:18:53 +0000
committerherbelin2003-03-31 21:18:53 +0000
commit00608fac2d8e217232d5f2ddd28a43971bf259b7 (patch)
tree0bd65009594d83c85a6e3f4f5bf8a0e77e0b4fc6 /contrib/linear
parentca29570a25be8f9b8757399f5f0b72b4a9bd5e43 (diff)
Ajout d'un message à FailTac
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3825 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/linear')
-rwxr-xr-xcontrib/linear/ccidpc.ml410
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/linear/ccidpc.ml4 b/contrib/linear/ccidpc.ml4
index 09b81f349c..a9b3e50ee7 100755
--- a/contrib/linear/ccidpc.ml4
+++ b/contrib/linear/ccidpc.ml4
@@ -206,33 +206,33 @@ let rec alpha_term bl1 bl2 p_0 p_1 =
let forAllI id gls=if is_forall_term (pf_concl gls) then
- intro_using id gls else tclFAIL 0 gls
+ intro_using id gls else tclFAIL 0 "goal is not universally quantified" gls
let forAllE id t gls =
let rgl=pf_whd_betadeltaiota gls (pf_type_of gls (mkVar id)) in
if is_forall_term rgl then
tclTHEN (generalize [mkApp (mkVar id,[|t|])]) intro gls
- else tclFAIL 0 gls
+ else tclFAIL 0 "hypothesis is not universally quantified" gls
let existE id id2 gls =
let (_,_,t)=lookup_named id (pf_hyps gls) in
if is_exist_term t then
((tclTHEN (simplest_elim (mkVar id))
(tclTHEN (intro_using id2) (dImp None)))) gls
- else tclFAIL 0 gls
+ else tclFAIL 0 "hypothesis is not existentially quantified" gls
let negE id gls =
let (_,_,t)=lookup_named id (pf_hyps gls) in
if is_not_term t then
(simplest_elim (mkVar id)) gls
- else tclFAIL 0 gls
+ else tclFAIL 0 "hypothesis is not negated" gls
(*t exist_intro_head = put_pat mmk "ex_intro"*)
let existI t gls =
if is_exist_term (pf_concl gls) then
split (Rawterm.ImplicitBindings [t]) gls
- else tclFAIL 0 gls
+ else tclFAIL 0 "goal is not existentially quantified" gls
(*
let (wc,kONT) = Evar_refiner.startWalk gls in