[GHC] #13038: implementation of Modus ponens and Modus tollens