Logical inclusive disjunction
(boolean-ior operand-left operand-right) → result
Function:
(defun boolean-ior (operand-left operand-right) (declare (xargs :guard (and (boolean-valuep operand-left) (boolean-valuep operand-right)))) (b* ((x (boolean-value->bool operand-left)) (y (boolean-value->bool operand-right))) (boolean-value (or x y))))
Theorem:
(defthm boolean-valuep-of-boolean-ior (b* ((result (boolean-ior operand-left operand-right))) (boolean-valuep result)) :rule-classes :rewrite)
Theorem:
(defthm boolean-ior-commutative (equal (boolean-ior x y) (boolean-ior y x)))
Theorem:
(defthm boolean-ior-of-boolean-value-fix-operand-left (equal (boolean-ior (boolean-value-fix operand-left) operand-right) (boolean-ior operand-left operand-right)))
Theorem:
(defthm boolean-ior-boolean-value-equiv-congruence-on-operand-left (implies (boolean-value-equiv operand-left operand-left-equiv) (equal (boolean-ior operand-left operand-right) (boolean-ior operand-left-equiv operand-right))) :rule-classes :congruence)
Theorem:
(defthm boolean-ior-of-boolean-value-fix-operand-right (equal (boolean-ior operand-left (boolean-value-fix operand-right)) (boolean-ior operand-left operand-right)))
Theorem:
(defthm boolean-ior-boolean-value-equiv-congruence-on-operand-right (implies (boolean-value-equiv operand-right operand-right-equiv) (equal (boolean-ior operand-left operand-right) (boolean-ior operand-left operand-right-equiv))) :rule-classes :congruence)