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