Greater-than relation of a value of type
Function:
(defun gt-ullong-ullong (x y) (declare (xargs :guard (and (ullongp x) (ullongp y)))) (if (> (integer-from-ullong x) (integer-from-ullong y)) (sint-from-integer 1) (sint-from-integer 0)))
Theorem:
(defthm sintp-of-gt-ullong-ullong (sintp (gt-ullong-ullong x y)))
Theorem:
(defthm gt-ullong-ullong-of-ullong-fix-x (equal (gt-ullong-ullong (ullong-fix x) y) (gt-ullong-ullong x y)))
Theorem:
(defthm gt-ullong-ullong-ullong-equiv-congruence-on-x (implies (ullong-equiv x x-equiv) (equal (gt-ullong-ullong x y) (gt-ullong-ullong x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm gt-ullong-ullong-of-ullong-fix-y (equal (gt-ullong-ullong x (ullong-fix y)) (gt-ullong-ullong x y)))
Theorem:
(defthm gt-ullong-ullong-ullong-equiv-congruence-on-y (implies (ullong-equiv y y-equiv) (equal (gt-ullong-ullong x y) (gt-ullong-ullong x y-equiv))) :rule-classes :congruence)