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