A
(abstract-group/option tree) → alternation
Function:
(defun abstract-group/option (tree) (declare (xargs :guard (treep tree))) (b* (((fun (fail)) (abstract-fail)) ((unless (tree-case tree :nonleaf)) (fail)) (treess (tree-nonleaf->branches tree)) ((unless (and (consp treess) (consp (cdr treess)) (consp (cddr treess)))) (fail)) (trees (caddr treess)) ((unless (consp trees)) (fail)) (tree (car trees))) (abstract-alternation tree)))