(vl-distweighttype-string x) → str
Function:
(defun vl-distweighttype-string (x) (declare (xargs :guard (vl-distweighttype-p x))) (let ((__function__ 'vl-distweighttype-string)) (declare (ignorable __function__)) (case (vl-distweighttype-fix x) (:vl-weight-each ":=") (:vl-weight-total ":/") (otherwise (progn$ (impossible) "")))))
Theorem:
(defthm stringp-of-vl-distweighttype-string (b* ((str (vl-distweighttype-string x))) (stringp str)) :rule-classes :type-prescription)
Theorem:
(defthm vl-distweighttype-string-of-vl-distweighttype-fix-x (equal (vl-distweighttype-string (vl-distweighttype-fix x)) (vl-distweighttype-string x)))
Theorem:
(defthm vl-distweighttype-string-vl-distweighttype-equiv-congruence-on-x (implies (vl-distweighttype-equiv x x-equiv) (equal (vl-distweighttype-string x) (vl-distweighttype-string x-equiv))) :rule-classes :congruence)