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