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