Logical conjunction
(boolean-and operand-left operand-right) → result
Function:
(defun boolean-and (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 (and x y))))
Theorem:
(defthm boolean-valuep-of-boolean-and (b* ((result (boolean-and operand-left operand-right))) (boolean-valuep result)) :rule-classes :rewrite)
Theorem:
(defthm boolean-and-commutative (equal (boolean-and x y) (boolean-and y x)))
Theorem:
(defthm boolean-and-of-boolean-value-fix-operand-left (equal (boolean-and (boolean-value-fix operand-left) operand-right) (boolean-and operand-left operand-right)))
Theorem:
(defthm boolean-and-boolean-value-equiv-congruence-on-operand-left (implies (boolean-value-equiv operand-left operand-left-equiv) (equal (boolean-and operand-left operand-right) (boolean-and operand-left-equiv operand-right))) :rule-classes :congruence)
Theorem:
(defthm boolean-and-of-boolean-value-fix-operand-right (equal (boolean-and operand-left (boolean-value-fix operand-right)) (boolean-and operand-left operand-right)))
Theorem:
(defthm boolean-and-boolean-value-equiv-congruence-on-operand-right (implies (boolean-value-equiv operand-right operand-right-equiv) (equal (boolean-and operand-left operand-right) (boolean-and operand-left operand-right-equiv))) :rule-classes :congruence)