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