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