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