Created
April 23, 2015 00:42
-
-
Save LeifW/174bd2ea0e0a352094ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Data.Fin | |
| record DivMod : (dividend, divisor : Nat) -> Type where | |
| result : (quotient : Nat) -> | |
| (remainder : Fin divisor) -> | |
| (property : dividend = finToNat remainder + quotient * divisor) -> | |
| DivMod dividend divisor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment