aboutsummaryrefslogtreecommitdiff
path: root/kernel/term.ml
diff options
context:
space:
mode:
authorherbelin2002-08-13 16:13:32 +0000
committerherbelin2002-08-13 16:13:32 +0000
commit5c668276b37f09077231c314b03254df6dce3c48 (patch)
treeb8bb01cd33a1bf16d9270359dbac796a223a4f32 /kernel/term.ml
parenta3848b0a10064fb7e206a503ac8b829cb9ce4666 (diff)
Renoncement
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2962 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/term.ml')
-rw-r--r--kernel/term.ml12
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/term.ml b/kernel/term.ml
index 0c5dc2a54e..da8c3062af 100644
--- a/kernel/term.ml
+++ b/kernel/term.ml
@@ -891,8 +891,8 @@ let mkProd_or_LetIn (na,body,t) c =
let mkNamedProd_or_LetIn (id,body,t) c =
match body with
- | None -> mkNamedProd id (body_of_type t) c
- | Some b -> mkNamedLetIn id b (body_of_type t) c
+ | None -> mkNamedProd id t c
+ | Some b -> mkNamedLetIn id b t c
(* Constructs either [[x:t]c] or [[x=b:t]c] *)
let mkLambda_or_LetIn (na,body,t) c =
@@ -902,18 +902,18 @@ let mkLambda_or_LetIn (na,body,t) c =
let mkNamedLambda_or_LetIn (id,body,t) c =
match body with
- | None -> mkNamedLambda id (body_of_type t) c
- | Some b -> mkNamedLetIn id b (body_of_type t) c
+ | None -> mkNamedLambda id t c
+ | Some b -> mkNamedLetIn id b t c
(* Constructs either [(x:t)c] or [c] where [x] is replaced by [b] *)
let mkProd_wo_LetIn (na,body,t) c =
match body with
- | None -> mkProd (na, body_of_type t, c)
+ | None -> mkProd (na, t, c)
| Some b -> subst1 b c
let mkNamedProd_wo_LetIn (id,body,t) c =
match body with
- | None -> mkNamedProd id (body_of_type t) c
+ | None -> mkNamedProd id t c
| Some b -> subst1 b (subst_var id c)
(* non-dependent product t1 -> t2 *)