Get the components field from a short-array.
(short-array->components x) → components
This is an ordinary field accessor created by fty::defprod.
Function:
(defun short-array->components$inline (x) (declare (xargs :guard (short-arrayp x))) (declare (xargs :guard t)) (let ((__function__ 'short-array->components)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x)) (components (short-value-list-fix (std::da-nth 0 (cdr x))))) (if (< (len components) (expt 2 31)) components nil)) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm short-value-listp-of-short-array->components (b* ((components (short-array->components$inline x))) (short-value-listp components)) :rule-classes :rewrite)
Theorem:
(defthm short-array->components$inline-of-short-array-fix-x (equal (short-array->components$inline (short-array-fix x)) (short-array->components$inline x)))
Theorem:
(defthm short-array->components$inline-short-array-equiv-congruence-on-x (implies (short-array-equiv x x-equiv) (equal (short-array->components$inline x) (short-array->components$inline x-equiv))) :rule-classes :congruence)