Build an array of type
(uint-array-of elements) → array
Function:
(defun uint-array-of (elements) (declare (xargs :guard (uint-listp elements))) (declare (xargs :guard (consp elements))) (let ((__function__ 'uint-array-of)) (declare (ignorable __function__)) (uint-array (type-uint) elements)))
Theorem:
(defthm uint-arrayp-of-uint-array-of (b* ((array (uint-array-of elements))) (uint-arrayp array)) :rule-classes :rewrite)
Theorem:
(defthm uint-array-of-of-uint-array->elements (equal (uint-array-of (uint-array->elements array)) (uint-array-fix array)))
Theorem:
(defthm uint-array-of-alt-def (implies (and (uint-listp elems) (consp elems)) (equal (uint-array-of elems) (make-value-array :elemtype (type-uint) :elements elems))))
Theorem:
(defthm uint-array-of-of-uint-list-fix-elements (equal (uint-array-of (uint-list-fix elements)) (uint-array-of elements)))
Theorem:
(defthm uint-array-of-uint-list-equiv-congruence-on-elements (implies (uint-list-equiv elements elements-equiv) (equal (uint-array-of elements) (uint-array-of elements-equiv))) :rule-classes :congruence)