Zulip Chat Archive

Stream: lean4

Topic: Incorrect number of universe levels parameters


Uranus Testing (May 29 2022 at 12:11):

This code works fine:

universe u

inductive E : Type u

But this throws an error “(kernel) incorrect number of universe levels parameters for 'T', #1 expected, #0 provided”:

inductive T : Type u
| intro

Is this OK?

Leonardo de Moura (May 30 2022 at 13:46):

Thanks for reporting this issue. I pushed a fix for it:
https://github.com/leanprover/lean4/commit/fb45eb49643b2abbc0d057d1fafc5e1eb419fc2a


Last updated: Dec 20 2023 at 11:08 UTC