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