Fixer for pseudo-event-formp.
(pseudo-event-form-fix x) → fixed-x
Function:
(defun pseudo-event-form-fix (x) (declare (xargs :guard (pseudo-event-formp x))) (mbe :logic (if (pseudo-event-formp x) x '(_)) :exec x))
Theorem:
(defthm pseudo-event-formp-of-pseudo-event-form-fix (b* ((fixed-x (pseudo-event-form-fix x))) (pseudo-event-formp fixed-x)) :rule-classes :rewrite)
Theorem:
(defthm pseudo-event-form-fix-when-pseudo-event-formp (implies (pseudo-event-formp x) (equal (pseudo-event-form-fix x) x)))