diff options
| author | herbelin | 2000-05-22 13:10:03 +0000 |
|---|---|---|
| committer | herbelin | 2000-05-22 13:10:03 +0000 |
| commit | f9031792f714bb468c2dc8bfb49f34cfef44b27a (patch) | |
| tree | 7d67852c2ec622df3520ef08a71a63e9d55b2fd9 /pretyping/cases.ml | |
| parent | 2476b8a3397dccc8cadd7422929c844040ecc987 (diff) | |
Suite restructuration inductifs; changement nom module Constant en Declarations
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@458 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping/cases.ml')
| -rw-r--r-- | pretyping/cases.ml | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/pretyping/cases.ml b/pretyping/cases.ml index 36281359b8..85bce776a6 100644 --- a/pretyping/cases.ml +++ b/pretyping/cases.ml @@ -3,7 +3,7 @@ open Util open Names open Generic open Term -open Constant +open Declarations open Inductive open Environ open Sign @@ -220,23 +220,9 @@ let lift_tomatch_type n = liftn_tomatch_type n 1 let lift_tomatch n ((current,typ),info) = ((lift n current,lift_tomatch_type n typ),info) -let substn_many_ind_instance cv depth mis = { - mis_sp = mis.mis_sp; - mis_mib = mis.mis_mib; - mis_tyi = mis.mis_tyi; - mis_args = Array.map (substn_many cv depth) mis.mis_args; - mis_mip = mis.mis_mip -} - -let substn_many_ind_data cv depth (IndFamily (mis,params)) = - IndFamily (substn_many_ind_instance cv depth mis, - List.map (substn_many cv depth) params) - let substn_many_tomatch v depth = function - | IsInd (t,IndType (ind_data,realargs)) -> - IsInd (substn_many v depth t, - IndType (substn_many_ind_data v depth ind_data, - List.map (substn_many v depth) realargs)) + | IsInd (t,indt) -> + IsInd (substn_many v depth t,substn_many_ind_type v depth indt) | NotInd t -> NotInd (substn_many v depth t) let subst_tomatch (depth,c) = substn_many_tomatch [|make_substituend c|] depth |
