No, you cannot distribute AND or OR over binary operators.
Explanation
Let P be a sentence, where P: (A + B) & C = A & C + B & C
take A = 2, B = 3 => A + B = 5.
We must prove that A & C + B & C! = (A + B) & C
A = 2 = 010
B = 3 = 011
let 010 & C = x, where x is some integer whose value is the result of bitwise AND 010 and C
similar to 011 & C = y, where y is some integer whose value is the resulting bitwise AND of 011 and C
since we cannot say that P holds for all C in the set of natural numbers ({0,1, ...}), therefore P is false.
In this case, take C = 2 = 010
x = 010 and 010 = 010 = 2
y = 011 and 010 = 010 = 2
5 & ββ2 = 101 and 010 = 000 = 0
clearly x + y! = 0, which means (A + B) & C! = A & C + B & C.
Therefore, it is proved!
source share