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