Lemmas about boolean-listp available in the std/typed-lists library.
Most of these are generated automatically with std::deflist.
Theorem:
(defthm boolean-listp-of-cons (equal (boolean-listp (cons a x)) (and (booleanp a) (boolean-listp x))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-cdr-when-boolean-listp (implies (boolean-listp (double-rewrite x)) (boolean-listp (cdr x))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-when-not-consp (implies (not (consp x)) (equal (boolean-listp x) (not x))) :rule-classes ((:rewrite)))
Theorem:
(defthm booleanp-of-car-when-boolean-listp (implies (boolean-listp x) (booleanp (car x))) :rule-classes ((:rewrite)))
Theorem:
(defthm true-listp-when-boolean-listp-compound-recognizer (implies (boolean-listp x) (true-listp x)) :rule-classes :compound-recognizer)
Theorem:
(defthm boolean-listp-of-list-fix (implies (boolean-listp x) (boolean-listp (list-fix x))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-sfix (iff (boolean-listp (set::sfix x)) (or (boolean-listp x) (not (set::setp x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-insert (iff (boolean-listp (set::insert a x)) (and (boolean-listp (set::sfix x)) (booleanp a))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-delete (implies (boolean-listp x) (boolean-listp (set::delete k x))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-mergesort (iff (boolean-listp (set::mergesort x)) (boolean-listp (list-fix x))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-union (iff (boolean-listp (set::union x y)) (and (boolean-listp (set::sfix x)) (boolean-listp (set::sfix y)))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-intersect-1 (implies (boolean-listp x) (boolean-listp (set::intersect x y))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-intersect-2 (implies (boolean-listp y) (boolean-listp (set::intersect x y))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-difference (implies (boolean-listp x) (boolean-listp (set::difference x y))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-duplicated-members (implies (boolean-listp x) (boolean-listp (duplicated-members x))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-rev (equal (boolean-listp (rev x)) (boolean-listp (list-fix x))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-append (equal (boolean-listp (append a b)) (and (boolean-listp (list-fix a)) (boolean-listp b))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-rcons (iff (boolean-listp (rcons a x)) (and (booleanp a) (boolean-listp (list-fix x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm booleanp-when-member-equal-of-boolean-listp (and (implies (and (member-equal a x) (boolean-listp x)) (booleanp a)) (implies (and (boolean-listp x) (member-equal a x)) (booleanp a))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-when-subsetp-equal (and (implies (and (subsetp-equal x y) (boolean-listp y)) (equal (boolean-listp x) (true-listp x))) (implies (and (boolean-listp y) (subsetp-equal x y)) (equal (boolean-listp x) (true-listp x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-set-difference-equal (implies (boolean-listp x) (boolean-listp (set-difference-equal x y))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-intersection-equal-1 (implies (boolean-listp (double-rewrite x)) (boolean-listp (intersection-equal x y))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-intersection-equal-2 (implies (boolean-listp (double-rewrite y)) (boolean-listp (intersection-equal x y))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-union-equal (equal (boolean-listp (union-equal x y)) (and (boolean-listp (list-fix x)) (boolean-listp (double-rewrite y)))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-take (implies (boolean-listp (double-rewrite x)) (iff (boolean-listp (take n x)) (or (booleanp nil) (<= (nfix n) (len x))))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-repeat (iff (boolean-listp (repeat n x)) (or (booleanp x) (zp n))) :rule-classes ((:rewrite)))
Theorem:
(defthm booleanp-of-nth-when-boolean-listp (implies (boolean-listp x) (booleanp (nth n x))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-update-nth (implies (boolean-listp (double-rewrite x)) (iff (boolean-listp (update-nth n y x)) (and (booleanp y) (or (<= (nfix n) (len x)) (booleanp nil))))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-butlast (implies (boolean-listp (double-rewrite x)) (boolean-listp (butlast x n))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-nthcdr (implies (boolean-listp (double-rewrite x)) (boolean-listp (nthcdr n x))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-last (implies (boolean-listp (double-rewrite x)) (boolean-listp (last x))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-remove (implies (boolean-listp x) (boolean-listp (remove a x))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-revappend (equal (boolean-listp (revappend x y)) (and (boolean-listp (list-fix x)) (boolean-listp y))) :rule-classes ((:rewrite)))
Theorem:
(defthm boolean-listp-of-remove-equal (implies (boolean-listp x) (boolean-listp (remove-equal a x))))
Theorem:
(defthm boolean-listp-of-make-list-ac (equal (boolean-listp (make-list-ac n x ac)) (and (boolean-listp ac) (or (booleanp x) (zp n)))))
Theorem:
(defthm eqable-listp-when-boolean-listp (implies (boolean-listp x) (eqlable-listp x)))
Theorem:
(defthm symbol-listp-when-boolean-listp (implies (boolean-listp x) (symbol-listp x)))