Leo boolean conjunction operation.
(op-and left right) → result
Function:
(defun op-and (left right) (declare (xargs :guard (and (valuep left) (valuep right)))) (let ((__function__ 'op-and)) (declare (ignorable __function__)) (if (and (value-case left :bool) (value-case right :bool)) (value-bool (and (value-bool->get left) (value-bool->get right))) (reserrf (list :op-and (value-fix left) (value-fix right))))))
Theorem:
(defthm value-resultp-of-op-and (b* ((result (op-and left right))) (value-resultp result)) :rule-classes :rewrite)
Theorem:
(defthm op-and-of-value-fix-left (equal (op-and (value-fix left) right) (op-and left right)))
Theorem:
(defthm op-and-value-equiv-congruence-on-left (implies (value-equiv left left-equiv) (equal (op-and left right) (op-and left-equiv right))) :rule-classes :congruence)
Theorem:
(defthm op-and-of-value-fix-right (equal (op-and left (value-fix right)) (op-and left right)))
Theorem:
(defthm op-and-value-equiv-congruence-on-right (implies (value-equiv right right-equiv) (equal (op-and left right) (op-and left right-equiv))) :rule-classes :congruence)