Notes on the development.
Agda uses a type of universe levels that have to be explicited. It allows in particular algebraic universe expressions that are not available in Coq. In order to port the code to Coq, we have to replace the occurences of algebraic universe expressions by fresh universe variables with corresponding constraints.