Basic theorems about theorem-symbol-listp, generated by std::deflist.
Theorem:
(defthm theorem-symbol-listp-of-cons (equal (theorem-symbol-listp (cons a x) wrld) (and (theorem-symbolp a wrld) (theorem-symbol-listp x wrld))) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-cdr-when-theorem-symbol-listp (implies (theorem-symbol-listp (double-rewrite x) wrld) (theorem-symbol-listp (cdr x) wrld)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-when-not-consp (implies (not (consp x)) (equal (theorem-symbol-listp x wrld) (not x))) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbolp-of-car-when-theorem-symbol-listp (implies (theorem-symbol-listp x wrld) (iff (theorem-symbolp (car x) wrld) (or (consp x) (theorem-symbolp nil wrld)))) :rule-classes ((:rewrite)))
Theorem:
(defthm true-listp-when-theorem-symbol-listp (implies (theorem-symbol-listp x wrld) (true-listp x)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-list-fix (implies (theorem-symbol-listp x wrld) (theorem-symbol-listp (list-fix x) wrld)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-sfix (iff (theorem-symbol-listp (set::sfix x) wrld) (or (theorem-symbol-listp x wrld) (not (set::setp x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-insert (iff (theorem-symbol-listp (set::insert a x) wrld) (and (theorem-symbol-listp (set::sfix x) wrld) (theorem-symbolp a wrld))) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-delete (implies (theorem-symbol-listp x wrld) (theorem-symbol-listp (set::delete k x) wrld)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-mergesort (iff (theorem-symbol-listp (set::mergesort x) wrld) (theorem-symbol-listp (list-fix x) wrld)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-union (iff (theorem-symbol-listp (set::union x y) wrld) (and (theorem-symbol-listp (set::sfix x) wrld) (theorem-symbol-listp (set::sfix y) wrld))) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-intersect-1 (implies (theorem-symbol-listp x wrld) (theorem-symbol-listp (set::intersect x y) wrld)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-intersect-2 (implies (theorem-symbol-listp y wrld) (theorem-symbol-listp (set::intersect x y) wrld)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-difference (implies (theorem-symbol-listp x wrld) (theorem-symbol-listp (set::difference x y) wrld)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-duplicated-members (implies (theorem-symbol-listp x wrld) (theorem-symbol-listp (duplicated-members x) wrld)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-rev (equal (theorem-symbol-listp (rev x) wrld) (theorem-symbol-listp (list-fix x) wrld)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-append (equal (theorem-symbol-listp (append a b) wrld) (and (theorem-symbol-listp (list-fix a) wrld) (theorem-symbol-listp b wrld))) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-rcons (iff (theorem-symbol-listp (rcons a x) wrld) (and (theorem-symbolp a wrld) (theorem-symbol-listp (list-fix x) wrld))) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbolp-when-member-equal-of-theorem-symbol-listp (and (implies (and (member-equal a x) (theorem-symbol-listp x wrld)) (theorem-symbolp a wrld)) (implies (and (theorem-symbol-listp x wrld) (member-equal a x)) (theorem-symbolp a wrld))) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-when-subsetp-equal (and (implies (and (subsetp-equal x y) (theorem-symbol-listp y wrld)) (equal (theorem-symbol-listp x wrld) (true-listp x))) (implies (and (theorem-symbol-listp y wrld) (subsetp-equal x y)) (equal (theorem-symbol-listp x wrld) (true-listp x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-set-difference-equal (implies (theorem-symbol-listp x wrld) (theorem-symbol-listp (set-difference-equal x y) wrld)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-intersection-equal-1 (implies (theorem-symbol-listp (double-rewrite x) wrld) (theorem-symbol-listp (intersection-equal x y) wrld)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-intersection-equal-2 (implies (theorem-symbol-listp (double-rewrite y) wrld) (theorem-symbol-listp (intersection-equal x y) wrld)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-union-equal (equal (theorem-symbol-listp (union-equal x y) wrld) (and (theorem-symbol-listp (list-fix x) wrld) (theorem-symbol-listp (double-rewrite y) wrld))) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-take (implies (theorem-symbol-listp (double-rewrite x) wrld) (iff (theorem-symbol-listp (take n x) wrld) (or (theorem-symbolp nil wrld) (<= (nfix n) (len x))))) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-repeat (iff (theorem-symbol-listp (repeat n x) wrld) (or (theorem-symbolp x wrld) (zp n))) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbolp-of-nth-when-theorem-symbol-listp (implies (and (theorem-symbol-listp x wrld) (< (nfix n) (len x))) (theorem-symbolp (nth n x) wrld)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-update-nth (implies (theorem-symbol-listp (double-rewrite x) wrld) (iff (theorem-symbol-listp (update-nth n y x) wrld) (and (theorem-symbolp y wrld) (or (<= (nfix n) (len x)) (theorem-symbolp nil wrld))))) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-butlast (implies (theorem-symbol-listp (double-rewrite x) wrld) (theorem-symbol-listp (butlast x n) wrld)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-nthcdr (implies (theorem-symbol-listp (double-rewrite x) wrld) (theorem-symbol-listp (nthcdr n x) wrld)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-last (implies (theorem-symbol-listp (double-rewrite x) wrld) (theorem-symbol-listp (last x) wrld)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-remove (implies (theorem-symbol-listp x wrld) (theorem-symbol-listp (remove a x) wrld)) :rule-classes ((:rewrite)))
Theorem:
(defthm theorem-symbol-listp-of-revappend (equal (theorem-symbol-listp (revappend x y) wrld) (and (theorem-symbol-listp (list-fix x) wrld) (theorem-symbol-listp y wrld))) :rule-classes ((:rewrite)))