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