Get the endorsed field from a validator-state.
(validator-state->endorsed x) → endorsed
This is an ordinary field accessor created by fty::defprod.
Function:
(defun validator-state->endorsed$inline (x) (declare (xargs :guard (validator-statep x))) (declare (xargs :guard t)) (let ((__function__ 'validator-state->endorsed)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (address+pos-set-fix (cdr (std::da-nth 3 x)))) :exec (cdr (std::da-nth 3 x)))))
Theorem:
(defthm address+pos-setp-of-validator-state->endorsed (b* ((endorsed (validator-state->endorsed$inline x))) (address+pos-setp endorsed)) :rule-classes :rewrite)
Theorem:
(defthm validator-state->endorsed$inline-of-validator-state-fix-x (equal (validator-state->endorsed$inline (validator-state-fix x)) (validator-state->endorsed$inline x)))
Theorem:
(defthm validator-state->endorsed$inline-validator-state-equiv-congruence-on-x (implies (validator-state-equiv x x-equiv) (equal (validator-state->endorsed$inline x) (validator-state->endorsed$inline x-equiv))) :rule-classes :congruence)