Print a new-line character.
For now we print a single line feed character, which has code 10. In the future, we could support a printer option for the kind of new line character to use. Our parser supports (i) line feeds, (ii) carriage returns, and (iii) line feeds immediately followed by carriage returns.
Function:
(defun print-new-line (pstate) (declare (xargs :guard (pristatep pstate))) (let ((__function__ 'print-new-line)) (declare (ignorable __function__)) (print-char 10 pstate)))
Theorem:
(defthm pristatep-of-print-new-line (b* ((new-pstate (print-new-line pstate))) (pristatep new-pstate)) :rule-classes :rewrite)
Theorem:
(defthm print-new-line-of-pristate-fix-pstate (equal (print-new-line (pristate-fix pstate)) (print-new-line pstate)))
Theorem:
(defthm print-new-line-pristate-equiv-congruence-on-pstate (implies (pristate-equiv pstate pstate-equiv) (equal (print-new-line pstate) (print-new-line pstate-equiv))) :rule-classes :congruence)