Recognizer for decl structures.
(decl-p x) → *
Function:
(defun decl-p (x) (declare (xargs :guard t)) (let ((acl2::__function__ 'decl-p)) (declare (ignorable acl2::__function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(name type))) :exec (fty::alist-with-carsp x '(name type))) (b* ((name (cdr (std::da-nth 0 x))) (type (cdr (std::da-nth 1 x)))) (and (symbolp name) (hint-pair-p type) (symbolp (hint-pair->thm type)))))))
Theorem:
(defthm consp-when-decl-p (implies (decl-p x) (consp x)) :rule-classes :compound-recognizer)