Gather all top-level expressions from a vl-assignlist-p.
(vl-assignlist-allexprs x) → exprs
Function:
(defun vl-assignlist-allexprs (x) (declare (xargs :guard (vl-assignlist-p x))) (let ((__function__ 'vl-assignlist-allexprs)) (declare (ignorable __function__)) (mbe :logic (if (atom x) nil (append (vl-assign-allexprs (car x)) (vl-assignlist-allexprs (cdr x)))) :exec (with-local-nrev (vl-assignlist-allexprs-nrev x nrev)))))
Theorem:
(defthm vl-exprlist-p-of-vl-assignlist-allexprs (b* ((exprs (vl-assignlist-allexprs x))) (vl-exprlist-p exprs)) :rule-classes :rewrite)
Theorem:
(defthm true-listp-of-vl-assignlist-allexprs (true-listp (vl-assignlist-allexprs x)) :rule-classes :type-prescription)
Theorem:
(defthm vl-assignlist-allexprs-nrev-removal (equal (vl-assignlist-allexprs-nrev x nrev) (append nrev (vl-assignlist-allexprs x))))
Theorem:
(defthm set-equiv-congruence-over-vl-assignlist-allexprs (implies (set-equiv acl2::x acl2::y) (set-equiv (vl-assignlist-allexprs acl2::x) (vl-assignlist-allexprs acl2::y))) :rule-classes ((:congruence)))
Theorem:
(defthm subsetp-of-vl-assignlist-allexprs-when-subsetp (implies (subsetp acl2::x acl2::y) (subsetp (vl-assignlist-allexprs acl2::x) (vl-assignlist-allexprs acl2::y))) :rule-classes ((:rewrite)))
Theorem:
(defthm member-in-vl-assignlist-allexprs (implies (and (member acl2::k (vl-assign-allexprs acl2::j)) (member acl2::j acl2::x)) (member acl2::k (vl-assignlist-allexprs acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-assignlist-allexprs-of-list-fix (equal (vl-assignlist-allexprs (list-fix acl2::x)) (vl-assignlist-allexprs acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-assignlist-allexprs-of-append (equal (vl-assignlist-allexprs (append acl2::a acl2::b)) (append (vl-assignlist-allexprs acl2::a) (vl-assignlist-allexprs acl2::b))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-assignlist-allexprs-when-not-consp (implies (not (consp acl2::x)) (equal (vl-assignlist-allexprs acl2::x) nil)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-assignlist-allexprs-of-cons (equal (vl-assignlist-allexprs (cons acl2::a acl2::b)) (append (vl-assign-allexprs acl2::a) (vl-assignlist-allexprs acl2::b))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-assignlist-allexprs-of-vl-assignlist-fix-x (equal (vl-assignlist-allexprs (vl-assignlist-fix x)) (vl-assignlist-allexprs x)))
Theorem:
(defthm vl-assignlist-allexprs-vl-assignlist-equiv-congruence-on-x (implies (vl-assignlist-equiv x x-equiv) (equal (vl-assignlist-allexprs x) (vl-assignlist-allexprs x-equiv))) :rule-classes :congruence)