diff options
author | 2015-11-06 19:49:05 +0100 | |
---|---|---|
committer | 2015-12-10 09:35:17 +0100 | |
commit | 793a5842cf7adeff60c380738a7d4bd3430e926a (patch) | |
tree | f0057f7016d18079265e7e2354dc565de16a46d8 | |
parent | 59b4ea72a6896e05c4b6094b10b9a294b0322e53 (diff) |
ENH: existing example was changed so that it is now linked to the results shown in the previous example
-rw-r--r-- | doc/refman/RefMan-cic.tex | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/doc/refman/RefMan-cic.tex b/doc/refman/RefMan-cic.tex index edf7840fd..d512df3b7 100644 --- a/doc/refman/RefMan-cic.tex +++ b/doc/refman/RefMan-cic.tex @@ -1651,13 +1651,17 @@ only constructors of $I$. \end{description} \paragraph{Example.} -For \List\ and \haslength\ the typing rules for the {\tt match} expression -are (writing just $t:M$ instead of \WTEG{t}{M}, the global environment and -local context being the same in all the judgments). -\[\frac{l:\ListA~~P:\ListA\ra s~~~f_1:(P~(\Nil~A))~~ - f_2:\forall a:A, \forall l:\ListA, (P~(\cons~A~a~l))} - {\Case{P}{l}{f_1~|~f_2}:(P~l)}\] +Below is a typing rule for the term shown in the previous example: +\inference{ + \frac{% + \WTEG{t}{(\List~\nat)}~~~~% + \WTEG{P}{B}~~~~% + \compat{(\List~\nat)}{B}~~~~% + \WTEG{f_1}{\CI{(\Nil~\nat)}{P}}~~~~% + \WTEG{f_2}{\CI{(\cons~\nat)}{P}}% + } +{\WTEG{\Case{P}{t}{f_1|f_2}}{(P~t)}}} \[\frac{ \begin{array}[b]{@{}c@{}} |