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