diff options
| author | Gaëtan Gilbert | 2019-05-10 11:49:50 +0200 |
|---|---|---|
| committer | Gaëtan Gilbert | 2019-05-27 13:52:45 +0200 |
| commit | be8db31abc6839921e91540ab4b3300da9b64933 (patch) | |
| tree | 3389fa5241102322b8f6eb45c3c2436b14938558 /checker/checkInductive.ml | |
| parent | c371b6f0bc6aa75fb3fe138d2bd52bdd189550b1 (diff) | |
mind_kelim is the highest allowed sort instead of a list
Diffstat (limited to 'checker/checkInductive.ml')
| -rw-r--r-- | checker/checkInductive.ml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/checker/checkInductive.ml b/checker/checkInductive.ml index 4f4527ca12..b66e198234 100644 --- a/checker/checkInductive.ml +++ b/checker/checkInductive.ml @@ -75,8 +75,7 @@ let check_arity env ar1 ar2 = match ar1, ar2 with (* template_level is inferred by indtypes, so functor application can produce a smaller one *) | (RegularArity _ | TemplateArity _), _ -> false -let check_kelim k1 k2 = - List.for_all (fun x -> List.mem_f Sorts.family_equal x k2) k1 +let check_kelim k1 k2 = Sorts.family_leq k1 k2 (* Use [eq_ind_chk] because when we rebuild the recargs we have lost the knowledge of who is the canonical version. |
