(html-encode-string x tabsize) converts the string
Function:
(defun html-encode-string (x tabsize) (declare (xargs :guard (and (stringp x) (posp tabsize)))) (let ((acl2::__function__ 'html-encode-string)) (declare (ignorable acl2::__function__)) (b* ((x (mbe :logic (str-fix x) :exec x)) ((mv ?col acc) (html-encode-string-aux x 0 (length x) 0 tabsize nil))) (rchars-to-string acc))))
Theorem:
(defthm stringp-of-html-encode-string (b* ((html-encoded (html-encode-string x tabsize))) (stringp html-encoded)) :rule-classes :type-prescription)
Theorem:
(defthm html-encode-string-of-str-fix-x (equal (html-encode-string (str-fix x) tabsize) (html-encode-string x tabsize)))
Theorem:
(defthm html-encode-string-streqv-congruence-on-x (implies (streqv x x-equiv) (equal (html-encode-string x tabsize) (html-encode-string x-equiv tabsize))) :rule-classes :congruence)
Theorem:
(defthm html-encode-string-of-pos-fix-tabsize (equal (html-encode-string x (acl2::pos-fix tabsize)) (html-encode-string x tabsize)))
Theorem:
(defthm html-encode-string-pos-equiv-congruence-on-tabsize (implies (acl2::pos-equiv tabsize tabsize-equiv) (equal (html-encode-string x tabsize) (html-encode-string x tabsize-equiv))) :rule-classes :congruence)