The even-indexed members of a list
The call
(thm (iff (keyword-value-listp l) (and (true-listp l) (evenp (len l)) (keyword-listp (evens l)))) :hints (("Goal" :induct (keyword-value-listp l))))
Function:
(defun evens (l) (declare (xargs :guard (true-listp l))) (cond ((endp l) nil) (t (cons (car l) (evens (cddr l))))))