aboutsummaryrefslogtreecommitdiffhomepage
path: root/checker/univ.mli
diff options
context:
space:
mode:
authorGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2017-07-11 14:31:52 +0200
committerGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2017-07-11 14:55:05 +0200
commit8cd0413c0bd79256b59ffbbfd97d61af86f5cc25 (patch)
tree3b465aa418ee53236e41cdca1084a849ad5cb6a3 /checker/univ.mli
parent40ec7bc85b78f68257593234016f82d8e78d6384 (diff)
Properly handling polymorphic inductive subtyping in the checker.
This is the followup of the previous commit, this time implementing the correct algorithm in the checker.
Diffstat (limited to 'checker/univ.mli')
-rw-r--r--checker/univ.mli6
1 files changed, 5 insertions, 1 deletions
diff --git a/checker/univ.mli b/checker/univ.mli
index 75c76cd12..01df46fa1 100644
--- a/checker/univ.mli
+++ b/checker/univ.mli
@@ -212,6 +212,7 @@ sig
val size : t -> int
val instantiate : Instance.t -> t -> Constraint.t
+ val repr : t -> UContext.t
end
@@ -289,7 +290,10 @@ val instantiate_cumulativity_info : abstract_cumulativity_info -> cumulativity_i
(** Build the relative instance corresponding to the context *)
val make_abstract_instance : abstract_universe_context -> universe_instance
-
+
+(** Check instance subtyping *)
+val check_subtype : universes -> AUContext.t -> AUContext.t -> bool
+
(** {6 Pretty-printing of universes. } *)
val pr_constraint_type : constraint_type -> Pp.std_ppcmds