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