Fixing function for bed-op-ps.
(bed-op-fix x) → op
Function:
(defun bed-op-fix$inline (x) (declare (xargs :guard t)) (let ((__function__ 'bed-op-fix)) (declare (ignorable __function__)) (the (unsigned-byte 4) (logand 15 (the integer (ifix x))))))
Theorem:
(defthm bed-op-p-of-bed-op-fix (b* ((op (bed-op-fix$inline x))) (bed-op-p op)) :rule-classes :rewrite)
Theorem:
(defthm bed-op-fix-when-bed-op-p (implies (bed-op-p x) (equal (bed-op-fix x) x)))