>>> import z3
>>> X = z3.BitVec('X', 32)
>>> z3.prove( X^18 == ((X|(~44)) & (X^62)) + (X&44) )
proved
x^18 is equivalent to ((x|(~44))&(x^62))+(x&44) ??
How could this be possible?
I want to know detailed information about proving this formula...
You could display the (intermediate) bit vectors as symbolic sets of 8 bits each:
Six bits would suffice, as 62 can be expressed with six bits.
The addition step cannot produce carry bits, as all corresponding bit pairs have one zero bit each. The other operations only have a bitwise effect. Therefore, one could analyze the equivalence bit position by bit position.
The final two table rows show that the expressions are in fact equivalent.