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