aboutsummaryrefslogtreecommitdiff
path: root/kernel/term.ml
diff options
context:
space:
mode:
authorherbelin2000-06-29 11:13:03 +0000
committerherbelin2000-06-29 11:13:03 +0000
commit2271d217280ac72632fa84574e5a7429a0394278 (patch)
treef7736e0b8a8ef1a26d3ff129a2c14102d93fedfd /kernel/term.ml
parent303a9cded85aa89c15d620d7a11e850c2ada7b37 (diff)
Ajout make_typed_lazy
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@528 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/term.ml')
-rw-r--r--kernel/term.ml10
1 files changed, 2 insertions, 8 deletions
diff --git a/kernel/term.ml b/kernel/term.ml
index 27f7d7a11c..de4d6cbce0 100644
--- a/kernel/term.ml
+++ b/kernel/term.ml
@@ -73,6 +73,7 @@ type typed_type = sorts judge
type typed_term = typed_type judge
let make_typed t s = { body = t; typ = s }
+let make_typed_lazy t f = { body = t; typ = f s }
let typed_app f tt = { body = f tt.body; typ = tt.typ }
@@ -92,6 +93,7 @@ type typed_type = constr
type typed_term = typed_type judge
let make_typed t s = t
+let make_typed_lazy t f = t
let typed_app f tt = f tt
@@ -341,14 +343,6 @@ let destCast = function
let isCast = function DOP2(Cast,_,_) -> true | _ -> false
-let cast_term = function
- | DOP2(Cast,c,t) -> c
- | _ -> anomaly "found a type which did not contain a cast (cast_term)"
-
-let cast_type = function
- | DOP2(Cast,c,t) -> t
- | _ -> anomaly "found a type which did not contain a cast (cast_type)"
-
let rec strip_outer_cast = function
| DOP2(Cast,c,_) -> strip_outer_cast c
| c -> c