Universes in type theory

Definition. A universe consists of a type of codes along with a function .
Example. The universe of finite sets has , , where is inductively defined by
That is, .