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