Recognizer for initer structures.
(initerp x) → *
Function:
(defun initerp (x) (declare (xargs :guard t)) (let ((__function__ 'initerp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :single)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((get (std::da-nth 0 (cdr x)))) (exprp get)))) (t (and (eq (car x) :list) (and (true-listp (cdr x)) (eql (len (cdr x)) 1)) (b* ((get (std::da-nth 0 (cdr x)))) (expr-listp get))))))))
Theorem:
(defthm consp-when-initerp (implies (initerp x) (consp x)) :rule-classes :compound-recognizer)