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