Fixing function for maybe-smtlink-hint structures.
(maybe-smtlink-hint-fix x) → new-x
Function:
(defun maybe-smtlink-hint-fix$inline (x) (declare (xargs :guard (maybe-smtlink-hint-p x))) (let ((acl2::__function__ 'maybe-smtlink-hint-fix)) (declare (ignorable acl2::__function__)) (mbe :logic (cond ((not x) nil) (t (b* ((fty::val (smtlink-hint-fix x))) fty::val))) :exec x)))
Theorem:
(defthm maybe-smtlink-hint-p-of-maybe-smtlink-hint-fix (b* ((new-x (maybe-smtlink-hint-fix$inline x))) (maybe-smtlink-hint-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm maybe-smtlink-hint-fix-when-maybe-smtlink-hint-p (implies (maybe-smtlink-hint-p x) (equal (maybe-smtlink-hint-fix x) x)))
Function:
(defun maybe-smtlink-hint-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (maybe-smtlink-hint-p acl2::x) (maybe-smtlink-hint-p acl2::y)))) (equal (maybe-smtlink-hint-fix acl2::x) (maybe-smtlink-hint-fix acl2::y)))
Theorem:
(defthm maybe-smtlink-hint-equiv-is-an-equivalence (and (booleanp (maybe-smtlink-hint-equiv x y)) (maybe-smtlink-hint-equiv x x) (implies (maybe-smtlink-hint-equiv x y) (maybe-smtlink-hint-equiv y x)) (implies (and (maybe-smtlink-hint-equiv x y) (maybe-smtlink-hint-equiv y z)) (maybe-smtlink-hint-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm maybe-smtlink-hint-equiv-implies-equal-maybe-smtlink-hint-fix-1 (implies (maybe-smtlink-hint-equiv acl2::x x-equiv) (equal (maybe-smtlink-hint-fix acl2::x) (maybe-smtlink-hint-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm maybe-smtlink-hint-fix-under-maybe-smtlink-hint-equiv (maybe-smtlink-hint-equiv (maybe-smtlink-hint-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-maybe-smtlink-hint-fix-1-forward-to-maybe-smtlink-hint-equiv (implies (equal (maybe-smtlink-hint-fix acl2::x) acl2::y) (maybe-smtlink-hint-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-maybe-smtlink-hint-fix-2-forward-to-maybe-smtlink-hint-equiv (implies (equal acl2::x (maybe-smtlink-hint-fix acl2::y)) (maybe-smtlink-hint-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm maybe-smtlink-hint-equiv-of-maybe-smtlink-hint-fix-1-forward (implies (maybe-smtlink-hint-equiv (maybe-smtlink-hint-fix acl2::x) acl2::y) (maybe-smtlink-hint-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm maybe-smtlink-hint-equiv-of-maybe-smtlink-hint-fix-2-forward (implies (maybe-smtlink-hint-equiv acl2::x (maybe-smtlink-hint-fix acl2::y)) (maybe-smtlink-hint-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)