Get the of field from a type-array.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun type-array->of$inline (x) (declare (xargs :guard (typep x))) (declare (xargs :guard (equal (type-kind x) :array))) (let ((__function__ 'type-array->of)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (type-kind x) :array) x))) (type-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm typep-of-type-array->of (b* ((of (type-array->of$inline x))) (typep of)) :rule-classes :rewrite)
Theorem:
(defthm type-array->of$inline-of-type-fix-x (equal (type-array->of$inline (type-fix x)) (type-array->of$inline x)))
Theorem:
(defthm type-array->of$inline-type-equiv-congruence-on-x (implies (type-equiv x x-equiv) (equal (type-array->of$inline x) (type-array->of$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm type-array->of-when-wrong-kind (implies (not (equal (type-kind x) :array)) (equal (type-array->of x) (type-fix nil))))