diff options
author | Amin Timany <amintimany@gmail.com> | 2017-05-03 11:21:47 +0200 |
---|---|---|
committer | Emilio Jesus Gallego Arias <e+git@x80.org> | 2017-06-16 04:51:17 +0200 |
commit | 763f5d5d5c6f8b798cc138d0c68fffcb7c544e41 (patch) | |
tree | 6a76d241b23be331b14016a103fe3580b6a4daa6 /checker/univ.ml | |
parent | d6898781f9cd52ac36a4891d7b169ddab7b8af50 (diff) |
Correct coqchk checking subtyping relation for inductives
Diffstat (limited to 'checker/univ.ml')
-rw-r--r-- | checker/univ.ml | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/checker/univ.ml b/checker/univ.ml index fa884d9d0..525f535e9 100644 --- a/checker/univ.ml +++ b/checker/univ.ml @@ -1194,8 +1194,7 @@ struct create_trivial_subtyping inst freshunivs)) let subtyping_susbst (univcst, subtypcst) = - let (ctx, ctx') = (halve_context (UContext.instance subtypcst)) in - Array.fold_left2 (fun subst l1 l2 -> LMap.add l1 l2 subst) LMap.empty ctx ctx' + let (_, ctx') = (halve_context (UContext.instance subtypcst)) in ctx' end @@ -1232,22 +1231,6 @@ let subst_univs_level_universe subst u = if u == u' then u else Universe.sort u' -let subst_univs_level_instance subst i = - let i' = Instance.subst_fn (subst_univs_level_level subst) i in - if i == i' then i - else i' - -let subst_univs_level_constraint subst (u,d,v) = - let u' = subst_univs_level_level subst u - and v' = subst_univs_level_level subst v in - if d != Lt && Level.equal u' v' then None - else Some (u',d,v') - -let subst_univs_level_constraints subst csts = - Constraint.fold - (fun c -> Option.fold_right Constraint.add (subst_univs_level_constraint subst c)) - csts Constraint.empty - (** Substitute instance inst for ctx in csts *) let subst_instance_level s l = |