In the standard library, we should use explicit universe variables for universe polymorphic definitions. Users that want to declare universe polymorphic definitions but do not want to provide universe level parameters should use Type _ or Type*
9 lines
144 B
Text
9 lines
144 B
Text
--
|
||
open nat prod
|
||
|
||
set_option pp.universes true
|
||
|
||
definition tuple (A : Type*) (n : nat) : Type* :=
|
||
nat.rec_on n A (λ n r, r × A)
|
||
|
||
check @tuple
|