Skip to content
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

Order dependent elaboration due to universe constraints #1058

Closed
digama0 opened this issue Mar 21, 2022 · 0 comments
Closed

Order dependent elaboration due to universe constraints #1058

digama0 opened this issue Mar 21, 2022 · 0 comments

Comments

@digama0
Copy link
Collaborator

digama0 commented Mar 21, 2022

The by exact is necessary in this example:

example : List (Unit -> Nat) :=
  let g := [by exact fun _ => 0]; g -- ok

example : List (Unit -> Nat) :=
  let g := [fun _ => 0]; g -- fail
stuck at solving universe constraint
  ?u.61+1 =?= max ?u.45 (?u.50+1)
while trying to unify
  (x : ?m.46) → ?m.57 x : Sort (max ?u.45 (?u.50 + 1))
with
  (x : ?m.46) → ?m.57 x : Sort (max ?u.45 (?u.50 + 1))

Tested on Lean (version 4.0.0-nightly-2022-03-17, commit 0d03c6e3198c, Release).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant