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