doc-src/isar.sty
author wenzelm
Tue, 20 Jul 1999 18:50:46 +0200
changeset 7050 c70d3402fef5
child 7138 0a17c2a93454
permissions -rw-r--r--
checkpoint;
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$
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
     3
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
     4
\usepackage{ifthen}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
     5
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
     6
%Isar language elements
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
     7
\newcommand{\I@keyword}[1]{{\mathord{\mathbf{#1}}}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
     8
\newcommand{\I@optname}[1]{\ifthenelse{\equal{}{#1}}{}{~#1\colon}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
     9
\newcommand{\I@optoptname}[1]{\ifthenelse{\equal{}{#1}}{}{~[#1\colon]}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    10
\newcommand{\I@optmeth}[1]{\ifthenelse{\equal{}{#1}}{}{~(#1)}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    11
\newcommand{\I@optoptmeth}[1]{\ifthenelse{\equal{}{#1}}{}{~[(#1)]}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    12
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    13
\newcommand{\LEMMANAME}{\I@keyword{lemma}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    14
\newcommand{\THEOREMNAME}{\I@keyword{theorem}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    15
\newcommand{\NOTENAME}{\I@keyword{note}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    16
\newcommand{\FROMNAME}{\I@keyword{from}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    17
\newcommand{\WITHNAME}{\I@keyword{with}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    18
\newcommand{\FIXNAME}{\I@keyword{fix}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    19
\newcommand{\ASSUMENAME}{\I@keyword{assume}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    20
\newcommand{\PRESUMENAME}{\I@keyword{presume}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    21
\newcommand{\HAVENAME}{\I@keyword{have}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    22
\newcommand{\SHOWNAME}{\I@keyword{show}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    23
\newcommand{\HENCENAME}{\I@keyword{hence}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    24
\newcommand{\THUSNAME}{\I@keyword{thus}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    25
\newcommand{\PROOFNAME}{\I@keyword{proof}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    26
\newcommand{\QEDNAME}{\I@keyword{qed}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    27
\newcommand{\BYNAME}{\I@keyword{by}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    28
\newcommand{\ISNAME}{\I@keyword{is}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    29
\newcommand{\CONCLNAME}{\I@keyword{concl}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    30
\newcommand{\LETNAME}{\I@keyword{let}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    31
\newcommand{\DEFNAME}{\I@keyword{def}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    32
\newcommand{\SUFFNAME}{\I@keyword{suffient}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    33
\newcommand{\CMTNAME}{\I@keyword{-{}-}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    34
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    35
\newcommand{\TYPES}{\I@keyword{types}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    36
\newcommand{\CONSTS}{\I@keyword{consts}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    37
\newcommand{\DEFS}{\I@keyword{defs}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    38
\newcommand{\NOTE}[2]{\NOTENAME~#1=#2}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    39
\newcommand{\FROM}[1]{\FROMNAME~#1}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    40
\newcommand{\WITH}[1]{\WITHNAME~#1}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    41
\newcommand{\FIX}[1]{\FIXNAME~#1}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    42
\newcommand{\ASSUME}[2]{\ASSUMENAME\I@optname{#1}~#2}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    43
\newcommand{\PRESUME}[2]{\PRESUMENAME\I@optname{#1}~#2}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    44
\newcommand{\THEN}{\I@keyword{then}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    45
\newcommand{\BEGIN}{\I@keyword{begin}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    46
\newcommand{\END}{\I@keyword{end}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    47
\newcommand{\BG}{\lceil}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    48
\newcommand{\EN}{\rfloor}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    49
\newcommand{\HAVE}[2]{\I@keyword{have}\I@optname{#1}~#2}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    50
\newcommand{\SHOW}[2]{\I@keyword{show}\I@optname{#1}~#2}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    51
\newcommand{\HENCE}[2]{\I@keyword{hence}\I@optname{#1}~#2}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    52
\newcommand{\THUS}[2]{\I@keyword{thus}\I@optname{#1}~#2}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    53
\newcommand{\LEMMA}[2]{\LEMMANAME\I@optname{#1}~#2}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    54
\newcommand{\THEOREM}[2]{\THEOREMNAME\I@optname{#1}~#2}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    55
\newcommand{\PROOF}[1]{\PROOFNAME\I@optmeth{#1}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    56
\newcommand{\PPROOF}[1]{\PPROOFNAME\I@optmeth{#1}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    57
\newcommand{\QED}[1]{\QEDNAME\I@optmeth{#1}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    58
\newcommand{\BY}[1]{\BYNAME\I@optmeth{#1}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    59
\newcommand{\DOT}{\I@keyword{.}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    60
\newcommand{\DDOT}{\I@keyword{.\,.}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    61
\newcommand{\DDDOT}{\dots}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    62
\newcommand{\IS}[1]{(\ISNAME~#1)}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    63
\newcommand{\LET}[1]{\LETNAME~#1}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    64
\newcommand{\LETT}[1]{\LETNAME~#1\dt\;}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    65
\newcommand{\DEF}[2]{\DEFNAME\I@optname{#1}~#2}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    66
\newcommand{\SUFF}[1]{\SUFFNAME~#1}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    67
\newcommand{\ATT}[1]{\ap [#1]}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    68
\newcommand{\CMT}[1]{\CMTNAME~\text{#1}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    69
\newcommand{\ALSO}{\I@keyword{also}}
c70d3402fef5 checkpoint;
wenzelm
parents:
diff changeset
    70
\newcommand{\FINALLY}{\I@keyword{finally}}