diff options
| author | Pierre-Marie Pédrot | 2020-02-13 16:36:35 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-03-06 14:47:09 +0100 |
| commit | 95d294fede1d581cec2913991961b332acfea8b3 (patch) | |
| tree | 42156adad2ed1f6cde79643a1ca66728be3f81f8 /kernel/safe_typing.ml | |
| parent | 346dd51bb4a822378c6f9f1a9aab938b0cd62f64 (diff) | |
Also check for monomorphic universes in side-effects certificates.
Diffstat (limited to 'kernel/safe_typing.ml')
| -rw-r--r-- | kernel/safe_typing.ml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/safe_typing.ml b/kernel/safe_typing.ml index 1f97497d60..0f92af48cb 100644 --- a/kernel/safe_typing.ml +++ b/kernel/safe_typing.ml @@ -262,18 +262,24 @@ struct type t = { certif_struc : Declarations.structure_body; + certif_univs : Univ.ContextSet.t; } let make senv = { certif_struc = senv.revstruct; + certif_univs = senv.univ; } let is_suffix l suf = match l with | [] -> false | _ :: l -> l == suf +let is_subset (s1, cst1) (s2, cst2) = + Univ.LSet.subset s1 s2 && Univ.Constraint.subset cst1 cst2 + let check ~src ~dst = - is_suffix dst.certif_struc src.certif_struc + is_suffix dst.certif_struc src.certif_struc && + is_subset src.certif_univs dst.certif_univs end |
