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