Meta function for member-equal.
This meta function is designed to quickly rewrite
Function:
(defun expand-member-meta (term) (declare (xargs :guard (pseudo-termp term))) (case-match term (('member-equal x ('quote l)) (if (eqlable-listp l) (formal-member x l) term)) (& term)))
This meta rule rewrites
Theorem:
(defthm expand-member-meta-correct (implies (and (pseudo-termp term) (alistp a)) (equal (meta-ev term a) (meta-ev (expand-member-meta term) a))) :rule-classes ((:meta :trigger-fns (member))))