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