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