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