(vl-extend-pathname dir filename) concatenates
Function:
(defun vl-extend-pathname (dir filename) (declare (xargs :guard (and (stringp dir) (stringp filename)))) (let ((__function__ 'vl-extend-pathname)) (declare (ignorable __function__)) (cat dir (if (vl-ends-with-directory-separatorp dir) "" (implode (list acl2::*directory-separator*))) filename)))
Theorem:
(defthm stringp-of-vl-extend-pathname (b* ((dir/filename (vl-extend-pathname dir filename))) (stringp dir/filename)) :rule-classes :type-prescription)
Theorem:
(defthm vl-extend-pathname-of-str-fix-dir (equal (vl-extend-pathname (str-fix dir) filename) (vl-extend-pathname dir filename)))
Theorem:
(defthm vl-extend-pathname-streqv-congruence-on-dir (implies (streqv dir dir-equiv) (equal (vl-extend-pathname dir filename) (vl-extend-pathname dir-equiv filename))) :rule-classes :congruence)
Theorem:
(defthm vl-extend-pathname-of-str-fix-filename (equal (vl-extend-pathname dir (str-fix filename)) (vl-extend-pathname dir filename)))
Theorem:
(defthm vl-extend-pathname-streqv-congruence-on-filename (implies (streqv filename filename-equiv) (equal (vl-extend-pathname dir filename) (vl-extend-pathname dir filename-equiv))) :rule-classes :congruence)