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