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