Converts 4vec-p into string of 0,1,x,z's msb-first
Function:
(defun 4vec-p-to-stringp (x) (declare (xargs :guard (4vec-p x))) (let ((__function__ '4vec-p-to-stringp)) (declare (ignorable __function__)) (if (integerp x) (coerce (explode-atom x 2) 'string) (4vec-p-to-stringp-aux (car x) (cdr x) (max (integer-length (car x)) (integer-length (cdr x))) nil))))
Theorem:
(defthm stringp-of-4vec-p-to-stringp (b* ((x-string (4vec-p-to-stringp x))) (stringp x-string)) :rule-classes :rewrite)