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