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