aboutsummaryrefslogtreecommitdiff
path: root/pretyping/tacred.ml
diff options
context:
space:
mode:
authorherbelin2000-10-18 17:51:58 +0000
committerherbelin2000-10-18 17:51:58 +0000
commitedfda2501f08f18e24bd2e3eca763eb1c2dec0ea (patch)
treee4c42c670c2f61b95a7a0f68fd96f635aeef8b2b /pretyping/tacred.ml
parenta586cb418549eb523a3395155cab2560fd178571 (diff)
Simplifications autour de typed_type (renommé types par analogie avec sorts); documentation
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@727 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping/tacred.ml')
-rw-r--r--pretyping/tacred.ml8
1 files changed, 2 insertions, 6 deletions
diff --git a/pretyping/tacred.ml b/pretyping/tacred.ml
index c1fa26c5fa..3d58b6a248 100644
--- a/pretyping/tacred.ml
+++ b/pretyping/tacred.ml
@@ -625,12 +625,8 @@ let reduce_to_mind env sigma t =
elimrec t' l
with UserError _ -> errorlabstrm "tactics__reduce_to_mind"
[< 'sTR"Not an inductive product." >])
- | IsProd (n,ty,t') ->
- let ty' = Retyping.get_assumption_of (Global.env()) Evd.empty ty in
- elimrec t' ((n,None,ty')::l)
- | IsLetIn (n,b,ty,t') ->
- let ty' = Retyping.get_assumption_of (Global.env()) Evd.empty ty in
- elimrec t' ((n,Some b,ty')::l)
+ | IsProd (n,ty,t') -> elimrec t' ((n,None,ty)::l)
+ | IsLetIn (n,b,ty,t') -> elimrec t' ((n,Some b,ty)::l)
| _ -> error "Not an inductive product"
in
elimrec t []