Constraints induced by a terminated tree that matches
Theorem:
(defthm constraints-from-tree-match-repeat (implies (and (tree-match-element-p tree (element-rulename *repeat*) *grammar*) (tree-terminatedp tree)) (or (and (<= (char-code #\0) (car (tree->string tree))) (<= (car (tree->string tree)) (char-code #\9))) (equal (car (tree->string tree)) (char-code #\*)))) :rule-classes nil)