Recognizer for minor-frame structures.
(minor-frame-p x) → *
Function:
(defun minor-frame-p (x) (declare (xargs :guard t)) (let ((__function__ 'minor-frame-p)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(bindings scratch term term-index))) :exec (fty::alist-with-carsp x '(bindings scratch term term-index))) (b* ((bindings (cdr (std::da-nth 0 x))) (scratch (cdr (std::da-nth 1 x))) (term (cdr (std::da-nth 2 x))) (term-index (cdr (std::da-nth 3 x)))) (and (fgl-object-bindings-p bindings) (scratchlist-p scratch) (pseudo-termp term) (acl2::maybe-natp term-index))))))
Theorem:
(defthm consp-when-minor-frame-p (implies (minor-frame-p x) (consp x)) :rule-classes :compound-recognizer)