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