Less-than relation of a value of type
Function:
(defun lt-ushort-sshort (x y) (declare (xargs :guard (and (ushortp x) (sshortp y)))) (lt-sint-sint (sint-from-ushort x) (sint-from-sshort y)))
Theorem:
(defthm sintp-of-lt-ushort-sshort (sintp (lt-ushort-sshort x y)))
Theorem:
(defthm lt-ushort-sshort-of-ushort-fix-x (equal (lt-ushort-sshort (ushort-fix x) y) (lt-ushort-sshort x y)))
Theorem:
(defthm lt-ushort-sshort-ushort-equiv-congruence-on-x (implies (ushort-equiv x x-equiv) (equal (lt-ushort-sshort x y) (lt-ushort-sshort x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm lt-ushort-sshort-of-sshort-fix-y (equal (lt-ushort-sshort x (sshort-fix y)) (lt-ushort-sshort x y)))
Theorem:
(defthm lt-ushort-sshort-sshort-equiv-congruence-on-y (implies (sshort-equiv y y-equiv) (equal (lt-ushort-sshort x y) (lt-ushort-sshort x y-equiv))) :rule-classes :congruence)