Please see attached. Any insights would be appreciated.
Thank you!
–Mark
Please see attached. Any insights would be appreciated.
Thank you!
–Mark
It’s a precedence issue: as written, the SameTest function is
TautologyQ[Function[Equivalent[Slot[1], Slot[2]]]]
which just gives False.
Try
In[10]:= Union[conjunct2, SameTest -> (TautologyQ[Equivalent[#1, #2]] &)]
Out[10]= {False, True, x, y, x && y, x && ! y, y && ! x, ! x && ! y, ! x, ! y, ! (x && y), ! (x \[Xor] y),
x || y, x || ! y, ! x || y, x \[Xor] y}
Thank you.
I thought I had explored the position of the &; obviously I hadn’t done it sufficiently.
I need a deeper understanding of precedence in this context.
I appreciate your prompt response.
– Mark