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