Created
November 1, 2014 23:20
-
-
Save fatho/51a5ae5ed84232af82c4 to your computer and use it in GitHub Desktop.
Lets play a game...
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 Path e (i :: Nat) (j :: Nat) where | |
PNil :: Path e i i | |
PNext :: e i j -> Path e j k -> Path e i k | |
infixr 9 ~: | |
(~:) :: e i j -> Path e j k -> Path e i k | |
(~:) = PNext | |
data E (i :: Nat) (j :: Nat) where | |
EUp :: E i (3 * i + 1) | |
EDown :: (i ~ (2 * j)) => E i j | |
maze :: Path E 871 1 | |
maze = _ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment