Length of an array of type
(uchar-array-length array) → length
Function:
(defun uchar-array-length (array) (declare (xargs :guard (uchar-arrayp array))) (let ((__function__ 'uchar-array-length)) (declare (ignorable __function__)) (len (uchar-array->elements array))))
Theorem:
(defthm posp-of-uchar-array-length (b* ((length (uchar-array-length array))) (posp length)) :rule-classes (:rewrite :type-prescription))
Theorem:
(defthm natp-of-uchar-array-length (b* ((length (uchar-array-length array))) (natp length)) :rule-classes :rewrite)
Theorem:
(defthm uchar-array-length-alt-def (implies (uchar-arrayp array) (equal (uchar-array-length array) (value-array->length array))))
Theorem:
(defthm uchar-array-length-of-uchar-array-fix-array (equal (uchar-array-length (uchar-array-fix array)) (uchar-array-length array)))
Theorem:
(defthm uchar-array-length-uchar-array-equiv-congruence-on-array (implies (uchar-array-equiv array array-equiv) (equal (uchar-array-length array) (uchar-array-length array-equiv))) :rule-classes :congruence)