Check if a value is arithmetic [C:6.2.5/18].
Function:
(defun value-arithmeticp (val) (declare (xargs :guard (valuep val))) (let ((__function__ 'value-arithmeticp)) (declare (ignorable __function__)) (value-realp val)))
Theorem:
(defthm booleanp-of-value-arithmeticp (b* ((yes/no (value-arithmeticp val))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm value-arithmeticp-of-value-fix-val (equal (value-arithmeticp (value-fix val)) (value-arithmeticp val)))
Theorem:
(defthm value-arithmeticp-value-equiv-congruence-on-val (implies (value-equiv val val-equiv) (equal (value-arithmeticp val) (value-arithmeticp val-equiv))) :rule-classes :congruence)