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