(wrb i bsp j) writes the
This is analogous to Common Lisp's
Function:
(defun wrb (i bsp j) (declare (xargs :guard (and (integerp i) (bspp bsp) (integerp j)))) (let ((__function__ 'wrb)) (declare (ignorable __function__)) (logapp (bsp-position bsp) (loghead (bsp-position bsp) j) (logapp (bsp-size bsp) i (logtail (+ (bsp-size bsp) (bsp-position bsp)) j)))))
Theorem:
(defthm wrb-type (b* ((int (wrb i bsp j))) (integerp int)) :rule-classes :type-prescription)