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