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