Events to generate fixtypes, functions, and theorems for ranges of integer types.
(def-integer-range-loop types) → events
Function:
(defun def-integer-range-loop (types) (declare (xargs :guard (type-listp types))) (declare (xargs :guard (type-nonchar-integer-listp types))) (let ((__function__ 'def-integer-range-loop)) (declare (ignorable __function__)) (cond ((endp types) nil) (t (cons (def-integer-range (car types)) (def-integer-range-loop (cdr types)))))))
Theorem:
(defthm pseudo-event-form-listp-of-def-integer-range-loop (b* ((events (def-integer-range-loop types))) (pseudo-event-form-listp events)) :rule-classes :rewrite)
Theorem:
(defthm def-integer-range-loop-of-type-list-fix-types (equal (def-integer-range-loop (type-list-fix types)) (def-integer-range-loop types)))
Theorem:
(defthm def-integer-range-loop-type-list-equiv-congruence-on-types (implies (type-list-equiv types types-equiv) (equal (def-integer-range-loop types) (def-integer-range-loop types-equiv))) :rule-classes :congruence)