diff options
author | Maxime Dénès <mail@maximedenes.fr> | 2018-02-21 18:53:56 +0100 |
---|---|---|
committer | Maxime Dénès <mail@maximedenes.fr> | 2018-02-21 18:53:56 +0100 |
commit | 6ee9f47718fa9929de4d8e724d9df6d389ea9dc8 (patch) | |
tree | 99651982cd8f5c20ebc86a2124297af72884e97d /kernel/univ.mli | |
parent | aec63ba9c8f6840d98ba731640a786138d836343 (diff) | |
parent | d50cee3fa401246061c106248b749be03e108298 (diff) |
Merge PR #6740: Adding a sanity check on inductive variance subtyping.
Diffstat (limited to 'kernel/univ.mli')
-rw-r--r-- | kernel/univ.mli | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/univ.mli b/kernel/univ.mli index c45ebe21c..74d1bfd3a 100644 --- a/kernel/univ.mli +++ b/kernel/univ.mli @@ -253,6 +253,9 @@ sig A'] as opposed to [A' <= A]. *) type t = Irrelevant | Covariant | Invariant + (** [check_subtype x y] holds if variance [y] is also an instance of [x] *) + val check_subtype : t -> t -> bool + val sup : t -> t -> t val pr : t -> Pp.t |