Get the elemtype field from a sshort-array.
(sshort-array->elemtype x) → elemtype
This is an ordinary field accessor created by fty::defprod.
Function:
(defun sshort-array->elemtype$inline (x) (declare (xargs :guard (sshort-arrayp x))) (declare (xargs :guard t)) (let ((__function__ 'sshort-array->elemtype)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x)) (elemtype (type-fix (std::da-nth 0 (cdr x)))) (elements (sshort-list-fix (std::da-nth 1 (cdr x))))) (if (type-case elemtype :sshort) elemtype (type-sshort))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm typep-of-sshort-array->elemtype (b* ((elemtype (sshort-array->elemtype$inline x))) (typep elemtype)) :rule-classes :rewrite)
Theorem:
(defthm sshort-array->elemtype$inline-of-sshort-array-fix-x (equal (sshort-array->elemtype$inline (sshort-array-fix x)) (sshort-array->elemtype$inline x)))
Theorem:
(defthm sshort-array->elemtype$inline-sshort-array-equiv-congruence-on-x (implies (sshort-array-equiv x x-equiv) (equal (sshort-array->elemtype$inline x) (sshort-array->elemtype$inline x-equiv))) :rule-classes :congruence)