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