Created
April 26, 2017 15:02
-
-
Save infinisil/0ca06c10bfe64a627b53c124a8aeb1fe 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.Vect | |
data Choice : (n : Nat) -> (k : Nat) -> Type | |
Arrows' : Vect n Type -> Type -> Type | |
Arrows' [] x = x | |
Arrows' (y :: xs) x = y -> Arrows' xs x | |
inc : (n : Nat) -> Vect n Nat | |
inc Z = [] | |
inc n@(S k) = n :: inc k | |
Choose : Nat -> Nat -> Type | |
Choose n k = Arrows' (map Fin (inc n)) (Choice n k) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment