Conditionally wrap an event form with a construct to suppress its output.
(maybe-suppress-output suppress form) → form-with-output-maybe-suppressed
If
Function:
(defun maybe-suppress-output (suppress form) (declare (xargs :guard (pseudo-event-formp form))) (let ((__function__ 'maybe-suppress-output)) (declare (ignorable __function__)) (if suppress (suppress-output form) form)))
Theorem:
(defthm pseudo-event-formp-of-maybe-suppress-output (implies (and (pseudo-event-formp form)) (b* ((form-with-output-maybe-suppressed (maybe-suppress-output suppress form))) (pseudo-event-formp form-with-output-maybe-suppressed))) :rule-classes :rewrite)