Recognizer for filepath-set.
(filepath-setp x) → *
Function:
(defun filepath-setp (x) (declare (xargs :guard t)) (if (atom x) (null x) (and (filepathp (car x)) (or (null (cdr x)) (and (consp (cdr x)) (acl2::fast-<< (car x) (cadr x)) (filepath-setp (cdr x)))))))
Theorem:
(defthm booleanp-offilepath-setp (booleanp (filepath-setp x)))
Theorem:
(defthm setp-when-filepath-setp (implies (filepath-setp x) (setp x)) :rule-classes (:rewrite))
Theorem:
(defthm filepathp-of-head-when-filepath-setp (implies (filepath-setp x) (implies (not (emptyp x)) (filepathp (head x)))))
Theorem:
(defthm filepath-setp-of-tail-when-filepath-setp (implies (filepath-setp x) (filepath-setp (tail x))))
Theorem:
(defthm filepath-setp-of-insert (equal (filepath-setp (insert a x)) (and (filepathp a) (filepath-setp (sfix x)))))
Theorem:
(defthm filepathp-when-in-filepath-setp-binds-free-x (implies (and (in a x) (filepath-setp x)) (filepathp a)))
Theorem:
(defthm not-in-filepath-setp-when-not-filepathp (implies (and (filepath-setp x) (not (filepathp a))) (not (in a x))))
Theorem:
(defthm filepath-setp-of-union (equal (filepath-setp (union x y)) (and (filepath-setp (sfix x)) (filepath-setp (sfix y)))))
Theorem:
(defthm filepath-setp-of-intersect (implies (and (filepath-setp x) (filepath-setp y)) (filepath-setp (intersect x y))))
Theorem:
(defthm filepath-setp-of-difference (implies (filepath-setp x) (filepath-setp (difference x y))))
Theorem:
(defthm filepath-setp-of-delete (implies (filepath-setp x) (filepath-setp (delete a x))))