Equality of a value of type
Function:
(defun eq-ulong-sshort (x y) (declare (xargs :guard (and (ulongp x) (sshortp y)))) (eq-ulong-ulong x (ulong-from-sshort y)))
Theorem:
(defthm sintp-of-eq-ulong-sshort (sintp (eq-ulong-sshort x y)))
Theorem:
(defthm eq-ulong-sshort-of-ulong-fix-x (equal (eq-ulong-sshort (ulong-fix x) y) (eq-ulong-sshort x y)))
Theorem:
(defthm eq-ulong-sshort-ulong-equiv-congruence-on-x (implies (ulong-equiv x x-equiv) (equal (eq-ulong-sshort x y) (eq-ulong-sshort x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm eq-ulong-sshort-of-sshort-fix-y (equal (eq-ulong-sshort x (sshort-fix y)) (eq-ulong-sshort x y)))
Theorem:
(defthm eq-ulong-sshort-sshort-equiv-congruence-on-y (implies (sshort-equiv y y-equiv) (equal (eq-ulong-sshort x y) (eq-ulong-sshort x y-equiv))) :rule-classes :congruence)