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