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