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