Recognizer for oct-integer-literal structures.
(oct-integer-literalp x) → *
Function:
(defun oct-integer-literalp (x) (declare (xargs :guard t)) (let ((__function__ 'oct-integer-literalp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :oct-integer-lit) (true-listp (cdr x)) (eql (len (cdr x)) 3) (b* ((digits/uscores (std::da-nth 0 (cdr x))) (prefix-upcase-p (std::da-nth 1 (cdr x))) (suffix? (std::da-nth 2 (cdr x)))) (and (octdig/uscore-listp digits/uscores) (booleanp prefix-upcase-p) (optional-integer-type-suffix-p suffix?) (octdig/uscore-list-wfp digits/uscores))))))
Theorem:
(defthm consp-when-oct-integer-literalp (implies (oct-integer-literalp x) (consp x)) :rule-classes :compound-recognizer)