In a formalization that I'm working on, I need to lift the Unit type, from Agda standard library, which is defined on universe Set
to a polymorphic one like Set a
.
How can I do that? I know that I could just define another type, like this one:
record Unit {l} : Set l where
constructor unit
which is universe polymorphic. But, I believe that should have a more idiomatic solution to this problem. Can someone provide me a solution or if there's no way explain the reason to me?