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