aboutsummaryrefslogtreecommitdiff
path: root/kernel/reduction.ml
diff options
context:
space:
mode:
authorfilliatr1999-08-30 13:17:26 +0000
committerfilliatr1999-08-30 13:17:26 +0000
commitf1874a538ef7e5886b72c2ec2ce21b23d05aa8d7 (patch)
treed54f85de98bbc0a137a3edeed213918a46e26374 /kernel/reduction.ml
parent19d21ec59b69a7bd5a8e4e77794e85fed6b48d39 (diff)
ajout des inductifs (sans types singletons pour l'instant)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@32 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/reduction.ml')
-rw-r--r--kernel/reduction.ml8
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/reduction.ml b/kernel/reduction.ml
index 7e81089453..77331bf5a2 100644
--- a/kernel/reduction.ml
+++ b/kernel/reduction.ml
@@ -1306,7 +1306,13 @@ let is_type_arity env =
| _ -> false
in
srec
-
+
+let is_info_type env t =
+ let s = t.typ in
+ (s = Prop Pos) ||
+ (s <> Prop Null &&
+ try info_arity env t.body with IsType -> true)
+
let is_info_cast_type env c =
match c with
| DOP2(Cast,c,t) ->