Get the value field from a bexp-const.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun bexp-const->value$inline (x) (declare (xargs :guard (bexpp x))) (declare (xargs :guard (equal (bexp-kind x) :const))) (let ((__function__ 'bexp-const->value)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (bexp-kind x) :const) x))) (acl2::bool-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm booleanp-of-bexp-const->value (b* ((value (bexp-const->value$inline x))) (booleanp value)) :rule-classes :rewrite)
Theorem:
(defthm bexp-const->value$inline-of-bexp-fix-x (equal (bexp-const->value$inline (bexp-fix x)) (bexp-const->value$inline x)))
Theorem:
(defthm bexp-const->value$inline-bexp-equiv-congruence-on-x (implies (bexp-equiv x x-equiv) (equal (bexp-const->value$inline x) (bexp-const->value$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm bexp-const->value-when-wrong-kind (implies (not (equal (bexp-kind x) :const)) (equal (bexp-const->value x) (acl2::bool-fix nil))))