The definition of member for any
This definition reposes the question
Function:
(defun formal-member (x l) (declare (xargs :guard (and (pseudo-termp x) (eqlable-listp l)))) (cond ((endp l) *nil*) (t (cons 'if (cons (cons 'eql (cons x (cons (cons 'quote (cons (car l) 'nil)) 'nil))) (cons (cons 'quote (cons l 'nil)) (cons (formal-member x (cdr l)) 'nil)))))))