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