Printe a header name.
(print-header-name hname pstate) → new-pstate
Function:
(defun print-header-name (hname pstate) (declare (xargs :guard (and (header-namep hname) (pristatep pstate)))) (let ((__function__ 'print-header-name)) (declare (ignorable __function__)) (header-name-case hname :angles (b* ((pstate (print-astring "<" pstate)) (pstate (print-h-char-list hname.chars pstate)) (pstate (print-astring ">" pstate))) pstate) :quotes (b* ((pstate (print-astring "\"" pstate)) (pstate (print-q-char-list hname.chars pstate)) (pstate (print-astring "\"" pstate))) pstate))))
Theorem:
(defthm pristatep-of-print-header-name (b* ((new-pstate (print-header-name hname pstate))) (pristatep new-pstate)) :rule-classes :rewrite)
Theorem:
(defthm pristate->gcc-of-print-header-name (b* ((?new-pstate (print-header-name hname pstate))) (equal (pristate->gcc new-pstate) (pristate->gcc pstate))))
Theorem:
(defthm print-header-name-of-header-name-fix-hname (equal (print-header-name (header-name-fix hname) pstate) (print-header-name hname pstate)))
Theorem:
(defthm print-header-name-header-name-equiv-congruence-on-hname (implies (header-name-equiv hname hname-equiv) (equal (print-header-name hname pstate) (print-header-name hname-equiv pstate))) :rule-classes :congruence)
Theorem:
(defthm print-header-name-of-pristate-fix-pstate (equal (print-header-name hname (pristate-fix pstate)) (print-header-name hname pstate)))
Theorem:
(defthm print-header-name-pristate-equiv-congruence-on-pstate (implies (pristate-equiv pstate pstate-equiv) (equal (print-header-name hname pstate) (print-header-name hname pstate-equiv))) :rule-classes :congruence)