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