Fixtype of ACL2 integers in the range of type
Function:
(defun sint-integer-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (sint-integerp acl2::x) (sint-integerp acl2::y)))) (equal (sint-integer-fix acl2::x) (sint-integer-fix acl2::y)))
Theorem:
(defthm sint-integer-equiv-is-an-equivalence (and (booleanp (sint-integer-equiv x y)) (sint-integer-equiv x x) (implies (sint-integer-equiv x y) (sint-integer-equiv y x)) (implies (and (sint-integer-equiv x y) (sint-integer-equiv y z)) (sint-integer-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm sint-integer-equiv-implies-equal-sint-integer-fix-1 (implies (sint-integer-equiv acl2::x x-equiv) (equal (sint-integer-fix acl2::x) (sint-integer-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm sint-integer-fix-under-sint-integer-equiv (sint-integer-equiv (sint-integer-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-sint-integer-fix-1-forward-to-sint-integer-equiv (implies (equal (sint-integer-fix acl2::x) acl2::y) (sint-integer-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-sint-integer-fix-2-forward-to-sint-integer-equiv (implies (equal acl2::x (sint-integer-fix acl2::y)) (sint-integer-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm sint-integer-equiv-of-sint-integer-fix-1-forward (implies (sint-integer-equiv (sint-integer-fix acl2::x) acl2::y) (sint-integer-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm sint-integer-equiv-of-sint-integer-fix-2-forward (implies (sint-integer-equiv acl2::x (sint-integer-fix acl2::y)) (sint-integer-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)