(maybe-3bits-p x) → *
Function:
(defun maybe-3bits-p (x) (declare (xargs :guard t)) (let ((__function__ 'maybe-3bits-p)) (declare (ignorable __function__)) (or (not x) (3bits-p x))))
Function:
(defun maybe-3bits-fix (x) (declare (xargs :guard (maybe-3bits-p x))) (let ((__function__ 'maybe-3bits-fix)) (declare (ignorable __function__)) (mbe :logic (if (maybe-3bits-p x) x 'nil) :exec x)))
Function:
(defun maybe-3bits-equiv$inline (x y) (declare (xargs :guard (and (maybe-3bits-p x) (maybe-3bits-p y)))) (equal (maybe-3bits-fix x) (maybe-3bits-fix y)))
Theorem:
(defthm maybe-3bits-equiv-is-an-equivalence (and (booleanp (maybe-3bits-equiv x y)) (maybe-3bits-equiv x x) (implies (maybe-3bits-equiv x y) (maybe-3bits-equiv y x)) (implies (and (maybe-3bits-equiv x y) (maybe-3bits-equiv y z)) (maybe-3bits-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm maybe-3bits-equiv-implies-equal-maybe-3bits-fix-1 (implies (maybe-3bits-equiv x x-equiv) (equal (maybe-3bits-fix x) (maybe-3bits-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm maybe-3bits-fix-under-maybe-3bits-equiv (maybe-3bits-equiv (maybe-3bits-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))