Recognizer for init-value structures.
(init-valuep x) → *
Function:
(defun init-valuep (x) (declare (xargs :guard t)) (let ((__function__ 'init-valuep)) (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)))) (valuep 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)))) (value-listp get))))))))
Theorem:
(defthm consp-when-init-valuep (implies (init-valuep x) (consp x)) :rule-classes :compound-recognizer)