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