Construct a reduced BED for
(mk-op-x-true op left) → bed
Function:
(defun mk-op-x-true (op left) (declare (xargs :guard (bed-op-p op))) (let ((__function__ 'mk-op-x-true)) (declare (ignorable __function__)) (b* ((op (bed-op-fix$ op)) ((when (eql op (bed-op-true))) t) ((when (eql op (bed-op-ior))) t) ((when (eql op (bed-op-orc2))) left) ((when (eql op (bed-op-arg1))) left) ((when (eql op (bed-op-orc1))) t) ((when (eql op (bed-op-arg2))) t) ((when (eql op (bed-op-eqv))) left) ((when (eql op (bed-op-and))) left) ((when (eql op (bed-op-nand))) (mk-not left)) ((when (eql op (bed-op-xor))) (mk-not left)) ((when (eql op (bed-op-not2))) nil) ((when (eql op (bed-op-andc2))) nil) ((when (eql op (bed-op-not1))) (mk-not left)) ((when (eql op (bed-op-andc1))) (mk-not left)) ((when (eql op (bed-op-nor))) nil) ((when (eql op (bed-op-false))) nil)) (mk-op-raw op left t))))
Theorem:
(defthm bed-eval-of-mk-op-x-true (equal (bed-eval (mk-op-x-true op left) env) (bed-eval (mk-op-raw op left t) env)))