Extension of 4v-sexpr-vars to a list of sexpr lists.
Function:
(defun 4v-sexpr-vars-list-list (x) (declare (xargs :guard t)) (if (atom x) nil (mbe :logic (set::union (4v-sexpr-vars-list (car x)) (4v-sexpr-vars-list-list (cdr x))) :exec (hons-alphorder-merge (4v-sexpr-vars-list (car x)) (4v-sexpr-vars-list-list (cdr x))))))
Theorem:
(defthm atom-listp-of-4v-sexpr-vars-list-list (atom-listp (4v-sexpr-vars-list-list x)))
Theorem:
(defthm setp-of-4v-sexpr-vars-list-list (set::setp (4v-sexpr-vars-list-list x)))