Get the condition field from a branch.
(branch->condition x) → condition
This is an ordinary field accessor created by fty::defprod.
Function:
(defun branch->condition$inline (x) (declare (xargs :guard (branchp x))) (declare (xargs :guard t)) (let ((__function__ 'branch->condition)) (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->condition (b* ((condition (branch->condition$inline x))) (expressionp condition)) :rule-classes :rewrite)
Theorem:
(defthm branch->condition$inline-of-branch-fix-x (equal (branch->condition$inline (branch-fix x)) (branch->condition$inline x)))
Theorem:
(defthm branch->condition$inline-branch-equiv-congruence-on-x (implies (branch-equiv x x-equiv) (equal (branch->condition$inline x) (branch->condition$inline x-equiv))) :rule-classes :congruence)