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