Recognizer for validator-state structures.
(validator-statep x) → *
Function:
(defun validator-statep (x) (declare (xargs :guard t)) (let ((__function__ 'validator-statep)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(round dag endorsed last blockchain committed))) :exec (fty::alist-with-carsp x '(round dag endorsed last blockchain committed))) (b* ((round (cdr (std::da-nth 0 x))) (dag (cdr (std::da-nth 1 x))) (endorsed (cdr (std::da-nth 2 x))) (last (cdr (std::da-nth 3 x))) (blockchain (cdr (std::da-nth 4 x))) (committed (cdr (std::da-nth 5 x)))) (and (posp round) (certificate-setp dag) (address+pos-setp endorsed) (natp last) (block-listp blockchain) (certificate-setp committed))))))
Theorem:
(defthm consp-when-validator-statep (implies (validator-statep x) (consp x)) :rule-classes :compound-recognizer)