I’d like to know if
gap> IsBool(not(p) or q)=true;
is the only code for checking the trueness of a conditional statement p->q or not? I couldn’t find the proper code (if it exists) in GAP.
Thanks for any hint!
I’d like to know if
gap> IsBool(not(p) or q)=true;
is the only code for checking the trueness of a conditional statement p->q or not? I couldn’t find the proper code (if it exists) in GAP.
Thanks for any hint!
The code given in the question is not correct.
IsBoolchecks the type of its argument, so we haveTherefore,
IsBool(not(p) or q)=truewill be equal totruefor anyp, q in [true,false].The correct code is just
(also note that there is no need in
()aroundp):