aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorherbelin2000-07-01 10:15:38 +0000
committerherbelin2000-07-01 10:15:38 +0000
commit7da855f0e3ed56aa9ad9149f6ef95be11f7ec5d2 (patch)
tree0f542f00fc75403d95f0e8799630a54c0ee7b14f /kernel
parent460c3399fd877bf5ca4a7c8029c2dc35db86da8b (diff)
Extension de find_inductive aux co-inductifs et renommage en find_rectype
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@542 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel')
-rw-r--r--kernel/inductive.ml4
-rw-r--r--kernel/inductive.mli6
-rw-r--r--kernel/typeops.ml2
3 files changed, 6 insertions, 6 deletions
diff --git a/kernel/inductive.ml b/kernel/inductive.ml
index a3e95abbd8..16139abfeb 100644
--- a/kernel/inductive.ml
+++ b/kernel/inductive.ml
@@ -196,8 +196,8 @@ let lookup_mind_specif ((sp,tyi),args) env =
{ mis_sp = sp; mis_mib = mib; mis_tyi = tyi; mis_args = args;
mis_mip = mind_nth_type_packet mib tyi }
-let find_inductive env sigma ty =
- let (mind,largs) = find_minductype env sigma ty in
+let find_rectype env sigma ty =
+ let (mind,largs) = find_mrectype env sigma ty in
let mispec = lookup_mind_specif mind env in
let nparams = mis_nparams mispec in
let (params,realargs) = list_chop nparams largs in
diff --git a/kernel/inductive.mli b/kernel/inductive.mli
index 33f85d800b..3033c09a9c 100644
--- a/kernel/inductive.mli
+++ b/kernel/inductive.mli
@@ -147,11 +147,11 @@ val find_mcoinductype : env -> 'a evar_map -> constr -> inductive * constr list
val lookup_mind_specif : inductive -> env -> inductive_instance
-(* [find_inductive env sigma t] builds an [inductive_type] or raises
- [Induc] if [t] is not an inductive type; The result is relative to
+(* [find_rectype env sigma t] builds an [inductive_type] or raises
+ [Induc] if [t] is not a (co-)inductive type; The result is relative to
[env] and [sigma] *)
-val find_inductive : env -> 'a evar_map -> constr -> inductive_type
+val find_rectype : env -> 'a evar_map -> constr -> inductive_type
(* [get_constructors indf] build an array of [constructor_summary]
from some inductive type already analysed as an [inductive_family];
diff --git a/kernel/typeops.ml b/kernel/typeops.ml
index 7edb8680f1..720061fa59 100644
--- a/kernel/typeops.ml
+++ b/kernel/typeops.ml
@@ -209,7 +209,7 @@ let check_branches_message env sigma (c,ct) (explft,lft) =
let type_of_case env sigma ci pj cj lfj =
let lft = Array.map (fun j -> body_of_type j.uj_type) lfj in
let indspec =
- try find_inductive env sigma (body_of_type cj.uj_type)
+ try find_rectype env sigma (body_of_type cj.uj_type)
with Induc ->
error_case_not_inductive CCI env cj.uj_val (body_of_type cj.uj_type) in
let (bty,rslty) =