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*
11 lines
343 B
Text
11 lines
343 B
Text
prelude definition Prop : Type.{1} := Type.{0}
|
|
section
|
|
variable {A : Type*} -- Mark A as implicit parameter
|
|
variable R : A → A → Prop
|
|
definition id (a : A) : A := a
|
|
definition refl : Prop := forall (a : A), R a a
|
|
definition symm : Prop := forall (a b : A), R a b -> R b a
|
|
end
|
|
check id.{2}
|
|
check refl.{1}
|
|
check symm.{1}
|