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