Binary arithmetic in Idris