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