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