diff options
| author | Timothy Bourke | 2018-07-21 18:11:25 +0200 |
|---|---|---|
| committer | Timothy Bourke | 2018-07-21 18:14:07 +0200 |
| commit | 6bce3de10ec1cd18c60e1ce3b5af33350ec4ac86 (patch) | |
| tree | fee971fa2bdb837e87fb93fdf79b4bae43c80184 /doc | |
| parent | 405355a46292aff2ba2e034cbaee56ccf245b54d (diff) | |
Docs: Fix p values in CIC Inductive Defs examples
It seems that p is a natural number, so why not write it as 0 rather
than the empty list for tree and forest?
And, if I understand correctly, odd and even have p = 0 and
Arr(even) = Arr(odd) = 1.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/sphinx/language/cic.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/sphinx/language/cic.rst b/doc/sphinx/language/cic.rst index 98e81ebc65..9f932ae78f 100644 --- a/doc/sphinx/language/cic.rst +++ b/doc/sphinx/language/cic.rst @@ -745,7 +745,7 @@ the sort of the inductive type t (not to be confused with :math:`\Sort` which is is: .. math:: - \ind{~}{\left[\begin{array}{rcl}\tree&:&\Set\\\forest&:&\Set\end{array}\right]} + \ind{0}{\left[\begin{array}{rcl}\tree&:&\Set\\\forest&:&\Set\end{array}\right]} {\left[\begin{array}{rcl} \node &:& \forest → \tree\\ \emptyf &:& \forest\\ @@ -766,7 +766,7 @@ the sort of the inductive type t (not to be confused with :math:`\Sort` which is The declaration for a mutual inductive definition of even and odd is: .. math:: - \ind{1}{\left[\begin{array}{rcl}\even&:&\nat → \Prop \\ + \ind{0}{\left[\begin{array}{rcl}\even&:&\nat → \Prop \\ \odd&:&\nat → \Prop \end{array}\right]} {\left[\begin{array}{rcl} \evenO &:& \even~0\\ |
