Lemmas about intersectp available in the std/lists library.
Theorem:
(defthm intersectp-equal-of-atom-left (implies (atom x) (equal (intersectp-equal x y) nil)))
Theorem:
(defthm intersectp-equal-of-atom-right (implies (atom y) (equal (intersectp-equal x y) nil)))
Theorem:
(defthm intersect-equal-of-cons-left (equal (intersectp-equal (cons a x) y) (if (member-equal a y) t (intersectp-equal x y))))
Theorem:
(defthm intersectp-equal-of-cons-right (equal (intersectp-equal x (cons a y)) (if (member-equal a x) t (intersectp-equal x y))))
Theorem:
(defthm intersectp-of-self (equal (intersectp x x) (consp x)))