A Prolog implementation written in Agda