Examples from John Harrison's "Handbook of Practical Logic and Automated Reasoning", ported to Haskell