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