(vl-descriptionlist-summaries x) maps vl-description-summary across a list.
(vl-descriptionlist-summaries x) → *
This is an ordinary defprojection.
Function:
(defun vl-descriptionlist-summaries-exec (x acc) (declare (xargs :guard (vl-descriptionlist-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-descriptionlist-summaries-exec)) (declare (ignorable __function__)) (if (consp x) (vl-descriptionlist-summaries-exec (cdr x) (cons (vl-description-summary (car x)) acc)) acc)))
Function:
(defun vl-descriptionlist-summaries-nrev (x nrev) (declare (xargs :stobjs (nrev))) (declare (xargs :guard (vl-descriptionlist-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-descriptionlist-summaries-nrev)) (declare (ignorable __function__)) (if (atom x) (nrev-fix nrev) (let ((nrev (nrev-push (vl-description-summary (car x)) nrev))) (vl-descriptionlist-summaries-nrev (cdr x) nrev)))))
Function:
(defun vl-descriptionlist-summaries (x) (declare (xargs :guard (vl-descriptionlist-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-descriptionlist-summaries)) (declare (ignorable __function__)) (mbe :logic (if (consp x) (cons (vl-description-summary (car x)) (vl-descriptionlist-summaries (cdr x))) nil) :exec (if (atom x) nil (with-local-nrev (vl-descriptionlist-summaries-nrev x nrev))))))
Theorem:
(defthm vl-descriptionlist-summaries-of-update-nth (implies (<= (nfix acl2::n) (len acl2::x)) (equal (vl-descriptionlist-summaries (update-nth acl2::n acl2::v acl2::x)) (update-nth acl2::n (vl-description-summary acl2::v) (vl-descriptionlist-summaries acl2::x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-descriptionlist-summaries-of-revappend (equal (vl-descriptionlist-summaries (revappend acl2::x acl2::y)) (revappend (vl-descriptionlist-summaries acl2::x) (vl-descriptionlist-summaries acl2::y))) :rule-classes ((:rewrite)))
Theorem:
(defthm nthcdr-of-vl-descriptionlist-summaries (equal (nthcdr acl2::n (vl-descriptionlist-summaries acl2::x)) (vl-descriptionlist-summaries (nthcdr acl2::n acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm nth-of-vl-descriptionlist-summaries (equal (nth acl2::n (vl-descriptionlist-summaries acl2::x)) (and (< (nfix acl2::n) (len acl2::x)) (vl-description-summary (nth acl2::n acl2::x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-descriptionlist-summaries-nrev-removal (equal (vl-descriptionlist-summaries-nrev acl2::x nrev) (append nrev (vl-descriptionlist-summaries acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-descriptionlist-summaries-exec-removal (equal (vl-descriptionlist-summaries-exec acl2::x acl2::acc) (revappend (vl-descriptionlist-summaries acl2::x) acl2::acc)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-descriptionlist-summaries-of-take (implies (<= (nfix acl2::n) (len acl2::x)) (equal (vl-descriptionlist-summaries (take acl2::n acl2::x)) (take acl2::n (vl-descriptionlist-summaries acl2::x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm set-equiv-congruence-over-vl-descriptionlist-summaries (implies (set-equiv acl2::x acl2::y) (set-equiv (vl-descriptionlist-summaries acl2::x) (vl-descriptionlist-summaries acl2::y))) :rule-classes ((:congruence)))
Theorem:
(defthm subsetp-of-vl-descriptionlist-summaries-when-subsetp (implies (subsetp acl2::x acl2::y) (subsetp (vl-descriptionlist-summaries acl2::x) (vl-descriptionlist-summaries acl2::y))) :rule-classes ((:rewrite)))
Theorem:
(defthm member-of-vl-description-summary-in-vl-descriptionlist-summaries (implies (member acl2::k acl2::x) (member (vl-description-summary acl2::k) (vl-descriptionlist-summaries acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-descriptionlist-summaries-of-rev (equal (vl-descriptionlist-summaries (rev acl2::x)) (rev (vl-descriptionlist-summaries acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-descriptionlist-summaries-of-list-fix (equal (vl-descriptionlist-summaries (list-fix acl2::x)) (vl-descriptionlist-summaries acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-descriptionlist-summaries-of-append (equal (vl-descriptionlist-summaries (append acl2::a acl2::b)) (append (vl-descriptionlist-summaries acl2::a) (vl-descriptionlist-summaries acl2::b))) :rule-classes ((:rewrite)))
Theorem:
(defthm cdr-of-vl-descriptionlist-summaries (equal (cdr (vl-descriptionlist-summaries acl2::x)) (vl-descriptionlist-summaries (cdr acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm car-of-vl-descriptionlist-summaries (equal (car (vl-descriptionlist-summaries acl2::x)) (and (consp acl2::x) (vl-description-summary (car acl2::x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-descriptionlist-summaries-under-iff (iff (vl-descriptionlist-summaries acl2::x) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm consp-of-vl-descriptionlist-summaries (equal (consp (vl-descriptionlist-summaries acl2::x)) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm len-of-vl-descriptionlist-summaries (equal (len (vl-descriptionlist-summaries acl2::x)) (len acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm true-listp-of-vl-descriptionlist-summaries (true-listp (vl-descriptionlist-summaries acl2::x)) :rule-classes :type-prescription)
Theorem:
(defthm vl-descriptionlist-summaries-when-not-consp (implies (not (consp acl2::x)) (equal (vl-descriptionlist-summaries acl2::x) nil)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-descriptionlist-summaries-of-cons (equal (vl-descriptionlist-summaries (cons acl2::a acl2::b)) (cons (vl-description-summary acl2::a) (vl-descriptionlist-summaries acl2::b))) :rule-classes ((:rewrite)))