| author | wenzelm |
| Tue, 06 May 2008 00:13:01 +0200 | |
| changeset 26789 | fc6d5fa0ca3c |
| parent 26783 | 1651ff6a34b5 |
| child 26863 | cc779d3da712 |
| permissions | -rw-r--r-- |
| 7050 | 1 |
|
2 |
%% $Id$ |
|
| 7138 | 3 |
%% |
4 |
%% Isar language elements |
|
5 |
%% |
|
| 7050 | 6 |
|
7 |
\usepackage{ifthen}
|
|
8 |
||
| 26745 | 9 |
\newcommand{\indexdef}[3]%
|
10 |
{\ifthenelse{\equal{}{#1}}{\index{#3 (#2)|bold}}{\index{#3 (#1\ #2)|bold}}}
|
|
11 |
\newcommand{\indexref}[3]{\ifthenelse{\equal{}{#1}}{\index{#3 (#2)}}{\index{#3 (#1\ #2)}}}
|
|
| 7138 | 12 |
|
| 26745 | 13 |
\newcommand{\indexoutertoken}[1]{\indexdef{}{syntax}{#1}}
|
14 |
\newcommand{\indexouternonterm}[1]{\indexdef{}{syntax}{#1}}
|
|
15 |
\newcommand{\indexisarcmd}[1]{\indexdef{}{command}{#1}}
|
|
16 |
\newcommand{\indexisarelem}[1]{\indexdef{}{element}{#1}}
|
|
17 |
\newcommand{\indexisarmeth}[1]{\indexdef{}{method}{#1}}
|
|
18 |
\newcommand{\indexisaratt}[1]{\indexdef{}{attribute}{#1}}
|
|
19 |
\newcommand{\indexisarthm}[1]{\indexdef{}{fact}{#1}}
|
|
20 |
\newcommand{\indexisarvar}[1]{\indexdef{}{term}{#1}}
|
|
21 |
\newcommand{\indexisarcase}[1]{\indexdef{}{case}{#1}}
|
|
22 |
\newcommand{\indexisarant}[1]{\indexdef{}{antiquotation}{#1}}
|
|
23 |
\newcommand{\indexisarcmdof}[2]{\indexdef{#1}{command}{#2}}
|
|
24 |
\newcommand{\indexisarmethof}[2]{\indexdef{#1}{method}{#2}}
|
|
25 |
\newcommand{\indexisarattof}[2]{\indexdef{#1}{attribute}{#2}}
|
|
| 7170 | 26 |
|
| 26755 | 27 |
\newcommand{\isasymAND}{\isakeyword{and}}
|
28 |
\newcommand{\isasymIS}{\isakeyword{is}}
|
|
29 |
\newcommand{\isasymWHERE}{\isakeyword{where}}
|
|
| 26769 | 30 |
\newcommand{\isasymBEGIN}{\isakeyword{begin}}
|
31 |
\newcommand{\isasymIMPORTS}{\isakeyword{imports}}
|
|
| 26783 | 32 |
\newcommand{\isasymIN}{\isakeyword{in}}
|
33 |
\newcommand{\isasymSTRUCTURE}{\isakeyword{structure}}
|
|
| 26755 | 34 |
|
| 26745 | 35 |
\newcommand{\isarkeyword}[1]{{\mathord{\mathbf{#1}}}}
|
| 7138 | 36 |
\newcommand{\isarcmd}[1]{\isarkeyword{#1}}
|
37 |
\newcommand{\isartrans}[2]{#1 \mathbin{\,\to\,} #2}
|
|
38 |
\newcommand{\isarkeep}[1]{#1 \mathbin{\,\to\,} #1}
|
|
| 10335 | 39 |
\newcommand{\isarantiq}{antiquotation}
|
| 7170 | 40 |
\newcommand{\isarmeth}{method}
|
41 |
\newcommand{\isaratt}{attribute}
|
|
| 7138 | 42 |
|
| 7050 | 43 |
\newcommand{\I@optname}[1]{\ifthenelse{\equal{}{#1}}{}{~#1\colon}}
|
| 13042 | 44 |
\newcommand{\I@optmeth}[1]{\ifthenelse{\equal{}{#1}}{}{~#1}}
|
| 7050 | 45 |
|
| 10238 | 46 |
\newcommand{\AND}{\isarkeyword{and}}
|
| 12977 | 47 |
\newcommand{\IN}{\isarkeyword{in}}
|
|
12615
3ef6235a4a75
added \indexisarcmdof, \indexisarmethof, \indexisarattof;
wenzelm
parents:
10860
diff
changeset
|
48 |
\newcommand{\COROLLARYNAME}{\isarkeyword{corollary}}
|
| 7138 | 49 |
\newcommand{\LEMMANAME}{\isarkeyword{lemma}}
|
50 |
\newcommand{\THEOREMNAME}{\isarkeyword{theorem}}
|
|
51 |
\newcommand{\NOTENAME}{\isarkeyword{note}}
|
|
52 |
\newcommand{\FROMNAME}{\isarkeyword{from}}
|
|
53 |
\newcommand{\WITHNAME}{\isarkeyword{with}}
|
|
| 12966 | 54 |
\newcommand{\USINGNAME}{\isarkeyword{using}}
|
| 19994 | 55 |
\newcommand{\UNFOLDINGNAME}{\isarkeyword{unfolding}}
|
| 12977 | 56 |
\newcommand{\FIXESNAME}{\isarkeyword{fixes}}
|
|
16168
adb83939177f
Locales: new element constrains, parameter renaming with syntax,
ballarin
parents:
13042
diff
changeset
|
57 |
\newcommand{\CONSTRAINSNAME}{\isarkeyword{constrains}}
|
| 12977 | 58 |
\newcommand{\ASSUMESNAME}{\isarkeyword{assumes}}
|
59 |
\newcommand{\DEFINESNAME}{\isarkeyword{defines}}
|
|
60 |
\newcommand{\NOTESNAME}{\isarkeyword{notes}}
|
|
61 |
\newcommand{\INCLUDESNAME}{\isarkeyword{includes}}
|
|
| 7138 | 62 |
\newcommand{\FIXNAME}{\isarkeyword{fix}}
|
63 |
\newcommand{\ASSUMENAME}{\isarkeyword{assume}}
|
|
64 |
\newcommand{\PRESUMENAME}{\isarkeyword{presume}}
|
|
| 8377 | 65 |
\newcommand{\CASENAME}{\isarkeyword{case}}
|
| 7138 | 66 |
\newcommand{\HAVENAME}{\isarkeyword{have}}
|
67 |
\newcommand{\SHOWNAME}{\isarkeyword{show}}
|
|
68 |
\newcommand{\HENCENAME}{\isarkeyword{hence}}
|
|
69 |
\newcommand{\THUSNAME}{\isarkeyword{thus}}
|
|
70 |
\newcommand{\PROOFNAME}{\isarkeyword{proof}}
|
|
71 |
\newcommand{\QEDNAME}{\isarkeyword{qed}}
|
|
72 |
\newcommand{\BYNAME}{\isarkeyword{by}}
|
|
| 10221 | 73 |
\newcommand{\APPLYNAME}{\isarkeyword{apply}}
|
| 7138 | 74 |
\newcommand{\ISNAME}{\isarkeyword{is}}
|
75 |
\newcommand{\CONCLNAME}{\isarkeyword{concl}}
|
|
76 |
\newcommand{\LETNAME}{\isarkeyword{let}}
|
|
77 |
\newcommand{\DEFNAME}{\isarkeyword{def}}
|
|
| 8377 | 78 |
\newcommand{\OBTAINNAME}{\isarkeyword{obtain}}
|
| 10238 | 79 |
\newcommand{\CMTNAME}{\textbf{---}}
|
| 7050 | 80 |
|
| 7138 | 81 |
\newcommand{\THEORY}{\isarkeyword{theory}}
|
82 |
\newcommand{\CONTEXT}{\isarkeyword{context}}
|
|
83 |
\newcommand{\END}{\isarkeyword{end}}
|
|
84 |
||
85 |
\newcommand{\TYPES}{\isarkeyword{types}}
|
|
86 |
\newcommand{\CONSTS}{\isarkeyword{consts}}
|
|
| 12623 | 87 |
\newcommand{\CONSTDEFS}{\isarkeyword{constdefs}}
|
| 7138 | 88 |
\newcommand{\DEFS}{\isarkeyword{defs}}
|
| 10221 | 89 |
\newcommand{\AXCLASS}{\isarkeyword{axclass}}
|
90 |
\newcommand{\INSTANCE}{\isarkeyword{instance}}
|
|
| 25533 | 91 |
\newcommand{\INSTANTIATION}{\isarkeyword{instantiation}}
|
| 25883 | 92 |
\newcommand{\OVERLOADING}{\isarkeyword{overloading}}
|
| 10221 | 93 |
\newcommand{\DECLARE}{\isarkeyword{declare}}
|
| 12977 | 94 |
\newcommand{\LEMMAS}{\isarkeyword{lemmas}}
|
95 |
\newcommand{\THEOREMS}{\isarkeyword{theorems}}
|
|
96 |
\newcommand{\LOCALE}{\isarkeyword{locale}}
|
|
| 20379 | 97 |
\newcommand{\CLASS}{\isarkeyword{class}}
|
| 24991 | 98 |
\newcommand{\SUBCLASS}{\isarkeyword{subclass}}
|
| 7138 | 99 |
\newcommand{\TEXT}{\isarkeyword{text}}
|
100 |
\newcommand{\TXT}{\isarkeyword{txt}}
|
|
| 7321 | 101 |
\newcommand{\NOTE}[2]{\NOTENAME~\ifthenelse{\equal{}{#1}}{}{#1=}#2}
|
| 7050 | 102 |
\newcommand{\FROM}[1]{\FROMNAME~#1}
|
103 |
\newcommand{\WITH}[1]{\WITHNAME~#1}
|
|
| 12966 | 104 |
\newcommand{\USING}[1]{\USINGNAME~#1}
|
| 19994 | 105 |
\newcommand{\UNFOLDING}[1]{\UNFOLDINGNAME~#1}
|
| 12977 | 106 |
\newcommand{\FIXES}[1]{\FIXESNAME~#1}
|
|
16168
adb83939177f
Locales: new element constrains, parameter renaming with syntax,
ballarin
parents:
13042
diff
changeset
|
107 |
\newcommand{\CONSTRAINS}[1]{\CONSTRAINSNAME~#1}
|
| 12977 | 108 |
\newcommand{\ASSUMES}[2]{\ASSUMESNAME\I@optname{#1}~#2}
|
109 |
\newcommand{\DEFINES}[2]{\DEFINESNAME\I@optname{#1}~#2}
|
|
110 |
\newcommand{\NOTES}[2]{\NOTESNAME~\ifthenelse{\equal{}{#1}}{}{#1=}#2}
|
|
111 |
\newcommand{\INCLUDES}[1]{\INCLUDESNAME~#1}
|
|
| 13011 | 112 |
\newcommand{\SHOWS}[2]{\isarkeyword{shows}\I@optname{#1}~#2}
|
| 7050 | 113 |
\newcommand{\FIX}[1]{\FIXNAME~#1}
|
114 |
\newcommand{\ASSUME}[2]{\ASSUMENAME\I@optname{#1}~#2}
|
|
115 |
\newcommand{\PRESUME}[2]{\PRESUMENAME\I@optname{#1}~#2}
|
|
| 8377 | 116 |
\newcommand{\CASE}[1]{\CASENAME~#1}
|
| 7138 | 117 |
\newcommand{\THEN}{\isarkeyword{then}}
|
118 |
\newcommand{\HAVE}[2]{\isarkeyword{have}\I@optname{#1}~#2}
|
|
119 |
\newcommand{\SHOW}[2]{\isarkeyword{show}\I@optname{#1}~#2}
|
|
120 |
\newcommand{\HENCE}[2]{\isarkeyword{hence}\I@optname{#1}~#2}
|
|
121 |
\newcommand{\THUS}[2]{\isarkeyword{thus}\I@optname{#1}~#2}
|
|
|
12615
3ef6235a4a75
added \indexisarcmdof, \indexisarmethof, \indexisarattof;
wenzelm
parents:
10860
diff
changeset
|
122 |
\newcommand{\COROLLARY}[2]{\COROLLARYNAME\I@optname{#1}~#2}
|
| 7050 | 123 |
\newcommand{\LEMMA}[2]{\LEMMANAME\I@optname{#1}~#2}
|
124 |
\newcommand{\THEOREM}[2]{\THEOREMNAME\I@optname{#1}~#2}
|
|
125 |
\newcommand{\PROOF}[1]{\PROOFNAME\I@optmeth{#1}}
|
|
126 |
\newcommand{\QED}[1]{\QEDNAME\I@optmeth{#1}}
|
|
127 |
\newcommand{\BY}[1]{\BYNAME\I@optmeth{#1}}
|
|
| 7173 | 128 |
\newcommand{\BYY}[2]{\BYNAME\I@optmeth{#1}\I@optmeth{#2}}
|
| 10221 | 129 |
\newcommand{\APPLY}[1]{\APPLYNAME\I@optmeth{#1}}
|
130 |
\newcommand{\DONE}{\isarkeyword{done}}
|
|
| 10860 | 131 |
\newcommand{\DOT}{\textbf{.}}
|
132 |
\newcommand{\DDOT}{\textbf{.\,.}}
|
|
| 7050 | 133 |
\newcommand{\DDDOT}{\dots}
|
134 |
\newcommand{\IS}[1]{(\ISNAME~#1)}
|
|
| 7894 | 135 |
\newcommand{\ISS}[2]{(\ISNAME~#1~\ISNAME~#2)}
|
| 7050 | 136 |
\newcommand{\LET}[1]{\LETNAME~#1}
|
137 |
\newcommand{\DEF}[2]{\DEFNAME\I@optname{#1}~#2}
|
|
138 |
\newcommand{\ATT}[1]{\ap [#1]}
|
|
| 10238 | 139 |
\newcommand{\CMT}[1]{\CMTNAME~\Text{#1}}
|
| 7138 | 140 |
\newcommand{\ALSO}{\isarkeyword{also}}
|
141 |
\newcommand{\FINALLY}{\isarkeyword{finally}}
|
|
| 8618 | 142 |
\newcommand{\MOREOVER}{\isarkeyword{moreover}}
|
143 |
\newcommand{\ULTIMATELY}{\isarkeyword{ultimately}}
|
|
| 8504 | 144 |
\newcommand{\OBTAIN}[3]{\OBTAINNAME~#1~\isarkeyword{where}\I@optname{#2}~#3}
|
| 8900 | 145 |
\newcommand{\BG}{\isarkeyword{\textbf{\{}}}
|
146 |
\newcommand{\EN}{\isarkeyword{\textbf{\}}}}
|
|
| 8446 | 147 |
\newcommand{\NEXT}{\isarkeyword{next}}
|
| 8377 | 148 |
\newcommand{\SORRY}{\isarkeyword{sorry}}
|
149 |
\newcommand{\OOPS}{\isarkeyword{oops}}
|