Mercurial > cpdt > repo
diff src/Generic.v @ 350:ad315efc3b6b
Stub out new chapter
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Wed, 26 Oct 2011 11:19:52 -0400 |
parents | d5787b70cf48 |
children | 6cc9a3bbc2c6 |
line wrap: on
line diff
--- a/src/Generic.v Tue Oct 25 10:56:00 2011 -0400 +++ b/src/Generic.v Wed Oct 26 11:19:52 2011 -0400 @@ -77,7 +77,7 @@ Definition constructorDenote (c : constructor) := nonrecursive c -> ilist T (recursive c) -> T. - (** We write that a constructor is represented as a function returning a [T]. Such a function takes two arguments, which pack together the non-recursive and recursive arguments of the constructor. We represent a tuple of all recursive arguments using the length-indexed list type [ilist] that we met in Chapter 7. *) + (** We write that a constructor is represented as a function returning a [T]. Such a function takes two arguments, which pack together the non-recursive and recursive arguments of the constructor. We represent a tuple of all recursive arguments using the length-indexed list type [ilist] that we met in Chapter 8. *) Definition datatypeDenote := hlist constructorDenote. (** Finally, the evidence for type [T] is a heterogeneous list, including a constructor denotation for every constructor encoding in a datatype encoding. Recall that, since we are inside a section binding [T] as a variable, [constructorDenote] is automatically parameterized by [T]. *)