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