Print a character constant prefix.
Function:
(defun print-cprefix (cprefix pstate) (declare (xargs :guard (and (cprefixp cprefix) (pristatep pstate)))) (let ((__function__ 'print-cprefix)) (declare (ignorable __function__)) (cprefix-case cprefix :upcase-l (print-astring "L" pstate) :locase-u (print-astring "u" pstate) :upcase-u (print-astring "U" pstate))))
Theorem:
(defthm pristatep-of-print-cprefix (b* ((new-pstate (print-cprefix cprefix pstate))) (pristatep new-pstate)) :rule-classes :rewrite)
Theorem:
(defthm print-cprefix-of-cprefix-fix-cprefix (equal (print-cprefix (cprefix-fix cprefix) pstate) (print-cprefix cprefix pstate)))
Theorem:
(defthm print-cprefix-cprefix-equiv-congruence-on-cprefix (implies (cprefix-equiv cprefix cprefix-equiv) (equal (print-cprefix cprefix pstate) (print-cprefix cprefix-equiv pstate))) :rule-classes :congruence)
Theorem:
(defthm print-cprefix-of-pristate-fix-pstate (equal (print-cprefix cprefix (pristate-fix pstate)) (print-cprefix cprefix pstate)))
Theorem:
(defthm print-cprefix-pristate-equiv-congruence-on-pstate (implies (pristate-equiv pstate pstate-equiv) (equal (print-cprefix cprefix pstate) (print-cprefix cprefix pstate-equiv))) :rule-classes :congruence)