Pretty-print a label.
We also print a space just after the colon, so that the sub-statement after the label is separated by a space.
Function:
(defun pprint-label (lab) (declare (xargs :guard (labelp lab))) (let ((__function__ 'pprint-label)) (declare (ignorable __function__)) (label-case lab :name (msg "~@0: " (pprint-ident lab.get)) :cas "case: " :default "default: ")))
Theorem:
(defthm msgp-of-pprint-label (b* ((part (pprint-label lab))) (msgp part)) :rule-classes :rewrite)
Theorem:
(defthm pprint-label-of-label-fix-lab (equal (pprint-label (label-fix lab)) (pprint-label lab)))
Theorem:
(defthm pprint-label-label-equiv-congruence-on-lab (implies (label-equiv lab lab-equiv) (equal (pprint-label lab) (pprint-label lab-equiv))) :rule-classes :congruence)