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