Pretty-print a type name.
If there is a declarator, we add a space beween it and the type specifier sequence. Otherwise, we just print the type specifier sequence.
Function:
(defun pprint-tyname (tn) (declare (xargs :guard (tynamep tn))) (let ((__function__ 'pprint-tyname)) (declare (ignorable __function__)) (b* (((tyname tn) tn)) (if (obj-adeclor-case tn.declor :none) (pprint-tyspecseq tn.tyspec) (msg "~@0 ~@1" (pprint-tyspecseq tn.tyspec) (pprint-obj-adeclor tn.declor))))))
Theorem:
(defthm msgp-of-pprint-tyname (b* ((part (pprint-tyname tn))) (msgp part)) :rule-classes :rewrite)
Theorem:
(defthm pprint-tyname-of-tyname-fix-tn (equal (pprint-tyname (tyname-fix tn)) (pprint-tyname tn)))
Theorem:
(defthm pprint-tyname-tyname-equiv-congruence-on-tn (implies (tyname-equiv tn tn-equiv) (equal (pprint-tyname tn) (pprint-tyname tn-equiv))) :rule-classes :congruence)