author | wenzelm |
Tue, 12 Feb 2002 20:32:23 +0100 | |
changeset 12878 | 2896f88180b9 |
parent 12623 | 7a33541fd81b |
child 12966 | 6373b4d09325 |
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@7456 | 11 |
\newcommand{\indexoutertoken}[1]{\index{#1 (syntax)|bold}\index{Syntax!#1|bold}} |
wenzelm@7456 | 12 |
\newcommand{\indexouternonterm}[1]{\index{#1 (syntax)|bold}\index{Syntax!#1|bold}} |
wenzelm@7456 | 13 |
\newcommand{\indexisarcmd}[1]{\index{#1 (command)|bold}\index{Commands!#1|bold}} |
wenzelm@7511 | 14 |
\newcommand{\indexisarmeth}[1]{\index{#1 (method)|bold}\index{Methods!#1|bold}} |
wenzelm@7456 | 15 |
\newcommand{\indexisaratt}[1]{\index{#1 (attribute)|bold}\index{Attributes!#1|bold}} |
wenzelm@7456 | 16 |
\newcommand{\indexisarthm}[1]{\index{#1 (theorem)|bold}\index{Theorems!#1|bold}} |
wenzelm@7465 | 17 |
\newcommand{\indexisarvar}[1]{\index{#1 (variable)|bold}\index{Variables!#1|bold}} |
wenzelm@8992 | 18 |
\newcommand{\indexisarcase}[1]{\index{#1 (case)|bold}\index{Cases!#1|bold}} |
wenzelm@9202 | 19 |
\newcommand{\indexisarant}[1]{\index{#1 (antiquotation)|bold}\index{Antiquotations!#1|bold}} |
wenzelm@7170 | 20 |
|
wenzelm@12615 | 21 |
\newcommand{\indexisarcmdof}[2]{\index{#2 (#1 command)|bold}\index{Commands!#2 (#1)|bold}} |
wenzelm@12615 | 22 |
\newcommand{\indexisarmethof}[2]{\index{#2 (#1 method)|bold}\index{Methods!#2 (#1)|bold}} |
wenzelm@12615 | 23 |
\newcommand{\indexisarattof}[2]{\index{#2 (#1 attribute)|bold}\index{Attributes!#2 (#1)|bold}} |
wenzelm@12615 | 24 |
|
wenzelm@7138 | 25 |
\newcommand{\isarcmd}[1]{\isarkeyword{#1}} |
wenzelm@7138 | 26 |
\newcommand{\isartrans}[2]{#1 \mathbin{\,\to\,} #2} |
wenzelm@7138 | 27 |
\newcommand{\isarkeep}[1]{#1 \mathbin{\,\to\,} #1} |
wenzelm@10335 | 28 |
\newcommand{\isarantiq}{antiquotation} |
wenzelm@7170 | 29 |
\newcommand{\isarmeth}{method} |
wenzelm@7170 | 30 |
\newcommand{\isaratt}{attribute} |
wenzelm@7138 | 31 |
|
wenzelm@7050 | 32 |
\newcommand{\I@optname}[1]{\ifthenelse{\equal{}{#1}}{}{~#1\colon}} |
wenzelm@7050 | 33 |
\newcommand{\I@optmeth}[1]{\ifthenelse{\equal{}{#1}}{}{~(#1)}} |
wenzelm@7050 | 34 |
|
wenzelm@10238 | 35 |
\newcommand{\AND}{\isarkeyword{and}} |
wenzelm@12615 | 36 |
\newcommand{\COROLLARYNAME}{\isarkeyword{corollary}} |
wenzelm@7138 | 37 |
\newcommand{\LEMMANAME}{\isarkeyword{lemma}} |
wenzelm@7138 | 38 |
\newcommand{\THEOREMNAME}{\isarkeyword{theorem}} |
wenzelm@7138 | 39 |
\newcommand{\NOTENAME}{\isarkeyword{note}} |
wenzelm@7138 | 40 |
\newcommand{\FROMNAME}{\isarkeyword{from}} |
wenzelm@7138 | 41 |
\newcommand{\WITHNAME}{\isarkeyword{with}} |
wenzelm@7138 | 42 |
\newcommand{\FIXNAME}{\isarkeyword{fix}} |
wenzelm@7138 | 43 |
\newcommand{\ASSUMENAME}{\isarkeyword{assume}} |
wenzelm@7138 | 44 |
\newcommand{\PRESUMENAME}{\isarkeyword{presume}} |
wenzelm@8377 | 45 |
\newcommand{\CASENAME}{\isarkeyword{case}} |
wenzelm@7138 | 46 |
\newcommand{\HAVENAME}{\isarkeyword{have}} |
wenzelm@7138 | 47 |
\newcommand{\SHOWNAME}{\isarkeyword{show}} |
wenzelm@7138 | 48 |
\newcommand{\HENCENAME}{\isarkeyword{hence}} |
wenzelm@7138 | 49 |
\newcommand{\THUSNAME}{\isarkeyword{thus}} |
wenzelm@7138 | 50 |
\newcommand{\PROOFNAME}{\isarkeyword{proof}} |
wenzelm@7138 | 51 |
\newcommand{\QEDNAME}{\isarkeyword{qed}} |
wenzelm@7138 | 52 |
\newcommand{\BYNAME}{\isarkeyword{by}} |
wenzelm@10221 | 53 |
\newcommand{\APPLYNAME}{\isarkeyword{apply}} |
wenzelm@7138 | 54 |
\newcommand{\ISNAME}{\isarkeyword{is}} |
wenzelm@7138 | 55 |
\newcommand{\CONCLNAME}{\isarkeyword{concl}} |
wenzelm@7138 | 56 |
\newcommand{\LETNAME}{\isarkeyword{let}} |
wenzelm@7138 | 57 |
\newcommand{\DEFNAME}{\isarkeyword{def}} |
wenzelm@8377 | 58 |
\newcommand{\OBTAINNAME}{\isarkeyword{obtain}} |
wenzelm@10238 | 59 |
\newcommand{\CMTNAME}{\textbf{---}} |
wenzelm@7050 | 60 |
|
wenzelm@7138 | 61 |
\newcommand{\THEORY}{\isarkeyword{theory}} |
wenzelm@7138 | 62 |
\newcommand{\CONTEXT}{\isarkeyword{context}} |
wenzelm@7138 | 63 |
\newcommand{\END}{\isarkeyword{end}} |
wenzelm@7138 | 64 |
|
wenzelm@7138 | 65 |
\newcommand{\TYPES}{\isarkeyword{types}} |
wenzelm@7138 | 66 |
\newcommand{\CONSTS}{\isarkeyword{consts}} |
wenzelm@12623 | 67 |
\newcommand{\CONSTDEFS}{\isarkeyword{constdefs}} |
wenzelm@7138 | 68 |
\newcommand{\DEFS}{\isarkeyword{defs}} |
wenzelm@10221 | 69 |
\newcommand{\AXCLASS}{\isarkeyword{axclass}} |
wenzelm@10221 | 70 |
\newcommand{\INSTANCE}{\isarkeyword{instance}} |
wenzelm@10221 | 71 |
\newcommand{\DECLARE}{\isarkeyword{declare}} |
wenzelm@7138 | 72 |
\newcommand{\TEXT}{\isarkeyword{text}} |
wenzelm@7138 | 73 |
\newcommand{\TXT}{\isarkeyword{txt}} |
wenzelm@7321 | 74 |
\newcommand{\NOTE}[2]{\NOTENAME~\ifthenelse{\equal{}{#1}}{}{#1=}#2} |
wenzelm@7050 | 75 |
\newcommand{\FROM}[1]{\FROMNAME~#1} |
wenzelm@7050 | 76 |
\newcommand{\WITH}[1]{\WITHNAME~#1} |
wenzelm@7050 | 77 |
\newcommand{\FIX}[1]{\FIXNAME~#1} |
wenzelm@7050 | 78 |
\newcommand{\ASSUME}[2]{\ASSUMENAME\I@optname{#1}~#2} |
wenzelm@7050 | 79 |
\newcommand{\PRESUME}[2]{\PRESUMENAME\I@optname{#1}~#2} |
wenzelm@8377 | 80 |
\newcommand{\CASE}[1]{\CASENAME~#1} |
wenzelm@7138 | 81 |
\newcommand{\THEN}{\isarkeyword{then}} |
wenzelm@7138 | 82 |
\newcommand{\HAVE}[2]{\isarkeyword{have}\I@optname{#1}~#2} |
wenzelm@7138 | 83 |
\newcommand{\SHOW}[2]{\isarkeyword{show}\I@optname{#1}~#2} |
wenzelm@7138 | 84 |
\newcommand{\HENCE}[2]{\isarkeyword{hence}\I@optname{#1}~#2} |
wenzelm@7138 | 85 |
\newcommand{\THUS}[2]{\isarkeyword{thus}\I@optname{#1}~#2} |
wenzelm@12615 | 86 |
\newcommand{\COROLLARY}[2]{\COROLLARYNAME\I@optname{#1}~#2} |
wenzelm@7050 | 87 |
\newcommand{\LEMMA}[2]{\LEMMANAME\I@optname{#1}~#2} |
wenzelm@7050 | 88 |
\newcommand{\THEOREM}[2]{\THEOREMNAME\I@optname{#1}~#2} |
wenzelm@7050 | 89 |
\newcommand{\PROOF}[1]{\PROOFNAME\I@optmeth{#1}} |
wenzelm@7050 | 90 |
\newcommand{\QED}[1]{\QEDNAME\I@optmeth{#1}} |
wenzelm@7050 | 91 |
\newcommand{\BY}[1]{\BYNAME\I@optmeth{#1}} |
wenzelm@7173 | 92 |
\newcommand{\BYY}[2]{\BYNAME\I@optmeth{#1}\I@optmeth{#2}} |
wenzelm@10221 | 93 |
\newcommand{\APPLY}[1]{\APPLYNAME\I@optmeth{#1}} |
wenzelm@10221 | 94 |
\newcommand{\DONE}{\isarkeyword{done}} |
wenzelm@10860 | 95 |
\newcommand{\DOT}{\textbf{.}} |
wenzelm@10860 | 96 |
\newcommand{\DDOT}{\textbf{.\,.}} |
wenzelm@7050 | 97 |
\newcommand{\DDDOT}{\dots} |
wenzelm@7050 | 98 |
\newcommand{\IS}[1]{(\ISNAME~#1)} |
wenzelm@7894 | 99 |
\newcommand{\ISS}[2]{(\ISNAME~#1~\ISNAME~#2)} |
wenzelm@7050 | 100 |
\newcommand{\LET}[1]{\LETNAME~#1} |
wenzelm@7050 | 101 |
\newcommand{\DEF}[2]{\DEFNAME\I@optname{#1}~#2} |
wenzelm@7050 | 102 |
\newcommand{\ATT}[1]{\ap [#1]} |
wenzelm@10238 | 103 |
\newcommand{\CMT}[1]{\CMTNAME~\Text{#1}} |
wenzelm@7138 | 104 |
\newcommand{\ALSO}{\isarkeyword{also}} |
wenzelm@7138 | 105 |
\newcommand{\FINALLY}{\isarkeyword{finally}} |
wenzelm@8618 | 106 |
\newcommand{\MOREOVER}{\isarkeyword{moreover}} |
wenzelm@8618 | 107 |
\newcommand{\ULTIMATELY}{\isarkeyword{ultimately}} |
wenzelm@8504 | 108 |
\newcommand{\OBTAIN}[3]{\OBTAINNAME~#1~\isarkeyword{where}\I@optname{#2}~#3} |
wenzelm@8900 | 109 |
\newcommand{\BG}{\isarkeyword{\textbf{\{}}} |
wenzelm@8900 | 110 |
\newcommand{\EN}{\isarkeyword{\textbf{\}}}} |
wenzelm@8446 | 111 |
\newcommand{\NEXT}{\isarkeyword{next}} |
wenzelm@8377 | 112 |
\newcommand{\SORRY}{\isarkeyword{sorry}} |
wenzelm@8377 | 113 |
\newcommand{\OOPS}{\isarkeyword{oops}} |