| 1 |
\documentclass[12pt]{report} |
| 2 |
\usepackage[utf8x]{inputenc} |
| 3 |
|
| 4 |
%Warning: tipa declares many non-standard macros used by utf8x to |
| 5 |
%interpret utf8 characters but extra packages might have to be added |
| 6 |
%such as "textgreek" for Greek letters not already in tipa |
| 7 |
%or "stmaryrd" for mathematical symbols. |
| 8 |
%Utf8 codes missing a LaTeX interpretation can be defined by using |
| 9 |
%\DeclareUnicodeCharacter{code}{interpretation}. |
| 10 |
%Use coqdoc's option -p to add new packages or declarations. |
| 11 |
\usepackage{tipa} |
| 12 |
|
| 13 |
\usepackage[T1]{fontenc} |
| 14 |
\usepackage{fullpage} |
| 15 |
\usepackage{coqdoc} |
| 16 |
\usepackage{amsmath,amssymb} |
| 17 |
\usepackage{url} |
| 18 |
\begin{document} |
| 19 |
\coqlibrary{Coqdoc.links}{Library }{Coqdoc.links} |
| 20 |
|
| 21 |
\begin{coqdoccode} |
| 22 |
\end{coqdoccode} |
| 23 |
Various checks for coqdoc |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
\begin{itemize} |
| 28 |
\item symbols should not be inlined in string g |
| 29 |
|
| 30 |
\item links to both kinds of notations in a' should work to the right notation |
| 31 |
|
| 32 |
\item with utf8 option, forall must be unicode |
| 33 |
|
| 34 |
\item splitting between symbols and ident should be correct in a' and c |
| 35 |
|
| 36 |
\item ``..'' should be rendered correctly |
| 37 |
|
| 38 |
\end{itemize} |
| 39 |
|
| 40 |
\begin{coqdoccode} |
| 41 |
\coqdocemptyline |
| 42 |
\coqdocnoindent |
| 43 |
\coqdockw{Definition} \coqdef{Coqdoc.links.a}{a}{\coqdocdefinition{a}} (\coqdef{Coqdoc.links.b:1}{b}{\coqdocbinder{b}}: \coqexternalref{nat}{http://coq.inria.fr/stdlib/Corelib.Init.Datatypes}{\coqdocinductive{nat}}) := \coqref{Coqdoc.links.b:1}{\coqdocvariable{b}}.\coqdoceol |
| 44 |
\coqdocemptyline |
| 45 |
\coqdocnoindent |
| 46 |
\coqdockw{Definition} \coqdef{Coqdoc.links.f}{f}{\coqdocdefinition{f}} := \coqdockw{\ensuremath{\forall}} \coqdef{Coqdoc.links.C:2}{C}{\coqdocbinder{C}}:\coqdockw{Prop}, \coqref{Coqdoc.links.C:2}{\coqdocvariable{C}}.\coqdoceol |
| 47 |
\coqdocemptyline |
| 48 |
\coqdocnoindent |
| 49 |
\coqdockw{Notation} \coqdef{Coqdoc.links.:::x '++' x}{"}{"}n ++ m" := (\coqexternalref{plus}{http://coq.inria.fr/stdlib/Corelib.Init.Peano}{\coqdocabbreviation{plus}} \coqdocvar{n} \coqdocvar{m}).\coqdoceol |
| 50 |
\coqdocemptyline |
| 51 |
\coqdocnoindent |
| 52 |
\coqdockw{Notation} \coqdef{Coqdoc.links.:::x '++' x}{"}{"}n ++ m" := (\coqexternalref{mult}{http://coq.inria.fr/stdlib/Corelib.Init.Peano}{\coqdocabbreviation{mult}} \coqdocvar{n} \coqdocvar{m}). \coqdocemptyline |
| 53 |
\coqdocnoindent |
| 54 |
\coqdockw{Notation} \coqdef{Coqdoc.links.:::x '**' x}{"}{"}n ** m" := (\coqexternalref{plus}{http://coq.inria.fr/stdlib/Corelib.Init.Peano}{\coqdocabbreviation{plus}} \coqdocvar{n} \coqdocvar{m}) (\coqdoctac{at} \coqdockw{level} 60).\coqdoceol |
| 55 |
\coqdocemptyline |
| 56 |
\coqdocnoindent |
| 57 |
\coqdockw{Notation} \coqdef{Coqdoc.links.:::x 'xE2x96xB5' x}{"}{"}n ▵ m" := (\coqexternalref{plus}{http://coq.inria.fr/stdlib/Corelib.Init.Peano}{\coqdocabbreviation{plus}} \coqdocvar{n} \coqdocvar{m}) (\coqdoctac{at} \coqdockw{level} 60).\coqdoceol |
| 58 |
\coqdocemptyline |
| 59 |
\coqdocnoindent |
| 60 |
\coqdockw{Notation} \coqdef{Coqdoc.links.:::x ''' ''' '++' 'x' x}{"}{"}n '\_' ++ 'x' m" := (\coqexternalref{plus}{http://coq.inria.fr/stdlib/Corelib.Init.Peano}{\coqdocabbreviation{plus}} \coqdocvar{n} \coqdocvar{m}) (\coqdoctac{at} \coqdockw{level} 3).\coqdoceol |
| 61 |
\coqdocemptyline |
| 62 |
\coqdocnoindent |
| 63 |
\coqdockw{Inductive} \coqdef{Coqdoc.links.eq}{eq}{\coqdocinductive{eq}} (\coqdef{Coqdoc.links.A:3}{A}{\coqdocbinder{A}}:\coqdockw{Type}) (\coqdef{Coqdoc.links.x:4}{x}{\coqdocbinder{x}}:\coqref{Coqdoc.links.A:3}{\coqdocvariable{A}}) : \coqdocvar{A} \coqexternalref{::type scope:x '->' x}{http://coq.inria.fr/stdlib/Corelib.Init.Notations}{\coqdocnotation{\ensuremath{\rightarrow}}} \coqdockw{Prop} := \coqdef{Coqdoc.links.eq refl}{eq\_refl}{\coqdocconstructor{eq\_refl}} : \coqref{Coqdoc.links.x:4}{\coqdocvariable{x}} \coqref{Coqdoc.links.::type scope:x '=' x ':>' x}{\coqdocnotation{=}} \coqref{Coqdoc.links.x:4}{\coqdocvariable{x}} \coqref{Coqdoc.links.::type scope:x '=' x ':>' x}{\coqdocnotation{:>}}\coqref{Coqdoc.links.A:3}{\coqdocvariable{A}}\coqdoceol |
| 64 |
\coqdocnoindent |
| 65 |
\coqdoceol |
| 66 |
\coqdocnoindent |
| 67 |
\coqdockw{where} \coqdef{Coqdoc.links.::type scope:x '=' x ':>' x}{"}{"}x = y :> A" := (@\coqref{Coqdoc.links.eq:6}{\coqdocinductive{eq}} \coqdocvar{A} \coqdocvar{x} \coqdocvar{y}) : \coqdocvar{type\_scope}.\coqdoceol |
| 68 |
\coqdocemptyline |
| 69 |
\coqdocnoindent |
| 70 |
\coqdockw{Definition} \coqdef{Coqdoc.links.eq0}{eq0}{\coqdocdefinition{eq0}} := 0 \coqref{Coqdoc.links.::type scope:x '=' x ':>' x}{\coqdocnotation{=}} 0 \coqref{Coqdoc.links.::type scope:x '=' x ':>' x}{\coqdocnotation{:>}} \coqexternalref{nat}{http://coq.inria.fr/stdlib/Corelib.Init.Datatypes}{\coqdocinductive{nat}}.\coqdoceol |
| 71 |
\coqdocemptyline |
| 72 |
\coqdocnoindent |
| 73 |
\coqdockw{Notation} \coqdef{Coqdoc.links.:::'(' x 'x23' x ';' '..' ';' x ')'}{"}{"}( x \# y ; .. ; z )" := (\coqexternalref{pair}{http://coq.inria.fr/stdlib/Corelib.Init.Datatypes}{\coqdocconstructor{pair}} .. (\coqexternalref{pair}{http://coq.inria.fr/stdlib/Corelib.Init.Datatypes}{\coqdocconstructor{pair}} \coqdocvar{x} \coqdocvar{y}) .. \coqdocvar{z}).\coqdoceol |
| 74 |
\coqdocemptyline |
| 75 |
\coqdocnoindent |
| 76 |
\coqdockw{Definition} \coqdef{Coqdoc.links.b xCExB1}{b\_α}{\coqdocdefinition{b\_α}} := \coqexternalref{::core scope:'(' x ',' x ',' '..' ',' x ')'}{http://coq.inria.fr/stdlib/Corelib.Init.Datatypes}{\coqdocnotation{(}}\coqref{Coqdoc.links.:::'(' x 'x23' x ';' '..' ';' x ')'}{\coqdocnotation{(}}0\coqref{Coqdoc.links.:::'(' x 'x23' x ';' '..' ';' x ')'}{\coqdocnotation{\#}}0\coqref{Coqdoc.links.:::'(' x 'x23' x ';' '..' ';' x ')'}{\coqdocnotation{;}}0\coqref{Coqdoc.links.:::'(' x 'x23' x ';' '..' ';' x ')'}{\coqdocnotation{)}} \coqexternalref{::core scope:'(' x ',' x ',' '..' ',' x ')'}{http://coq.inria.fr/stdlib/Corelib.Init.Datatypes}{\coqdocnotation{,}} \coqexternalref{::core scope:'(' x ',' x ',' '..' ',' x ')'}{http://coq.inria.fr/stdlib/Corelib.Init.Datatypes}{\coqdocnotation{(}}0 \coqref{Coqdoc.links.:::x '**' x}{\coqdocnotation{**}} 0\coqexternalref{::core scope:'(' x ',' x ',' '..' ',' x ')'}{http://coq.inria.fr/stdlib/Corelib.Init.Datatypes}{\coqdocnotation{))}}.\coqdoceol |
| 77 |
\coqdocemptyline |
| 78 |
\coqdocnoindent |
| 79 |
\coqdockw{Notation} \coqdef{Coqdoc.links.h}{h}{\coqdocabbreviation{h}} := \coqref{Coqdoc.links.a}{\coqdocdefinition{a}}.\coqdoceol |
| 80 |
\coqdocemptyline |
| 81 |
\coqdocindent{1.00em} |
| 82 |
\coqdockw{Section} \coqdef{Coqdoc.links.test}{test}{\coqdocsection{test}}.\coqdoceol |
| 83 |
\coqdocemptyline |
| 84 |
\coqdocindent{2.00em} |
| 85 |
\coqdockw{Variables} \coqdef{Coqdoc.links.test.b'}{b'}{\coqdocvariable{b'}} \coqdef{Coqdoc.links.test.b2}{b2}{\coqdocvariable{b2}}: \coqexternalref{nat}{http://coq.inria.fr/stdlib/Corelib.Init.Datatypes}{\coqdocinductive{nat}}.\coqdoceol |
| 86 |
\coqdocemptyline |
| 87 |
\coqdocindent{2.00em} |
| 88 |
\coqdockw{Notation} \coqdef{Coqdoc.links.test.::my scope:x '+' x}{"}{"}n + m" := (\coqdocvar{n} \coqref{Coqdoc.links.:::x 'xE2x96xB5' x}{\coqdocnotation{▵}} \coqdocvar{m}) : \coqdocvar{my\_scope}.\coqdoceol |
| 89 |
\coqdocemptyline |
| 90 |
\coqdocindent{2.00em} |
| 91 |
\coqdockw{Delimit} \coqdockw{Scope} \coqdocvar{my\_scope} \coqdockw{with} \coqdocvar{my}.\coqdoceol |
| 92 |
\coqdocemptyline |
| 93 |
\coqdocindent{2.00em} |
| 94 |
\coqdockw{Notation} \coqdef{Coqdoc.links.l}{l}{\coqdocabbreviation{l}} := 0.\coqdoceol |
| 95 |
\coqdocemptyline |
| 96 |
\coqdocindent{2.00em} |
| 97 |
\coqdockw{Definition} \coqdef{Coqdoc.links.xCExB1}{α}{\coqdocdefinition{α}} := (0 \coqref{Coqdoc.links.test.::my scope:x '+' x}{\coqdocnotation{+}} \coqref{Coqdoc.links.l}{\coqdocabbreviation{l}})\%\coqdocvar{my}.\coqdoceol |
| 98 |
\coqdocemptyline |
| 99 |
\coqdocindent{2.00em} |
| 100 |
\coqdockw{Definition} \coqdef{Coqdoc.links.a'}{a'}{\coqdocdefinition{a'}} \coqdef{Coqdoc.links.b:11}{b}{\coqdocbinder{b}} := \coqref{Coqdoc.links.test.b'}{\coqdocvariable{b'}}\coqref{Coqdoc.links.:::x '++' x}{\coqdocnotation{++}}0\coqref{Coqdoc.links.:::x '++' x}{\coqdocnotation{++}}\coqref{Coqdoc.links.test.b2}{\coqdocvariable{b2}} \coqref{Coqdoc.links.:::x ''' ''' '++' 'x' x}{\coqdocnotation{\_}} \coqref{Coqdoc.links.:::x ''' ''' '++' 'x' x}{\coqdocnotation{++}}\coqref{Coqdoc.links.:::x ''' ''' '++' 'x' x}{\coqdocnotation{x}} \coqref{Coqdoc.links.b:11}{\coqdocvariable{b}}.\coqdoceol |
| 101 |
\coqdocemptyline |
| 102 |
\coqdocindent{2.00em} |
| 103 |
\coqdockw{Definition} \coqdef{Coqdoc.links.c}{c}{\coqdocdefinition{c}} := \coqexternalref{::type scope:'x7B' x 'x7D' '+' 'x7B' x 'x7D'}{http://coq.inria.fr/stdlib/Corelib.Init.Specif}{\coqdocnotation{\{}}\coqexternalref{True}{http://coq.inria.fr/stdlib/Corelib.Init.Logic}{\coqdocinductive{True}}\coqexternalref{::type scope:'x7B' x 'x7D' '+' 'x7B' x 'x7D'}{http://coq.inria.fr/stdlib/Corelib.Init.Specif}{\coqdocnotation{\}+\{}}\coqexternalref{True}{http://coq.inria.fr/stdlib/Corelib.Init.Logic}{\coqdocinductive{True}}\coqexternalref{::type scope:'x7B' x 'x7D' '+' 'x7B' x 'x7D'}{http://coq.inria.fr/stdlib/Corelib.Init.Specif}{\coqdocnotation{\}}}.\coqdoceol |
| 104 |
\coqdocemptyline |
| 105 |
\coqdocindent{2.00em} |
| 106 |
\coqdockw{Definition} \coqdef{Coqdoc.links.d}{d}{\coqdocdefinition{d}} := (1\coqexternalref{::nat scope:x '+' x}{http://coq.inria.fr/stdlib/Corelib.Init.Peano}{\coqdocnotation{+}}2)\%\coqdocvar{nat}.\coqdoceol |
| 107 |
\coqdocemptyline |
| 108 |
\coqdocindent{2.00em} |
| 109 |
\coqdockw{Lemma} \coqdef{Coqdoc.links.e}{e}{\coqdoclemma{e}} : \coqexternalref{nat}{http://coq.inria.fr/stdlib/Corelib.Init.Datatypes}{\coqdocinductive{nat}} \coqexternalref{::type scope:x '+' x}{http://coq.inria.fr/stdlib/Corelib.Init.Datatypes}{\coqdocnotation{+}} \coqexternalref{nat}{http://coq.inria.fr/stdlib/Corelib.Init.Datatypes}{\coqdocinductive{nat}}.\coqdoceol |
| 110 |
\coqdocindent{2.00em} |
| 111 |
\coqdocvar{Admitted}.\coqdoceol |
| 112 |
\coqdocemptyline |
| 113 |
\coqdocindent{1.00em} |
| 114 |
\coqdockw{End} \coqref{Coqdoc.links.test}{\coqdocsection{test}}.\coqdoceol |
| 115 |
\coqdocemptyline |
| 116 |
\coqdocindent{1.00em} |
| 117 |
\coqdockw{Section} \coqdef{Coqdoc.links.test2}{test2}{\coqdocsection{test2}}.\coqdoceol |
| 118 |
\coqdocemptyline |
| 119 |
\coqdocindent{2.00em} |
| 120 |
\coqdockw{Variables} \coqdef{Coqdoc.links.test2.b'}{b'}{\coqdocvariable{b'}}: \coqexternalref{nat}{http://coq.inria.fr/stdlib/Corelib.Init.Datatypes}{\coqdocinductive{nat}}.\coqdoceol |
| 121 |
\coqdocemptyline |
| 122 |
\coqdocindent{2.00em} |
| 123 |
\coqdockw{Section} \coqdef{Coqdoc.links.test2.test}{test}{\coqdocsection{test}}.\coqdoceol |
| 124 |
\coqdocemptyline |
| 125 |
\coqdocindent{3.00em} |
| 126 |
\coqdockw{Variables} \coqdef{Coqdoc.links.test2.test.b2}{b2}{\coqdocvariable{b2}}: \coqexternalref{nat}{http://coq.inria.fr/stdlib/Corelib.Init.Datatypes}{\coqdocinductive{nat}}.\coqdoceol |
| 127 |
\coqdocemptyline |
| 128 |
\coqdocindent{3.00em} |
| 129 |
\coqdockw{Definition} \coqdef{Coqdoc.links.a''}{a'{}'}{\coqdocdefinition{a'{}'}} \coqdef{Coqdoc.links.b:16}{b}{\coqdocbinder{b}} := \coqref{Coqdoc.links.test2.b'}{\coqdocvariable{b'}} \coqref{Coqdoc.links.:::x '++' x}{\coqdocnotation{++}} \coqexternalref{O}{http://coq.inria.fr/stdlib/Corelib.Init.Datatypes}{\coqdocconstructor{O}} \coqref{Coqdoc.links.:::x '++' x}{\coqdocnotation{++}} \coqref{Coqdoc.links.test2.test.b2}{\coqdocvariable{b2}} \coqref{Coqdoc.links.:::x ''' ''' '++' 'x' x}{\coqdocnotation{\_}} \coqref{Coqdoc.links.:::x ''' ''' '++' 'x' x}{\coqdocnotation{++}} \coqref{Coqdoc.links.:::x ''' ''' '++' 'x' x}{\coqdocnotation{x}} \coqref{Coqdoc.links.b:16}{\coqdocvariable{b}} \coqexternalref{::nat scope:x '+' x}{http://coq.inria.fr/stdlib/Corelib.Init.Peano}{\coqdocnotation{+}} \coqref{Coqdoc.links.h}{\coqdocabbreviation{h}} 0.\coqdoceol |
| 130 |
\coqdocemptyline |
| 131 |
\coqdocindent{2.00em} |
| 132 |
\coqdockw{End} \coqref{Coqdoc.links.test2.test}{\coqdocsection{test}}.\coqdoceol |
| 133 |
\coqdocemptyline |
| 134 |
\coqdocindent{1.00em} |
| 135 |
\coqdockw{End} \coqref{Coqdoc.links.test2}{\coqdocsection{test2}}.\coqdoceol |
| 136 |
\coqdocemptyline |
| 137 |
\end{coqdoccode} |
| 138 |
skip |
| 139 |
|
| 140 |
skip |
| 141 |
|
| 142 |
skip |
| 143 |
|
| 144 |
skip |
| 145 |
|
| 146 |
skip |
| 147 |
|
| 148 |
skip |
| 149 |
|
| 150 |
skip |
| 151 |
|
| 152 |
skip |
| 153 |
|
| 154 |
skip |
| 155 |
|
| 156 |
skip |
| 157 |
|
| 158 |
skip |
| 159 |
|
| 160 |
skip |
| 161 |
|
| 162 |
skip |
| 163 |
|
| 164 |
skip |
| 165 |
\begin{coqdoccode} |
| 166 |
\coqdocemptyline |
| 167 |
\end{coqdoccode} |
| 168 |
\end{document} |