Set of variables in a list of expressions.
(expression-list-vars exprs) → vars
Function:
(defun expression-list-vars (exprs) (declare (xargs :guard (expression-listp exprs))) (let ((__function__ 'expression-list-vars)) (declare (ignorable __function__)) (cond ((endp exprs) nil) (t (union (expression-vars (car exprs)) (expression-list-vars (cdr exprs)))))))
Theorem:
(defthm string-setp-of-expression-list-vars (b* ((vars (expression-list-vars exprs))) (string-setp vars)) :rule-classes :rewrite)
Theorem:
(defthm expression-list-vars-of-expression-var-list (equal (expression-list-vars (expression-var-list vars)) (mergesort (string-list-fix vars))))