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