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