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