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