Rule names that occur in (the definientia of) a list of rules.
(rulelist-called-rules rules) → rulenames
Function:
(defun rulelist-called-rules (rules) (declare (xargs :guard (rulelistp rules))) (cond ((endp rules) nil) (t (union (rule-called-rules (car rules)) (rulelist-called-rules (cdr rules))))))
Theorem:
(defthm rulename-setp-of-rulelist-called-rules (b* ((rulenames (rulelist-called-rules rules))) (rulename-setp rulenames)) :rule-classes :rewrite)