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