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