An 54-bit unsigned bitstruct type.
This is a bitstruct type introduced by defbitstruct, represented as a unsigned 54-bit integer.
This is an atomic/empty structure; it has no fields.
Function:
(defun 54bits-p (x) (declare (xargs :guard t)) (let ((__function__ '54bits-p)) (declare (ignorable __function__)) (mbe :logic (unsigned-byte-p 54 x) :exec (and (natp x) (< x 18014398509481984)))))
Theorem:
(defthm 54bits-p-when-unsigned-byte-p (implies (unsigned-byte-p 54 x) (54bits-p x)))
Theorem:
(defthm unsigned-byte-p-when-54bits-p (implies (54bits-p x) (unsigned-byte-p 54 x)))
Theorem:
(defthm 54bits-p-compound-recognizer (implies (54bits-p x) (natp x)) :rule-classes :compound-recognizer)
Function:
(defun 54bits-fix (x) (declare (xargs :guard (54bits-p x))) (let ((__function__ '54bits-fix)) (declare (ignorable __function__)) (mbe :logic (loghead 54 x) :exec x)))
Theorem:
(defthm 54bits-p-of-54bits-fix (b* ((fty::fixed (54bits-fix x))) (54bits-p fty::fixed)) :rule-classes :rewrite)
Theorem:
(defthm 54bits-fix-when-54bits-p (implies (54bits-p x) (equal (54bits-fix x) x)))
Function:
(defun 54bits-equiv$inline (x y) (declare (xargs :guard (and (54bits-p x) (54bits-p y)))) (equal (54bits-fix x) (54bits-fix y)))
Theorem:
(defthm 54bits-equiv-is-an-equivalence (and (booleanp (54bits-equiv x y)) (54bits-equiv x x) (implies (54bits-equiv x y) (54bits-equiv y x)) (implies (and (54bits-equiv x y) (54bits-equiv y z)) (54bits-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm 54bits-equiv-implies-equal-54bits-fix-1 (implies (54bits-equiv x x-equiv) (equal (54bits-fix x) (54bits-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm 54bits-fix-under-54bits-equiv (54bits-equiv (54bits-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))