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