module Double(double,coin,even) where import Data.Nat import Test.Prop double x = add x x coin x = x ? S x even Z = True even (S Z) = False even (S (S n)) = even n evendoublecoin x = always (even (double (coin x)))