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