(vl-maybe-driven-by-modinsts x) applies vl-maybe-driven-by-modinst to every member of the list
This is an ordinary defmapappend.
Function:
(defun vl-maybe-driven-by-modinsts (x) (declare (xargs :guard (vl-modinstlist-p x))) (mbe :logic (if (consp x) (append (vl-maybe-driven-by-modinst (car x)) (vl-maybe-driven-by-modinsts (cdr x))) nil) :exec (reverse (vl-maybe-driven-by-modinsts-exec x nil))))
Function:
(defun vl-maybe-driven-by-modinsts-exec (x acc) (declare (xargs :guard (vl-modinstlist-p x))) (if (consp x) (vl-maybe-driven-by-modinsts-exec (cdr x) (revappend (vl-maybe-driven-by-modinst (car x)) acc)) acc))
Function:
(defun vl-maybe-driven-by-modinsts (x) (declare (xargs :guard (vl-modinstlist-p x))) (mbe :logic (if (consp x) (append (vl-maybe-driven-by-modinst (car x)) (vl-maybe-driven-by-modinsts (cdr x))) nil) :exec (reverse (vl-maybe-driven-by-modinsts-exec x nil))))
Theorem:
(defthm vl-maybe-driven-by-modinsts-exec-removal (equal (vl-maybe-driven-by-modinsts-exec acl2::x acl2::acc) (revappend (vl-maybe-driven-by-modinsts acl2::x) acl2::acc)) :rule-classes ((:rewrite)))
Theorem:
(defthm set-equiv-congruence-over-vl-maybe-driven-by-modinsts (implies (set-equiv acl2::x acl2::y) (set-equiv (vl-maybe-driven-by-modinsts acl2::x) (vl-maybe-driven-by-modinsts acl2::y))) :rule-classes ((:congruence)))
Theorem:
(defthm subsetp-of-vl-maybe-driven-by-modinsts-when-subsetp (implies (subsetp acl2::x acl2::y) (subsetp (vl-maybe-driven-by-modinsts acl2::x) (vl-maybe-driven-by-modinsts acl2::y))) :rule-classes ((:rewrite)))
Theorem:
(defthm member-in-vl-maybe-driven-by-modinsts (implies (and (member acl2::k (vl-maybe-driven-by-modinst acl2::j)) (member acl2::j acl2::x)) (member acl2::k (vl-maybe-driven-by-modinsts acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-maybe-driven-by-modinsts-of-list-fix (equal (vl-maybe-driven-by-modinsts (list-fix acl2::x)) (vl-maybe-driven-by-modinsts acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-maybe-driven-by-modinsts-of-append (equal (vl-maybe-driven-by-modinsts (append acl2::a acl2::b)) (append (vl-maybe-driven-by-modinsts acl2::a) (vl-maybe-driven-by-modinsts acl2::b))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-maybe-driven-by-modinsts-when-not-consp (implies (not (consp acl2::x)) (equal (vl-maybe-driven-by-modinsts acl2::x) nil)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-maybe-driven-by-modinsts-of-cons (equal (vl-maybe-driven-by-modinsts (cons acl2::a acl2::b)) (append (vl-maybe-driven-by-modinst acl2::a) (vl-maybe-driven-by-modinsts acl2::b))) :rule-classes ((:rewrite)))