Last active
March 4, 2016 20:22
-
-
Save mvr/db2288afad6f9e2ba5ca 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
module Test | |
data Chain : Nat -> Type where | |
MkChain : List (String, Nat) -> Chain n | |
data Map : Nat -> Type where | |
MkMap : (Chain n -> Chain (n + d)) -> Map d | |
compose : Map df -> Map dg -> Map (dg + df) | |
compose (MkMap f) (MkMap g) = MkMap go | |
where go ch = f (g ch) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment