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