From 5c668276b37f09077231c314b03254df6dce3c48 Mon Sep 17 00:00:00 2001 From: herbelin Date: Tue, 13 Aug 2002 16:13:32 +0000 Subject: Renoncement git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2962 85f007b7-540e-0410-9357-904b9bb8a0f7 --- kernel/term.ml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kernel/term.ml') 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 *) -- cgit v1.2.3