Skip to content

Commit

Permalink
Update libs/prelude/Prelude/Types.idr
Browse files Browse the repository at this point in the history
Co-authored-by: Mathew Polzin <[email protected]>
  • Loading branch information
Z-snails and mattpolzin authored Jan 1, 2024
1 parent 504a444 commit da9880d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/prelude/Prelude/Types.idr
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ nonNegativeIntegerToNat :
nonNegativeIntegerToNat 0 = Z
nonNegativeIntegerToNat x =
let -- x >= 0 and x != 0
-- so x >= 0 so x - 1 >= 0
-- so x > 0 so x - 1 >= 0
prf = believe_me Refl
in S $ nonNegativeIntegerToNat {prf}
$ assert_smaller x $ x - 1
Expand Down

0 comments on commit da9880d

Please sign in to comment.