diff options
author | 2001-07-13 14:50:35 +0000 | |
---|---|---|
committer | 2001-07-13 14:50:35 +0000 | |
commit | 59300a9da64103024e8dd90b89b5528729d20a3e (patch) | |
tree | 26baeacf8ac6125f04a4033f07b8f87eb133274e /tactics/tactics.ml | |
parent | 2452b650243ced4be9ef5c95d0f9ec8c4ff67935 (diff) |
Branchement de induction/destruct sur intros_until_n (intros_do obsolete ne prend pas les letin en compte
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1848 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics/tactics.ml')
-rw-r--r-- | tactics/tactics.ml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml index 5ef73e5c4..2b1418b5a 100644 --- a/tactics/tactics.ml +++ b/tactics/tactics.ml @@ -404,6 +404,7 @@ let dyn_intros_until = function | [Integer n] -> intros_until_n n | l -> bad_tactic_args "Intros until" l +(* Obsolete, remplace par intros_unitl_n ? let intros_do n g = let depth = let rec lookup all nodep c = match kind_of_term c with @@ -424,7 +425,7 @@ let intros_do n g = lookup 1 1 (pf_concl g) in tclDO depth intro g - +*) let rec intros_move = function | [] -> tclIDTAC | (hyp,destopt) :: rest -> @@ -1429,7 +1430,7 @@ let dyn_elim = function (* This was Induction before 6.3 (induction only in quantified premisses) *) let raw_induct s = tclTHEN (intros_until s) (tclLAST_HYP simplest_elim) -let raw_induct_nodep n = tclTHEN (intros_do n) (tclLAST_HYP simplest_elim) +let raw_induct_nodep n = tclTHEN (intros_until_n n) (tclLAST_HYP simplest_elim) (* This was Induction in 6.3 (hybrid form) *) let old_induct s = tclORELSE (raw_induct s) (induction_from_context true s) @@ -1481,7 +1482,7 @@ let dyn_case =function (* Destruction tactics *) let destruct s = (tclTHEN (intros_until s) (tclLAST_HYP simplest_case)) -let destruct_nodep n = (tclTHEN (intros_do n) (tclLAST_HYP simplest_case)) +let destruct_nodep n = (tclTHEN (intros_until_n n) (tclLAST_HYP simplest_case)) let dyn_destruct = function | [Identifier x] -> destruct x |