Get the bytes field from a rlp-error-extra-bytes.
(rlp-error-extra-bytes->bytes x) → bytes
This is an ordinary field accessor created by fty::defprod.
Function:
(defun rlp-error-extra-bytes->bytes$inline (x) (declare (xargs :guard (rlp-error-p x))) (declare (xargs :guard (equal (rlp-error-kind x) :extra-bytes))) (let ((__function__ 'rlp-error-extra-bytes->bytes)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (rlp-error-kind x) :extra-bytes) x))) (byte-list-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm byte-listp-of-rlp-error-extra-bytes->bytes (b* ((bytes (rlp-error-extra-bytes->bytes$inline x))) (byte-listp bytes)) :rule-classes :rewrite)
Theorem:
(defthm rlp-error-extra-bytes->bytes$inline-of-rlp-error-fix-x (equal (rlp-error-extra-bytes->bytes$inline (rlp-error-fix x)) (rlp-error-extra-bytes->bytes$inline x)))
Theorem:
(defthm rlp-error-extra-bytes->bytes$inline-rlp-error-equiv-congruence-on-x (implies (rlp-error-equiv x x-equiv) (equal (rlp-error-extra-bytes->bytes$inline x) (rlp-error-extra-bytes->bytes$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm rlp-error-extra-bytes->bytes-when-wrong-kind (implies (not (equal (rlp-error-kind x) :extra-bytes)) (equal (rlp-error-extra-bytes->bytes x) (byte-list-fix nil))))