aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2003-10-10 19:08:18 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2003-10-10 19:08:18 +0000
commit9370bdc7e5e2088c3146f49705987cc253dcf590 (patch)
treed99b98d898a25a525ab791c5e2d4ff4c7d08af77
parent2fd44905ab9eb1991dee9bcc0f3e4720135ab143 (diff)
Ajout option 'as [ ... ]' pour nommer les noms de 'Inversion'
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4580 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--tactics/tactics.ml14
1 files changed, 3 insertions, 11 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml
index f38be2f24..5a8ce2242 100644
--- a/tactics/tactics.ml
+++ b/tactics/tactics.ml
@@ -273,7 +273,8 @@ type intro_name_flag =
| IntroMustBe of identifier
let find_name decl gl = function
- | IntroAvoid idl -> fresh_id idl (default_id gl decl) gl
+ | IntroAvoid idl ->
+ let id = fresh_id idl (default_id gl decl) gl in id
| IntroBasedOn (id,idl) -> fresh_id idl id gl
| IntroMustBe id ->
let id' = fresh_id [] id gl in
@@ -318,7 +319,7 @@ let rec intros_using = function
let intros = tclREPEAT (intro_force false)
-let intro_erasing id = tclTHEN (thin [id]) (intro_using id)
+let intro_erasing id = tclTHEN (thin [id]) (intro_using id gl)
let intros_replacing ids gls =
let rec introrec = function
@@ -1008,8 +1009,6 @@ let intro_patterns = function
| [] -> tclREPEAT intro
| l -> intros_pattern None l
-let h_intro_patterns l = abstract_tactic (TacIntroPattern l) (intro_patterns l)
-
(*
* A "natural" induction tactic
*
@@ -1325,13 +1324,6 @@ let induction_tac varname typ (elimc,elimt,lbindelimc) gl =
make_clenv_binding wc (mkCast (elimc,elimt),elimt) lbindelimc in
elimination_clause_scheme kONT elimclause indclause true gl
-let compute_induction_names n names =
- let names = if names = [] then Array.make n [] else Array.of_list names in
- if Array.length names <> n then
- errorlabstrm "induction_from_context"
- (str "Expect " ++ int n ++ str " lists of names");
- names
-
let is_indhyp p n t =
let l, c = decompose_prod t in
let c,_ = decompose_app c in