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