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