J5S73FCKLNL2LIZW3SWYM7ADQ4K7QQMP24YA6DPLMO2UOYSTBPCQC
f' : Nat -> Nat -> Ordering
f' i = contra . e' i
scan : Ordering -> Nat -> Maybe Nat
scan LT Z = Nothing
scan LT (S x) = Just x
scan EQ x = Just $ x
scan GT x = Just $ S $ x
(+) : Ordering -> Nat -> Maybe Nat
LT + Z = Nothing
LT + (S x) = Just x
EQ + x = Just $ x
GT + x = Just $ S $ x