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