Filtering...

u32-listp

books/centaur/misc/u32-listp
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))))
nth-in-u32-listp-gte-0theorem
(defthmd nth-in-u32-listp-gte-0
  (implies (and (u32-listp gates) (< (nfix idx) (len gates)))
    (<= 0 (nth idx gates)))
  :hints (("Goal" :in-theory (enable nth)))
  :rule-classes :linear)
nth-in-u32-listp-upper-boundtheorem
(defthmd nth-in-u32-listp-upper-bound
  (implies (and (u32-listp gates) (< (nfix idx) (len gates)))
    (< (nth idx gates) (expt 2 32)))
  :hints (("Goal" :in-theory (enable nth)))
  :rule-classes :linear)