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