A
Function:
(defun abstract-rulelist (tree) (declare (xargs :guard (treep tree))) (b* (((fun (fail)) (abstract-fail)) ((unless (tree-case tree :nonleaf)) (fail)) (treess (tree-nonleaf->branches tree)) ((unless (consp treess)) (fail)) (trees (car treess))) (abstract-*-rule-/-*cwsp-cnl trees)))
Theorem:
(defthm rulelistp-of-abstract-rulelist (b* ((rules (abstract-rulelist tree))) (rulelistp rules)) :rule-classes :rewrite)