Get the cond field from a constraint.
(constraint->cond x) → cond
This is an ordinary field accessor created by defprod.
Function:
(defun constraint->cond$inline (x) (declare (xargs :guard (constraint-p x))) (declare (xargs :guard t)) (let ((__function__ 'constraint->cond)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (svex-fix (std::prod-cdr x))) :exec (std::prod-cdr x))))
Theorem:
(defthm svex-p-of-constraint->cond (b* ((cond (constraint->cond$inline x))) (svex-p cond)) :rule-classes :rewrite)
Theorem:
(defthm constraint->cond$inline-of-constraint-fix-x (equal (constraint->cond$inline (constraint-fix x)) (constraint->cond$inline x)))
Theorem:
(defthm constraint->cond$inline-constraint-equiv-congruence-on-x (implies (constraint-equiv x x-equiv) (equal (constraint->cond$inline x) (constraint->cond$inline x-equiv))) :rule-classes :congruence)