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