(no-duplicates-p l) → *
Function:
(defun no-duplicates-p (l) (declare (xargs :guard (true-listp l))) (let ((__function__ 'no-duplicates-p)) (declare (ignorable __function__)) (cond ((endp l) t) ((member-p (car l) (cdr l)) nil) (t (no-duplicates-p (cdr l))))))
Theorem:
(defthm no-duplicates-p-and-append (implies (no-duplicates-p (append a b)) (and (no-duplicates-p a) (no-duplicates-p b))) :rule-classes (:forward-chaining :rewrite))