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