@@ -307,11 +307,12 @@ bitSet : Fin n -> Bits n -> Bool
307bitSet n x = bitsAnd (intToBits 1 `bitsShl` intToBits (cast (finToNat n))) x /= intToBits 0
307bitSet n x = bitsAnd (intToBits 1 `bitsShl` intToBits (cast (finToNat n))) x /= intToBits 0
310−bitsToStr : Bits (S n) -> String
310+bitsToStr : Bits n -> String
311−bitsToStr {n=n} x = helper (the (Fin (S n)) last) x
311+bitsToStr x = helper last x
313 %assert_total
313 %assert_total
314− helper : Fin (S n) -> Bits (S n) -> String
314+ helper : Fin (S n) -> Bits n -> String
315 helper fO _ = ""
315 helper fO _ = ""
316− helper (fS x) b = (if bitSet (weaken x) b then "1" else "0")
317+ (if bitSet x b then "1" else "0")
317− ++ helper (weaken x) b
318+ ++ helper (weaken x) b