@@ -191,13 +191,10 @@ maximum Z m = m
191maximum (S n) Z = S n
191maximum (S n) Z = S n
192maximum (S n) (S m) = S (maximum n m)
192maximum (S n) (S m) = S (maximum n m)
194−||| Tail recursive cast Nat to Int
194+||| Cast Nat to Int
195||| Note that this can overflow
195||| Note that this can overflow
196toIntNat : Nat -> Int
196toIntNat : Nat -> Int
197−toIntNat n = toIntNat' n 0 where
197+toIntNat n = prim__truncBigInt_Int (toIntegerNat n)
198− toIntNat' : Nat -> Int -> Int
200− toIntNat' (S n) x = toIntNat' n (x + 1)
202(-) : (m : Nat) -> (n : Nat) -> {auto smaller : LTE n m} -> Nat
199(-) : (m : Nat) -> (n : Nat) -> {auto smaller : LTE n m} -> Nat
203(-) m n {smaller} = minus m n
200(-) m n {smaller} = minus m n