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