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