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