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