Type Hierarchy in Agda
问题 I am trying to figure out how type hierarchies work in Agda. Assuming I define a set type X: X : Set and then proceed to constructing an inductive type data Y : X -> Set where What is the type of X -> Set ? Is it Set or Type? Thank you! 回答1: Well, why not ask Agda itself? I'm going to use excellent Agda mode for Emacs. We start with: module Hierarchy where postulate X : Set data Y : X → Set where -- empty We have to load the file using C-c C-l ; this typechecks the file, turns ? s into holes,