Returns
(list-elements-equal e x) → elem-equal?
Function:
(defun list-elements-equal (e x) (declare (xargs :guard (true-listp x))) (let ((__function__ 'list-elements-equal)) (declare (ignorable __function__)) (if (endp x) t (and (equal (car x) e) (list-elements-equal e (cdr x))))))
Theorem:
(defthm booleanp-of-list-elements-equal (b* ((elem-equal? (list-elements-equal e x))) (booleanp elem-equal?)) :rule-classes :type-prescription)