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