macros for coq and agda