Read an element from an array of type
(ullong-array-integer-read array index) → element
Function:
(defun ullong-array-integer-read (array index) (declare (xargs :guard (and (ullong-arrayp array) (integerp index)))) (declare (xargs :guard (ullong-array-integer-index-okp array index))) (let ((__function__ 'ullong-array-integer-read)) (declare (ignorable __function__)) (ullong-fix (nth index (ullong-array->elements array)))))
Theorem:
(defthm ullongp-of-ullong-array-integer-read (b* ((element (ullong-array-integer-read array index))) (ullongp element)) :rule-classes :rewrite)
Theorem:
(defthm ullong-array-integer-read-of-ullong-array-fix-array (equal (ullong-array-integer-read (ullong-array-fix array) index) (ullong-array-integer-read array index)))
Theorem:
(defthm ullong-array-integer-read-ullong-array-equiv-congruence-on-array (implies (ullong-array-equiv array array-equiv) (equal (ullong-array-integer-read array index) (ullong-array-integer-read array-equiv index))) :rule-classes :congruence)
Theorem:
(defthm ullong-array-integer-read-of-ifix-index (equal (ullong-array-integer-read array (ifix index)) (ullong-array-integer-read array index)))
Theorem:
(defthm ullong-array-integer-read-int-equiv-congruence-on-index (implies (acl2::int-equiv index index-equiv) (equal (ullong-array-integer-read array index) (ullong-array-integer-read array index-equiv))) :rule-classes :congruence)
Theorem:
(defthm ullong-array-integer-read-alt-def (implies (and (ullong-arrayp array) (integerp index) (ullong-array-integer-index-okp array index)) (equal (ullong-array-integer-read array index) (value-array-read index array))))