Recognizer for repeat-range structures.
(repeat-rangep x) → *
Function:
(defun repeat-rangep (x) (declare (xargs :guard t)) (let ((__function__ 'repeat-rangep)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :repeat) (true-listp (cdr x)) (eql (len (cdr x)) 2) (b* ((min (std::da-nth 0 (cdr x))) (max (std::da-nth 1 (cdr x)))) (and (natp min) (natip max))))))
Theorem:
(defthm consp-when-repeat-rangep (implies (repeat-rangep x) (consp x)) :rule-classes :compound-recognizer)