Pretty-print a unary operator.
Function:
(defun pprint-unop (op) (declare (xargs :guard (unopp op))) (let ((__function__ 'pprint-unop)) (declare (ignorable __function__)) (unop-case op :address "&" :indir "*" :plus "+" :minus "-" :bitnot "~~" :lognot "!")))
Theorem:
(defthm msgp-of-pprint-unop (b* ((part (pprint-unop op))) (msgp part)) :rule-classes :rewrite)
Theorem:
(defthm pprint-unop-of-unop-fix-op (equal (pprint-unop (unop-fix op)) (pprint-unop op)))
Theorem:
(defthm pprint-unop-unop-equiv-congruence-on-op (implies (unop-equiv op op-equiv) (equal (pprint-unop op) (pprint-unop op-equiv))) :rule-classes :congruence)