Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
lambda p:propcalc.formula(r(r(r(r(r(p,"'","0"),r("implies","->"),r("or","|"),r("and","&"),r("not","~",p)))))).is_tautology()
r=lambdafroms,a,b:s.replace(a,b)re import sub as r