Function:
(defun vl-ends-with-directory-separatorp (x) (declare (xargs :guard (stringp x))) (let ((__function__ 'vl-ends-with-directory-separatorp)) (declare (ignorable __function__)) (let ((x (string-fix x)) (len (length x))) (and (/= len 0) (eql (char x (- (length x) 1)) acl2::*directory-separator*)))))
Theorem:
(defthm booleanp-of-vl-ends-with-directory-separatorp (b* ((bool (vl-ends-with-directory-separatorp x))) (booleanp bool)) :rule-classes :type-prescription)
Theorem:
(defthm vl-ends-with-directory-separatorp-of-str-fix-x (equal (vl-ends-with-directory-separatorp (str-fix x)) (vl-ends-with-directory-separatorp x)))
Theorem:
(defthm vl-ends-with-directory-separatorp-streqv-congruence-on-x (implies (streqv x x-equiv) (equal (vl-ends-with-directory-separatorp x) (vl-ends-with-directory-separatorp x-equiv))) :rule-classes :congruence)