aboutsummaryrefslogtreecommitdiffhomepage
path: root/checker/univ.ml
diff options
context:
space:
mode:
authorGravatar Matthieu Sozeau <matthieu.sozeau@inria.fr>2015-01-06 20:18:42 +0100
committerGravatar Matthieu Sozeau <matthieu.sozeau@inria.fr>2015-01-06 20:18:42 +0100
commit405f26bc8d074461f1f87e85d17402002c2f3758 (patch)
tree0fea6b2795ca9b66b8eb6039b67c0fe4b6c5ab56 /checker/univ.ml
parent96183a2ab2be5b96348bf5bff67a25e02fef39ea (diff)
Fix checker's treatment of template polymorphic
inductive instantiation, now using substitution of levels. Fixes the test-suite file coqchk/univ.
Diffstat (limited to 'checker/univ.ml')
-rw-r--r--checker/univ.ml19
1 files changed, 0 insertions, 19 deletions
diff --git a/checker/univ.ml b/checker/univ.ml
index dd048cb2f..73c292508 100644
--- a/checker/univ.ml
+++ b/checker/univ.ml
@@ -1016,25 +1016,6 @@ let check_constraints c g =
Constraint.for_all (check_constraint g) c
(**********************************************************************)
-(* Tools for sort-polymorphic inductive types *)
-
-(* Miscellaneous functions to remove or test local univ assumed to
- occur only in the le constraints *)
-
-let remove_large_constraint u v min =
- match Universe.level v with
- | Some u' -> if Level.equal u u' then min else v
- | None -> Huniv.remove (Universe.Expr.make u) v
-
-let subst_large_constraint u u' v =
- (* if is_direct_constraint u v then *)
- Universe.sup u' (remove_large_constraint u v type0m_univ)
- (* else v *)
-
-let subst_large_constraints =
- List.fold_right (fun (u,u') -> subst_large_constraint u u')
-
-(**********************************************************************)
(** Universe polymorphism *)
(**********************************************************************)