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

Inductive type display is misleading #159

Open
eric-wieser opened this issue Feb 17, 2022 · 0 comments
Open

Inductive type display is misleading #159

eric-wieser opened this issue Feb 17, 2022 · 0 comments

Comments

@eric-wieser
Copy link
Member

eric-wieser commented Feb 17, 2022

The docs for list render as:
image

However, if we run that code:

inductive {u} my_list (T : Type u) : Type u
| nil : Π {T : Type u}, list T
| cons : Π {T : Type u}, T → list T → list T

we get the error

universe level of type_of(arg #2) of 'my_list.nil' is too big for the corresponding inductive datatype

This was reported on Zulip too. #151 made this a little better by at least making some arguments implicit.

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