diff options
author | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2006-01-19 17:22:40 +0000 |
---|---|---|
committer | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2006-01-19 17:22:40 +0000 |
commit | 2a5d2691afb268a5cd478bd0f54774f53849b99f (patch) | |
tree | 5f2c8cb0d526942090d7a7b4d4f5e5974ae60fe8 /tactics | |
parent | a1440ee74b14532cad3e49d518336ed336e0b137 (diff) |
Conséquences supplémentaires de la fin du support v7
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7895 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics')
-rw-r--r-- | tactics/tactics.ml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml index 36b948862..f57b490fc 100644 --- a/tactics/tactics.ml +++ b/tactics/tactics.ml @@ -1362,7 +1362,7 @@ let make_base n id = (* digits *) id_of_string (atompart_of_id (make_ident (string_of_id id) (Some 0))) -let make_up_names n ind (_,cname) = +let make_up_names n ind cname = let is_hyp = atompart_of_id cname = "H" in let base = string_of_id (make_base n cname) in let hyprecname = @@ -1463,7 +1463,7 @@ let compute_elim_signature elimt names_info = find_branches 0 l in nparams, indt, (Array.of_list (check_elim 0 revhyps2)) -let find_elim_signature isrec style elim hyp0 gl = +let find_elim_signature isrec elim hyp0 gl = let tmptyp0 = pf_get_hyp_typ gl hyp0 in let (elimc,elimt) = match elim with | None -> @@ -1476,8 +1476,7 @@ let find_elim_signature isrec style elim hyp0 gl = ((elimc, NoBindings), elimt) | Some (elimc,lbind as e) -> (e, pf_type_of gl elimc) in - let name_info = (style,hyp0) in - let nparams,indref,indsign = compute_elim_signature elimt name_info in + let nparams,indref,indsign = compute_elim_signature elimt hyp0 in (elimc,elimt,nparams,indref,indsign) let induction_from_context isrec elim_info hyp0 names gl = @@ -1521,13 +1520,11 @@ let induction_from_context isrec elim_info hyp0 names gl = let induction_with_atomization_of_ind_arg isrec elim names hyp0 gl = let (elimc,elimt,nparams,indref,indsign as elim_info) = - find_elim_signature isrec false elim hyp0 gl in + find_elim_signature isrec elim hyp0 gl in tclTHEN (atomize_param_of_ind (indref,nparams) hyp0) (induction_from_context isrec elim_info hyp0 names) gl -(* This is Induction since V7 ("natural" induction both in quantified - premisses and introduced ones) *) let new_induct_gen isrec elim names c gl = match kind_of_term c with | Var id when not (mem_named_context id (Global.named_context())) -> @@ -1540,6 +1537,7 @@ let new_induct_gen isrec elim names c gl = (letin_tac true (Name id) c allClauses) (induction_with_atomization_of_ind_arg isrec elim names id) gl +(* Induction either over a term or over a quantified premisse *) let new_induct_destruct isrec c elim names = match c with | ElimOnConstr c -> new_induct_gen isrec elim names c | ElimOnAnonHyp n -> |