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