Recognizer for finalize-command structures.
(finalize-commandp x) → *
Function:
(defun finalize-commandp (x) (declare (xargs :guard t)) (let ((__function__ 'finalize-commandp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :finalize-command) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(args))) :exec (fty::alist-with-carsp (cdr x) '(args))) (b* ((args (cdr (std::da-nth 0 (cdr x))))) (operand-listp args)))))
Theorem:
(defthm consp-when-finalize-commandp (implies (finalize-commandp x) (consp x)) :rule-classes :compound-recognizer)