Recognizer for bvar-db-consistency-error structures.
(bvar-db-consistency-error-p x) → *
Function:
(defun bvar-db-consistency-error-p (x) (declare (xargs :guard t)) (let ((__function__ 'bvar-db-consistency-error-p)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :eval-error)) (and (std::prod-consp (cdr x)) (b* ((obj (std::prod-car (cdr x))) (acl2::?msg (std::prod-cdr (cdr x)))) (fgl-object-p obj)))) (t (and (eq (car x) :inconsistency) (and (std::prod-consp (cdr x)) (std::prod-consp (std::prod-cdr (cdr x)))) (b* ((obj (std::prod-car (cdr x))) (?var-val (std::prod-car (std::prod-cdr (cdr x)))) (?obj-val (std::prod-cdr (std::prod-cdr (cdr x))))) (fgl-object-p obj))))))))
Theorem:
(defthm consp-when-bvar-db-consistency-error-p (implies (bvar-db-consistency-error-p x) (consp x)) :rule-classes :compound-recognizer)