Recognizer for function-specification structures.
(function-specificationp x) → *
Function:
(defun function-specificationp (x) (declare (xargs :guard t)) (let ((__function__ 'function-specificationp)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(name functions specifier))) :exec (fty::alist-with-carsp x '(name functions specifier))) (b* ((name (cdr (std::da-nth 0 x))) (functions (cdr (std::da-nth 1 x))) (specifier (cdr (std::da-nth 2 x)))) (and (identifierp name) (function-header-listp functions) (function-specifierp specifier))))))
Theorem:
(defthm consp-when-function-specificationp (implies (function-specificationp x) (consp x)) :rule-classes :compound-recognizer)