Extract the
We leave this enabled; we would usually not expect to try to reason about it.
Function:
(defun acl2::nth-slice64$inline (n x) (declare (xargs :guard (and (natp n) (integerp x)))) (let ((__function__ 'nth-slice64)) (declare (ignorable __function__)) (mbe :logic (logand (ash (ifix x) (* (nfix n) -64)) (1- (expt 2 64))) :exec (the (unsigned-byte 64) (logand (ash x (the (integer * 0) (* n -64))) 18446744073709551615)))))
Theorem:
(defthm acl2::natp-of-nth-slice64 (b* ((slice (acl2::nth-slice64$inline n x))) (natp slice)) :rule-classes :type-prescription)
Theorem:
(defthm nat-equiv-implies-equal-nth-slice64-1 (implies (nat-equiv n n-equiv) (equal (nth-slice64 n x) (nth-slice64 n-equiv x))) :rule-classes (:congruence))
Theorem:
(defthm int-equiv-implies-equal-nth-slice64-2 (implies (int-equiv x x-equiv) (equal (nth-slice64 n x) (nth-slice64 n x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm unsigned-byte-p-64-of-nth-slice64 (unsigned-byte-p 64 (nth-slice64 n x)))
Theorem:
(defthm nth-slice64-is-nth-slice (equal (nth-slice64 n x) (nth-slice 64 n x)))