Last active
August 29, 2015 14:12
-
-
Save puffnfresh/3739b6bd857c0e5459e2 to your computer and use it in GitHub Desktop.
This file contains 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
data First : Nat -> Type where | |
MkFirst : (n : Fin 10) -> First (finToNat n) | |
data Second : Nat -> Type where | |
MkSecond : (f : First m) -> (n : Fin m) -> Second (finToNat n) | |
MkNoSecond : (f : First 9) -> Second 0 | |
hit8 : Second 1 | |
hit8 = MkSecond (MkFirst 8) (FS FZ) | |
strike : Second 0 | |
strike = MkNoSecond (MkFirst 9) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome; thank you!