aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpboutill2012-05-31 22:20:16 +0000
committerpboutill2012-05-31 22:20:16 +0000
commitd2e15d9a8b3024a09dc298cf143073b4649dce43 (patch)
tree780e29b9f9dd054a1e7307a09e1ed00e968a129f
parentb02100226bacc2ebed8dd69adcb5bd8e1df27087 (diff)
tactic is_fix, akin to is_evar, is_hyp, is_ ... family
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15406 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--tactics/extratactics.ml46
1 files changed, 6 insertions, 0 deletions
diff --git a/tactics/extratactics.ml4 b/tactics/extratactics.ml4
index cdb192ffa9..599db8365c 100644
--- a/tactics/extratactics.ml4
+++ b/tactics/extratactics.ml4
@@ -771,6 +771,12 @@ TACTIC EXTEND is_hyp
| _ -> tclFAIL 0 (str "Not a variable or hypothesis") ]
END
+TACTIC EXTEND is_fix
+| [ "is_fix" constr(x) ] ->
+ [ match kind_of_term x with
+ | Fix _ -> Tacticals.tclIDTAC
+ | _ -> Tacticals.tclFAIL 0 (Pp.str "not a fix definition") ]
+END;;
(* Command to grab the evars left unresolved at the end of a proof. *)
(* spiwack: I put it in extratactics because it is somewhat tied with