Multiplication of a value of type
Function:
(defun mul-ullong-ullong (x y) (declare (xargs :guard (and (ullongp x) (ullongp y)))) (ullong-from-integer-mod (* (integer-from-ullong x) (integer-from-ullong y))))
Theorem:
(defthm ullongp-of-mul-ullong-ullong (ullongp (mul-ullong-ullong x y)))
Theorem:
(defthm mul-ullong-ullong-of-ullong-fix-x (equal (mul-ullong-ullong (ullong-fix x) y) (mul-ullong-ullong x y)))
Theorem:
(defthm mul-ullong-ullong-ullong-equiv-congruence-on-x (implies (ullong-equiv x x-equiv) (equal (mul-ullong-ullong x y) (mul-ullong-ullong x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm mul-ullong-ullong-of-ullong-fix-y (equal (mul-ullong-ullong x (ullong-fix y)) (mul-ullong-ullong x y)))
Theorem:
(defthm mul-ullong-ullong-ullong-equiv-congruence-on-y (implies (ullong-equiv y y-equiv) (equal (mul-ullong-ullong x y) (mul-ullong-ullong x y-equiv))) :rule-classes :congruence)