Get the right field from a vttree-branch.
This is an ordinary field accessor created by defprod.
Function:
(defun vttree-branch->right$inline (x) (declare (xargs :guard (vttree-p x))) (declare (xargs :guard (equal (vttree-kind x) :branch))) (let ((__function__ 'vttree-branch->right)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (vttree-kind x) :branch) x))) (vttree-fix (cdr x))) :exec (cdr x))))
Theorem:
(defthm vttree-p-of-vttree-branch->right (b* ((right (vttree-branch->right$inline x))) (vttree-p right)) :rule-classes :rewrite)
Theorem:
(defthm vttree-branch->right$inline-of-vttree-fix-x (equal (vttree-branch->right$inline (vttree-fix x)) (vttree-branch->right$inline x)))
Theorem:
(defthm vttree-branch->right$inline-vttree-equiv-congruence-on-x (implies (vttree-equiv x x-equiv) (equal (vttree-branch->right$inline x) (vttree-branch->right$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm vttree-branch->right-when-wrong-kind (implies (not (equal (vttree-kind x) :branch)) (equal (vttree-branch->right x) (vttree-fix nil))))