Semantics of repetitions.
(tree-list-match-repetition-p trees repetition rules) → yes/no
A list of trees matches a repetition iff the length of the list matches the range of the repetition and each tree in the list matches the element of the repetition.
Function:
(defun tree-list-match-repetition-p (trees repetition rules) (declare (xargs :guard (and (tree-listp trees) (repetitionp repetition) (rulelistp rules)))) (and (numrep-match-repeat-range-p (len trees) (repetition->range repetition)) (tree-list-match-element-p trees (repetition->element repetition) rules)))