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