Not sure I'm making progress or not.

new permutation intermediate function
new perm function (doesnt work yet b/c of infinite type problem)
Was going to reimplement what I've got so far in agda
encountered some problem with the compiler