(longer-than-p n x) determines if the list
This can be slightly faster than
Function:
(defun longer-than-p (n x) (declare (xargs :guard (natp n))) (mbe :logic (< n (len x)) :exec (cond ((zp n) (consp x)) ((atom x) nil) (t (longer-than-p (+ -1 n) (cdr x))))))