Equality of a value of type
Function:
(defun eq-sllong-ushort (x y) (declare (xargs :guard (and (sllongp x) (ushortp y)))) (eq-sllong-sllong x (sllong-from-ushort y)))
Theorem:
(defthm sintp-of-eq-sllong-ushort (sintp (eq-sllong-ushort x y)))
Theorem:
(defthm eq-sllong-ushort-of-sllong-fix-x (equal (eq-sllong-ushort (sllong-fix x) y) (eq-sllong-ushort x y)))
Theorem:
(defthm eq-sllong-ushort-sllong-equiv-congruence-on-x (implies (sllong-equiv x x-equiv) (equal (eq-sllong-ushort x y) (eq-sllong-ushort x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm eq-sllong-ushort-of-ushort-fix-y (equal (eq-sllong-ushort x (ushort-fix y)) (eq-sllong-ushort x y)))
Theorem:
(defthm eq-sllong-ushort-ushort-equiv-congruence-on-y (implies (ushort-equiv y y-equiv) (equal (eq-sllong-ushort x y) (eq-sllong-ushort x y-equiv))) :rule-classes :congruence)