Recognizer for smtlink-config structures.
(smtlink-config-p x) → *
Function:
(defun smtlink-config-p (x) (declare (xargs :guard t)) (let ((acl2::__function__ 'smtlink-config-p)) (declare (ignorable acl2::__function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(interface-dir smt-module smt-class smt-cmd pythonpath))) :exec (fty::alist-with-carsp x '(interface-dir smt-module smt-class smt-cmd pythonpath))) (b* ((interface-dir (cdr (std::da-nth 0 x))) (smt-module (cdr (std::da-nth 1 x))) (smt-class (cdr (std::da-nth 2 x))) (smt-cmd (cdr (std::da-nth 3 x))) (pythonpath (cdr (std::da-nth 4 x)))) (and (stringp interface-dir) (stringp smt-module) (stringp smt-class) (stringp smt-cmd) (stringp pythonpath))))))
Theorem:
(defthm consp-when-smtlink-config-p (implies (smtlink-config-p x) (consp x)) :rule-classes :compound-recognizer)