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 |
|
7138
|
21 |
\newcommand{\isarcmd}[1]{\isarkeyword{#1}}
|
|
22 |
\newcommand{\isartrans}[2]{#1 \mathbin{\,\to\,} #2}
|
|
23 |
\newcommand{\isarkeep}[1]{#1 \mathbin{\,\to\,} #1}
|
7170
|
24 |
\newcommand{\isarmeth}{method}
|
|
25 |
\newcommand{\isaratt}{attribute}
|
7138
|
26 |
|
7050
|
27 |
\newcommand{\I@optname}[1]{\ifthenelse{\equal{}{#1}}{}{~#1\colon}}
|
|
28 |
\newcommand{\I@optmeth}[1]{\ifthenelse{\equal{}{#1}}{}{~(#1)}}
|
|
29 |
|
10238
|
30 |
\newcommand{\AND}{\isarkeyword{and}}
|
7138
|
31 |
\newcommand{\LEMMANAME}{\isarkeyword{lemma}}
|
|
32 |
\newcommand{\THEOREMNAME}{\isarkeyword{theorem}}
|
|
33 |
\newcommand{\NOTENAME}{\isarkeyword{note}}
|
|
34 |
\newcommand{\FROMNAME}{\isarkeyword{from}}
|
|
35 |
\newcommand{\WITHNAME}{\isarkeyword{with}}
|
|
36 |
\newcommand{\FIXNAME}{\isarkeyword{fix}}
|
|
37 |
\newcommand{\ASSUMENAME}{\isarkeyword{assume}}
|
|
38 |
\newcommand{\PRESUMENAME}{\isarkeyword{presume}}
|
8377
|
39 |
\newcommand{\CASENAME}{\isarkeyword{case}}
|
7138
|
40 |
\newcommand{\HAVENAME}{\isarkeyword{have}}
|
|
41 |
\newcommand{\SHOWNAME}{\isarkeyword{show}}
|
|
42 |
\newcommand{\HENCENAME}{\isarkeyword{hence}}
|
|
43 |
\newcommand{\THUSNAME}{\isarkeyword{thus}}
|
|
44 |
\newcommand{\PROOFNAME}{\isarkeyword{proof}}
|
|
45 |
\newcommand{\QEDNAME}{\isarkeyword{qed}}
|
|
46 |
\newcommand{\BYNAME}{\isarkeyword{by}}
|
10221
|
47 |
\newcommand{\APPLYNAME}{\isarkeyword{apply}}
|
7138
|
48 |
\newcommand{\ISNAME}{\isarkeyword{is}}
|
|
49 |
\newcommand{\CONCLNAME}{\isarkeyword{concl}}
|
|
50 |
\newcommand{\LETNAME}{\isarkeyword{let}}
|
|
51 |
\newcommand{\DEFNAME}{\isarkeyword{def}}
|
8377
|
52 |
\newcommand{\OBTAINNAME}{\isarkeyword{obtain}}
|
10238
|
53 |
\newcommand{\CMTNAME}{\textbf{---}}
|
7050
|
54 |
|
7138
|
55 |
\newcommand{\THEORY}{\isarkeyword{theory}}
|
|
56 |
\newcommand{\CONTEXT}{\isarkeyword{context}}
|
|
57 |
\newcommand{\END}{\isarkeyword{end}}
|
|
58 |
|
|
59 |
\newcommand{\TYPES}{\isarkeyword{types}}
|
|
60 |
\newcommand{\CONSTS}{\isarkeyword{consts}}
|
|
61 |
\newcommand{\DEFS}{\isarkeyword{defs}}
|
10221
|
62 |
\newcommand{\AXCLASS}{\isarkeyword{axclass}}
|
|
63 |
\newcommand{\INSTANCE}{\isarkeyword{instance}}
|
|
64 |
\newcommand{\DECLARE}{\isarkeyword{declare}}
|
7138
|
65 |
\newcommand{\TEXT}{\isarkeyword{text}}
|
|
66 |
\newcommand{\TXT}{\isarkeyword{txt}}
|
7321
|
67 |
\newcommand{\NOTE}[2]{\NOTENAME~\ifthenelse{\equal{}{#1}}{}{#1=}#2}
|
7050
|
68 |
\newcommand{\FROM}[1]{\FROMNAME~#1}
|
|
69 |
\newcommand{\WITH}[1]{\WITHNAME~#1}
|
|
70 |
\newcommand{\FIX}[1]{\FIXNAME~#1}
|
|
71 |
\newcommand{\ASSUME}[2]{\ASSUMENAME\I@optname{#1}~#2}
|
|
72 |
\newcommand{\PRESUME}[2]{\PRESUMENAME\I@optname{#1}~#2}
|
8377
|
73 |
\newcommand{\CASE}[1]{\CASENAME~#1}
|
7138
|
74 |
\newcommand{\THEN}{\isarkeyword{then}}
|
|
75 |
\newcommand{\HAVE}[2]{\isarkeyword{have}\I@optname{#1}~#2}
|
|
76 |
\newcommand{\SHOW}[2]{\isarkeyword{show}\I@optname{#1}~#2}
|
|
77 |
\newcommand{\HENCE}[2]{\isarkeyword{hence}\I@optname{#1}~#2}
|
|
78 |
\newcommand{\THUS}[2]{\isarkeyword{thus}\I@optname{#1}~#2}
|
7050
|
79 |
\newcommand{\LEMMA}[2]{\LEMMANAME\I@optname{#1}~#2}
|
|
80 |
\newcommand{\THEOREM}[2]{\THEOREMNAME\I@optname{#1}~#2}
|
|
81 |
\newcommand{\PROOF}[1]{\PROOFNAME\I@optmeth{#1}}
|
|
82 |
\newcommand{\QED}[1]{\QEDNAME\I@optmeth{#1}}
|
|
83 |
\newcommand{\BY}[1]{\BYNAME\I@optmeth{#1}}
|
7173
|
84 |
\newcommand{\BYY}[2]{\BYNAME\I@optmeth{#1}\I@optmeth{#2}}
|
10221
|
85 |
\newcommand{\APPLY}[1]{\APPLYNAME\I@optmeth{#1}}
|
|
86 |
\newcommand{\DONE}{\isarkeyword{done}}
|
7138
|
87 |
\newcommand{\DOT}{\isarkeyword{.}}
|
|
88 |
\newcommand{\DDOT}{\isarkeyword{.\,.}}
|
7050
|
89 |
\newcommand{\DDDOT}{\dots}
|
|
90 |
\newcommand{\IS}[1]{(\ISNAME~#1)}
|
7894
|
91 |
\newcommand{\ISS}[2]{(\ISNAME~#1~\ISNAME~#2)}
|
7050
|
92 |
\newcommand{\LET}[1]{\LETNAME~#1}
|
|
93 |
\newcommand{\DEF}[2]{\DEFNAME\I@optname{#1}~#2}
|
|
94 |
\newcommand{\ATT}[1]{\ap [#1]}
|
10238
|
95 |
\newcommand{\CMT}[1]{\CMTNAME~\Text{#1}}
|
7138
|
96 |
\newcommand{\ALSO}{\isarkeyword{also}}
|
|
97 |
\newcommand{\FINALLY}{\isarkeyword{finally}}
|
8618
|
98 |
\newcommand{\MOREOVER}{\isarkeyword{moreover}}
|
|
99 |
\newcommand{\ULTIMATELY}{\isarkeyword{ultimately}}
|
8504
|
100 |
\newcommand{\OBTAIN}[3]{\OBTAINNAME~#1~\isarkeyword{where}\I@optname{#2}~#3}
|
8900
|
101 |
\newcommand{\BG}{\isarkeyword{\textbf{\{}}}
|
|
102 |
\newcommand{\EN}{\isarkeyword{\textbf{\}}}}
|
8446
|
103 |
\newcommand{\NEXT}{\isarkeyword{next}}
|
8377
|
104 |
\newcommand{\SORRY}{\isarkeyword{sorry}}
|
|
105 |
\newcommand{\OOPS}{\isarkeyword{oops}}
|