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