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