Recognizer for scratchobj structures.
(scratchobj-p x) → *
Function:
(defun scratchobj-p (x) (declare (xargs :guard t)) (let ((__function__ 'scratchobj-p)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :fgl-obj)) (and (b* ((val (cdr x))) (fgl-object-p val)))) ((eq (car x) :fgl-objlist) (and (b* ((val (cdr x))) (fgl-objectlist-p val)))) ((eq (car x) :bfr) (and (b* ((?val (cdr x))) t))) ((eq (car x) :bfrlist) (and (b* ((val (cdr x))) (true-listp val)))) ((eq (car x) :cinst) (and (b* ((val (cdr x))) (constraint-instance-p val)))) (t (and (eq (car x) :cinstlist) (and) (b* ((val (cdr x))) (constraint-instancelist-p val))))))))
Theorem:
(defthm consp-when-scratchobj-p (implies (scratchobj-p x) (consp x)) :rule-classes :compound-recognizer)