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