Recognizer for system-state structures.
(system-statep x) → *
Function:
(defun system-statep (x) (declare (xargs :guard t)) (let ((__function__ 'system-statep)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(validators network))) :exec (fty::alist-with-carsp x '(validators network))) (b* ((validators (cdr (std::da-nth 0 x))) (network (cdr (std::da-nth 1 x)))) (and (validators-statep validators) (message-setp network))))))
Theorem:
(defthm consp-when-system-statep (implies (system-statep x) (consp x)) :rule-classes :compound-recognizer)