-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runaway universe #10870
Comments
In 8.9, |
Thanks! What about this other case, which complains about a missing third universe?
|
Running Set Universe Polymorphism.
Set Printing All.
Set Printing Universes.
Section foo.
Universes u v.
Lemma eq_list_eq
: forall (T : Type@{u}) (F : T -> Type@{v}) (a : T) (pf : a = a) (xs : list (F a)),
match pf in _ = c return list (F c) with
| eq_refl => xs
end
= xs.
Admitted.
Print eq_list_eq.
(* *** [ eq_list_eq@{Crypto.foo.17} :
forall (T : Type@{u}) (F : forall _ : T, Type@{v}) (a : T)
(pf : @eq T a a) (xs : list (F a)),
@eq (list (F a)) match pf in (eq _ c) return (list (F c)) with
| eq_refl => xs
end xs ]
(* Crypto.foo.17 |= Set <= Crypto.foo.17
u <= eq.u0
v <= eq.u0
v <= list.u0
v <= Crypto.foo.17 *)
Argument scopes are [type_scope function_scope _ _ list_scope]
*) It seems that this is another instance of universe minimization failure, but this time the universe doesn't even appear anywhere in the term. |
Might be a Lemma issue, if you use Axiom instead there's no extra universe. |
Description of the problem
The following lemma fails to typecheck on coq.dev (it passes on 8.9):
with the error message (where
A.v
is the name of the file)Coq Version
coq.dev
The text was updated successfully, but these errors were encountered: