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