other
(in-package "ACL2")
u32-listpfunction
(defun u32-listp (x) (declare (xargs :guard t)) (if (atom x) (eq x nil) (and (unsigned-byte-p 32 (car x)) (u32-listp (cdr x)))))
nth-in-u32-listp-natptheorem
(defthmd nth-in-u32-listp-natp (implies (and (u32-listp gates) (< (nfix idx) (len gates))) (natp (nth idx gates))) :hints (("Goal" :in-theory (enable nth))))
nth-in-u32-listp-u32ptheorem
(defthmd nth-in-u32-listp-u32p (implies (and (u32-listp gates) (< (nfix idx) (len gates))) (unsigned-byte-p 32 (nth idx gates))) :hints (("Goal" :in-theory (enable nth))))
nth-in-u32-listp-integerptheorem
(defthmd nth-in-u32-listp-integerp (implies (and (u32-listp gates) (< (nfix idx) (len gates))) (integerp (nth idx gates))) :hints (("Goal" :in-theory (enable nth))))