Apply
(ge-values val1 val2) → resval
It is an error if the values are not real; we do not support comparison of pointers yet.
Function:
(defun ge-values (val1 val2) (declare (xargs :guard (and (valuep val1) (valuep val2)))) (let ((__function__ 'ge-values)) (declare (ignorable __function__)) (if (and (value-realp val1) (value-realp val2)) (ge-real-values val1 val2) (error (list :ge-mistype :required :real :real :supplied (value-fix val1) (value-fix val2))))))
Theorem:
(defthm value-resultp-of-ge-values (b* ((resval (ge-values val1 val2))) (value-resultp resval)) :rule-classes :rewrite)
Theorem:
(defthm ge-values-of-value-fix-val1 (equal (ge-values (value-fix val1) val2) (ge-values val1 val2)))
Theorem:
(defthm ge-values-value-equiv-congruence-on-val1 (implies (value-equiv val1 val1-equiv) (equal (ge-values val1 val2) (ge-values val1-equiv val2))) :rule-classes :congruence)
Theorem:
(defthm ge-values-of-value-fix-val2 (equal (ge-values val1 (value-fix val2)) (ge-values val1 val2)))
Theorem:
(defthm ge-values-value-equiv-congruence-on-val2 (implies (value-equiv val2 val2-equiv) (equal (ge-values val1 val2) (ge-values val1 val2-equiv))) :rule-classes :congruence)