| 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 | 
 | 
| 7170 |     11 | \newcommand{\indexoutertoken}[1]{\index{#1 (syntax)|bold}}
 | 
|  |     12 | \newcommand{\indexouternonterm}[1]{\index{#1 (syntax)|bold}}
 | 
| 7138 |     13 | \newcommand{\indexisarcmd}[1]{\index{#1 (command)|bold}}
 | 
| 7170 |     14 | \newcommand{\indexisarmeth}[1]{\index{#1 (method)|bold}}
 | 
|  |     15 | \newcommand{\indexisaratt}[1]{\index{#1 (attribute)|bold}}
 | 
|  |     16 | 
 | 
| 7138 |     17 | \newcommand{\isarcmd}[1]{\isarkeyword{#1}}
 | 
|  |     18 | \newcommand{\isartrans}[2]{#1 \mathbin{\,\to\,} #2}
 | 
|  |     19 | \newcommand{\isarkeep}[1]{#1 \mathbin{\,\to\,} #1}
 | 
| 7170 |     20 | \newcommand{\isarmeth}{method}
 | 
|  |     21 | \newcommand{\isaratt}{attribute}
 | 
| 7138 |     22 | 
 | 
| 7050 |     23 | \newcommand{\I@optname}[1]{\ifthenelse{\equal{}{#1}}{}{~#1\colon}}
 | 
|  |     24 | \newcommand{\I@optoptname}[1]{\ifthenelse{\equal{}{#1}}{}{~[#1\colon]}}
 | 
|  |     25 | \newcommand{\I@optmeth}[1]{\ifthenelse{\equal{}{#1}}{}{~(#1)}}
 | 
|  |     26 | \newcommand{\I@optoptmeth}[1]{\ifthenelse{\equal{}{#1}}{}{~[(#1)]}}
 | 
|  |     27 | 
 | 
| 7138 |     28 | \newcommand{\LEMMANAME}{\isarkeyword{lemma}}
 | 
|  |     29 | \newcommand{\THEOREMNAME}{\isarkeyword{theorem}}
 | 
|  |     30 | \newcommand{\NOTENAME}{\isarkeyword{note}}
 | 
|  |     31 | \newcommand{\FROMNAME}{\isarkeyword{from}}
 | 
|  |     32 | \newcommand{\WITHNAME}{\isarkeyword{with}}
 | 
|  |     33 | \newcommand{\FIXNAME}{\isarkeyword{fix}}
 | 
|  |     34 | \newcommand{\ASSUMENAME}{\isarkeyword{assume}}
 | 
|  |     35 | \newcommand{\PRESUMENAME}{\isarkeyword{presume}}
 | 
|  |     36 | \newcommand{\HAVENAME}{\isarkeyword{have}}
 | 
|  |     37 | \newcommand{\SHOWNAME}{\isarkeyword{show}}
 | 
|  |     38 | \newcommand{\HENCENAME}{\isarkeyword{hence}}
 | 
|  |     39 | \newcommand{\THUSNAME}{\isarkeyword{thus}}
 | 
|  |     40 | \newcommand{\PROOFNAME}{\isarkeyword{proof}}
 | 
|  |     41 | \newcommand{\QEDNAME}{\isarkeyword{qed}}
 | 
|  |     42 | \newcommand{\BYNAME}{\isarkeyword{by}}
 | 
|  |     43 | \newcommand{\ISNAME}{\isarkeyword{is}}
 | 
|  |     44 | \newcommand{\CONCLNAME}{\isarkeyword{concl}}
 | 
|  |     45 | \newcommand{\LETNAME}{\isarkeyword{let}}
 | 
|  |     46 | \newcommand{\DEFNAME}{\isarkeyword{def}}
 | 
|  |     47 | \newcommand{\SUFFNAME}{\isarkeyword{suffient}}
 | 
|  |     48 | \newcommand{\CMTNAME}{\isarkeyword{-{}-}}
 | 
| 7050 |     49 | 
 | 
| 7138 |     50 | \newcommand{\THEORY}{\isarkeyword{theory}}
 | 
|  |     51 | \newcommand{\CONTEXT}{\isarkeyword{context}}
 | 
|  |     52 | \newcommand{\END}{\isarkeyword{end}}
 | 
|  |     53 | 
 | 
|  |     54 | \newcommand{\TYPES}{\isarkeyword{types}}
 | 
|  |     55 | \newcommand{\CONSTS}{\isarkeyword{consts}}
 | 
|  |     56 | \newcommand{\DEFS}{\isarkeyword{defs}}
 | 
|  |     57 | \newcommand{\TEXT}{\isarkeyword{text}}
 | 
|  |     58 | \newcommand{\TXT}{\isarkeyword{txt}}
 | 
| 7173 |     59 | \newcommand{\NOTE}[2]{\NOTENAME\ifthenelse{\equal{}{#1}}{}{~#1=}#2}
 | 
| 7050 |     60 | \newcommand{\FROM}[1]{\FROMNAME~#1}
 | 
|  |     61 | \newcommand{\WITH}[1]{\WITHNAME~#1}
 | 
|  |     62 | \newcommand{\FIX}[1]{\FIXNAME~#1}
 | 
|  |     63 | \newcommand{\ASSUME}[2]{\ASSUMENAME\I@optname{#1}~#2}
 | 
|  |     64 | \newcommand{\PRESUME}[2]{\PRESUMENAME\I@optname{#1}~#2}
 | 
| 7138 |     65 | \newcommand{\THEN}{\isarkeyword{then}}
 | 
|  |     66 | \newcommand{\BG}{\{\{}
 | 
|  |     67 | \newcommand{\EN}{\}\}}
 | 
|  |     68 | \newcommand{\HAVE}[2]{\isarkeyword{have}\I@optname{#1}~#2}
 | 
|  |     69 | \newcommand{\SHOW}[2]{\isarkeyword{show}\I@optname{#1}~#2}
 | 
|  |     70 | \newcommand{\HENCE}[2]{\isarkeyword{hence}\I@optname{#1}~#2}
 | 
|  |     71 | \newcommand{\THUS}[2]{\isarkeyword{thus}\I@optname{#1}~#2}
 | 
| 7050 |     72 | \newcommand{\LEMMA}[2]{\LEMMANAME\I@optname{#1}~#2}
 | 
|  |     73 | \newcommand{\THEOREM}[2]{\THEOREMNAME\I@optname{#1}~#2}
 | 
|  |     74 | \newcommand{\PROOF}[1]{\PROOFNAME\I@optmeth{#1}}
 | 
|  |     75 | \newcommand{\PPROOF}[1]{\PPROOFNAME\I@optmeth{#1}}
 | 
|  |     76 | \newcommand{\QED}[1]{\QEDNAME\I@optmeth{#1}}
 | 
|  |     77 | \newcommand{\BY}[1]{\BYNAME\I@optmeth{#1}}
 | 
| 7173 |     78 | \newcommand{\BYY}[2]{\BYNAME\I@optmeth{#1}\I@optmeth{#2}}
 | 
| 7138 |     79 | \newcommand{\DOT}{\isarkeyword{.}}
 | 
|  |     80 | \newcommand{\DDOT}{\isarkeyword{.\,.}}
 | 
| 7050 |     81 | \newcommand{\DDDOT}{\dots}
 | 
|  |     82 | \newcommand{\IS}[1]{(\ISNAME~#1)}
 | 
|  |     83 | \newcommand{\LET}[1]{\LETNAME~#1}
 | 
|  |     84 | \newcommand{\LETT}[1]{\LETNAME~#1\dt\;}
 | 
|  |     85 | \newcommand{\DEF}[2]{\DEFNAME\I@optname{#1}~#2}
 | 
|  |     86 | \newcommand{\SUFF}[1]{\SUFFNAME~#1}
 | 
|  |     87 | \newcommand{\ATT}[1]{\ap [#1]}
 | 
|  |     88 | \newcommand{\CMT}[1]{\CMTNAME~\text{#1}}
 | 
| 7138 |     89 | \newcommand{\ALSO}{\isarkeyword{also}}
 | 
|  |     90 | \newcommand{\FINALLY}{\isarkeyword{finally}}
 |