Get the components field from a int-array.
(int-array->components x) → components
This is an ordinary field accessor created by fty::defprod.
Function:
(defun int-array->components$inline (x) (declare (xargs :guard (int-arrayp x))) (declare (xargs :guard t)) (let ((__function__ 'int-array->components)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x)) (components (int-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 int-value-listp-of-int-array->components (b* ((components (int-array->components$inline x))) (int-value-listp components)) :rule-classes :rewrite)
Theorem:
(defthm int-array->components$inline-of-int-array-fix-x (equal (int-array->components$inline (int-array-fix x)) (int-array->components$inline x)))
Theorem:
(defthm int-array->components$inline-int-array-equiv-congruence-on-x (implies (int-array-equiv x x-equiv) (equal (int-array->components$inline x) (int-array->components$inline x-equiv))) :rule-classes :congruence)