Zulip Chat Archive
Stream: new members
Topic: universe polymorphism in arguments
Jakub Nowak (Sep 10 2025 at 15:41):
I don't understand, why this doesn't work? Why is it not possible to infer u = 0?
example (h : (α : Type u) → (a : α) → α) := by
let := @h Nat 0
Aaron Liu (Sep 10 2025 at 15:43):
see #new members > Reasoning about functions
Jakub Nowak (Sep 10 2025 at 15:43):
Ah, I think I know. u is parameter of my unnamed example def, right?
Is it possible to have universe polymorphic argument? I guess not?
Aaron Liu (Sep 10 2025 at 15:43):
why do you think it should be possible to infer u = 0
Aaron Liu (Sep 10 2025 at 15:44):
Jakub Nowak said:
Ah, I think I know.
uis parameter of my unnamed example def, right?
Is it possible to have universe polymorphic argument? I guess not?
yes that is not allowed by Lean's type theory, you can only have universe-polymorphic definitions
Last updated: Dec 20 2025 at 21:32 UTC