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