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