Generate the theory invariant.
(defequal-gen-theory-invariant left-to-right right-to-left) → even
Function:
(defun defequal-gen-theory-invariant (left-to-right right-to-left) (declare (xargs :guard (and (symbolp left-to-right) (symbolp right-to-left)))) (let ((__function__ 'defequal-gen-theory-invariant)) (declare (ignorable __function__)) (cons 'theory-invariant (cons (cons 'incompatible (cons (cons ':rewrite (cons left-to-right 'nil)) (cons (cons ':rewrite (cons right-to-left 'nil)) 'nil))) 'nil))))
Theorem:
(defthm pseudo-event-formp-of-defequal-gen-theory-invariant (b* ((even (defequal-gen-theory-invariant left-to-right right-to-left))) (pseudo-event-formp even)) :rule-classes :rewrite)