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