Wrap an event form with a construct to suppress its output.
(suppress-output form) → form-with-output-suppressed
Function:
(defun suppress-output (form) (declare (xargs :guard (pseudo-event-formp form))) (let ((__function__ 'suppress-output)) (declare (ignorable __function__)) (cons 'with-output (cons ':gag-mode (cons 'nil (cons ':off (cons ':all (cons ':on (cons 'error (cons form 'nil))))))))))
Theorem:
(defthm pseudo-event-formp-of-suppress-output (b* ((form-with-output-suppressed (suppress-output form))) (pseudo-event-formp form-with-output-suppressed)) :rule-classes :rewrite)