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