Concrete implementation of strin-count-charset.
Function:
(defun sin$c-count-charset (set sin$c) (declare (xargs :stobjs (sin$c))) (declare (xargs :guard (and (charset-p set) (sin$c-okp sin$c)))) (let ((__function__ 'sin$c-count-charset)) (declare (ignorable __function__)) (b* (((the string str) (sin$c-str sin$c)) ((the (unsigned-byte 60) pos) (sin$c-pos sin$c)) ((the (unsigned-byte 60) len) (length str))) (str-count-leading-charset-fast pos str len set))))
Theorem:
(defthm sin-count-charset{correspondence} (implies (and (sin$corr sin$c sin) (charset-p set) (strin-p sin)) (equal (sin$c-count-charset set sin$c) (strin-count-charset set sin))))