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