Print an optional encoding prefix.
(print-eprefix-option eprefix? pstate) → new-pstate
If there is no prefix, we print nothing.
Function:
(defun print-eprefix-option (eprefix? pstate) (declare (xargs :guard (and (eprefix-optionp eprefix?) (pristatep pstate)))) (let ((__function__ 'print-eprefix-option)) (declare (ignorable __function__)) (eprefix-option-case eprefix? :some (print-eprefix eprefix?.val pstate) :none (pristate-fix pstate))))
Theorem:
(defthm pristatep-of-print-eprefix-option (b* ((new-pstate (print-eprefix-option eprefix? pstate))) (pristatep new-pstate)) :rule-classes :rewrite)
Theorem:
(defthm print-eprefix-option-of-eprefix-option-fix-eprefix? (equal (print-eprefix-option (eprefix-option-fix eprefix?) pstate) (print-eprefix-option eprefix? pstate)))
Theorem:
(defthm print-eprefix-option-eprefix-option-equiv-congruence-on-eprefix? (implies (eprefix-option-equiv eprefix? eprefix?-equiv) (equal (print-eprefix-option eprefix? pstate) (print-eprefix-option eprefix?-equiv pstate))) :rule-classes :congruence)
Theorem:
(defthm print-eprefix-option-of-pristate-fix-pstate (equal (print-eprefix-option eprefix? (pristate-fix pstate)) (print-eprefix-option eprefix? pstate)))
Theorem:
(defthm print-eprefix-option-pristate-equiv-congruence-on-pstate (implies (pristate-equiv pstate pstate-equiv) (equal (print-eprefix-option eprefix? pstate) (print-eprefix-option eprefix? pstate-equiv))) :rule-classes :congruence)