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