Get the get field from a value-u64.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun value-u64->get$inline (x) (declare (xargs :guard (valuep x))) (declare (xargs :guard (equal (value-kind x) :u64))) (let ((__function__ 'value-u64->get)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (value-kind x) :u64) x))) (acl2::ubyte64-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm ubyte64p-of-value-u64->get (b* ((get (value-u64->get$inline x))) (ubyte64p get)) :rule-classes :rewrite)
Theorem:
(defthm value-u64->get$inline-of-value-fix-x (equal (value-u64->get$inline (value-fix x)) (value-u64->get$inline x)))
Theorem:
(defthm value-u64->get$inline-value-equiv-congruence-on-x (implies (value-equiv x x-equiv) (equal (value-u64->get$inline x) (value-u64->get$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm value-u64->get-when-wrong-kind (implies (not (equal (value-kind x) :u64)) (equal (value-u64->get x) (acl2::ubyte64-fix nil))))