Read a component from a Java
(boolean-array-read array index) → component
Function:
(defun boolean-array-read (array index) (declare (xargs :guard (and (boolean-arrayp array) (int-valuep index)))) (declare (xargs :guard (boolean-array-index-in-range-p array index))) (let ((__function__ 'boolean-array-read)) (declare (ignorable __function__)) (boolean-value-fix (nth (int-value->int index) (boolean-array->components array)))))
Theorem:
(defthm boolean-valuep-of-boolean-array-read (b* ((component (boolean-array-read array index))) (boolean-valuep component)) :rule-classes :rewrite)