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