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