doc-src/proof209.sty
author paulson
Fri, 28 Jul 1995 17:41:31 +0200
changeset 1210 230b9b4b783e
permissions -rw-r--r--
Version of the proof macros for LaTeX 2.09
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1210
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
     1
%       proof.sty       (Proof Figure Macros)
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
     2
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
     3
%       version 2.0
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
     4
%       June 24, 1991
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
     5
%       Copyright (C) 1990,1991 Makoto Tatsuta (tatsuta@riec.tohoku.ac.jp)
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
     6
% 
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
     7
% This program is free software; you can redistribute it or modify
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
     8
% it under the terms of the GNU General Public License as published by
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
     9
% the Free Software Foundation; either versions 1, or (at your option)
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    10
% any later version.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    11
% 
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    12
% This program is distributed in the hope that it will be useful
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    13
% but WITHOUT ANY WARRANTY; without even the implied warranty of
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    14
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    15
% GNU General Public License for more details.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    16
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    17
%       Usage:
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    18
%               In \documentstyle, specify an optional style `proof', say,
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    19
%                       \documentstyle[proof]{article}.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    20
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    21
%       The following macros are available:
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    22
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    23
%       In all the following macros, all the arguments such as
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    24
%       <Lowers> and <Uppers> are processed in math mode.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    25
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    26
%       \infer<Lower><Uppers>
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    27
%               draws an inference.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    28
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    29
%               Use & in <Uppers> to delimit upper formulae.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    30
%               <Uppers> consists more than 0 formulae.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    31
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    32
%               \infer returns \hbox{ ... } or \vbox{ ... } and
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    33
%               sets \@LeftOffset and \@RightOffset globally.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    34
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    35
%       \infer[<Label>]<Lower><Uppers>
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    36
%               draws an inference labeled with <Label>.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    37
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    38
%       \infer*<Lower><Uppers>
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    39
%               draws a many step deduction.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    40
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    41
%       \infer*[<Label>]<Lower><Uppers>
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    42
%               draws a many step deduction labeled with <Label>.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    43
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    44
%       \infer=<Lower><Uppers>
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    45
%               draws a double-ruled deduction.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    46
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    47
%       \infer=[<Label>]<Lower><Uppers>
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    48
%               draws a double-ruled deduction labeled with <Label>.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    49
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    50
%       \deduce<Lower><Uppers>
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    51
%               draws an inference without a rule.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    52
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    53
%       \deduce[<Proof>]<Lower><Uppers>
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    54
%               draws a many step deduction with a proof name.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    55
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    56
%       Example:
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    57
%               If you want to write
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    58
%                           B C
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    59
%                          -----
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    60
%                      A     D
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    61
%                     ----------
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    62
%                         E
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    63
%       use
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    64
%               \infer{E}{
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    65
%                       A
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    66
%                       &
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    67
%                       \infer{D}{B & C}
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    68
%               }
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    69
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    70
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    71
%       Style Parameters
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    72
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    73
\newdimen\inferLineSkip         \inferLineSkip=2pt
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    74
\newdimen\inferLabelSkip        \inferLabelSkip=5pt
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    75
\def\inferTabSkip{\quad}
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    76
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    77
%       Variables
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    78
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    79
\newdimen\@LeftOffset   % global
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    80
\newdimen\@RightOffset  % global
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    81
\newdimen\@SavedLeftOffset      % safe from users
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    82
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    83
\newdimen\UpperWidth
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    84
\newdimen\LowerWidth
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    85
\newdimen\LowerHeight
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    86
\newdimen\UpperLeftOffset
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    87
\newdimen\UpperRightOffset
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    88
\newdimen\UpperCenter
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    89
\newdimen\LowerCenter
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    90
\newdimen\UpperAdjust
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    91
\newdimen\RuleAdjust
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    92
\newdimen\LowerAdjust
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    93
\newdimen\RuleWidth
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    94
\newdimen\HLabelAdjust
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    95
\newdimen\VLabelAdjust
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    96
\newdimen\WidthAdjust
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    97
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    98
\newbox\@UpperPart
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
    99
\newbox\@LowerPart
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   100
\newbox\@LabelPart
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   101
\newbox\ResultBox
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   102
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   103
%       Flags
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   104
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   105
\newif\if@inferRule     % whether \@infer draws a rule.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   106
\newif\if@DoubleRule    % whether \@infer draws doulbe rules.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   107
\newif\if@ReturnLeftOffset      % whether \@infer returns \@LeftOffset.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   108
\newif\if@MathSaved     % whether inner math mode where \infer or
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   109
                        % \deduce appears.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   110
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   111
%       Special Fonts
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   112
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   113
\def\DeduceSym{\vtop{\baselineskip4\p@ \lineskiplimit\z@
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   114
    \vbox{\hbox{.}\hbox{.}\hbox{.}}\hbox{.}}}
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   115
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   116
%       Math Save Macros
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   117
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   118
%       \@SaveMath is called in the very begining of toplevel macros
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   119
%       which are \infer and \deduce.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   120
%       \@RestoreMath is called in the very last before toplevel macros end.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   121
%       Remark \infer and \deduce ends calling \@infer.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   122
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   123
\def\@SaveMath{\@MathSavedfalse \ifmmode \ifinner
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   124
        \relax $\relax \@MathSavedtrue \fi\fi }
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   125
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   126
\def\@RestoreMath{\if@MathSaved \relax $\relax\fi }
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   127
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   128
%       Macros
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   129
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   130
\def\@Ifnextchar#1#2#3{\let\@tempe=#1\def\@tempa{#2}\def\@tempb{#3}\futurelet
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   131
    \@tempc\@ifnch}
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   132
        % It can compare an = character, though the one in latex.tex cannot.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   133
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   134
\def\@ifEmpty#1#2#3{\def\@tempa{\@empty}\def\@tempb{#1}\relax
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   135
        \ifx \@tempa \@tempb #2\else #3\fi }
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   136
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   137
\def\infer{\@SaveMath \@Ifnextchar *{\@inferSteps}{\relax
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   138
        \@Ifnextchar ={\@inferDoubleRule}{\@inferOneStep}}}
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   139
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   140
\def\@inferOneStep{\@inferRuletrue \@DoubleRulefalse
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   141
        \@Ifnextchar [{\@infer}{\@infer[\@empty]}}
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   142
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   143
\def\@inferDoubleRule={\@inferRuletrue \@DoubleRuletrue
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   144
        \@Ifnextchar [{\@infer}{\@infer[\@empty]}}
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   145
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   146
\def\@inferSteps*{\@Ifnextchar [{\@@inferSteps}{\@@inferSteps[\@empty]}}
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   147
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   148
\def\@@inferSteps[#1]{\@deduce{#1}[\DeduceSym]}
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   149
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   150
\def\deduce{\@SaveMath \@Ifnextchar [{\@deduce{\@empty}}
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   151
        {\@inferRulefalse \@infer[\@empty]}}
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   152
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   153
%       \@deduce<Proof Label>[<Proof>]<Lower><Uppers>
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   154
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   155
\def\@deduce#1[#2]#3#4{\@inferRulefalse
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   156
        \@infer[\@empty]{#3}{\@SaveMath \@infer[{#1}]{#2}{#4}}}
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   157
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   158
%       \@infer[<Label>]<Lower><Uppers>
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   159
%               If \@inferRuletrue, it draws a rule and <Label> is right to
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   160
%               a rule. In this case, if \@DoubleRuletrue, it draws
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   161
%               double rules.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   162
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   163
%               Otherwise, draws no rule and <Label> is right to <Lower>.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   164
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   165
\def\@infer[#1]#2#3{\relax
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   166
% Get parameters
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   167
        \if@ReturnLeftOffset \else \@SavedLeftOffset=\@LeftOffset \fi
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   168
        \setbox\@LabelPart=\hbox{$#1$}\relax
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   169
        \setbox\@LowerPart=\hbox{$#2$}\relax
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   170
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   171
        \global\@LeftOffset=0pt
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   172
        \setbox\@UpperPart=\vbox{\tabskip=0pt \halign{\relax
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   173
                \global\@RightOffset=0pt \@ReturnLeftOffsettrue $##$&&
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   174
                \inferTabSkip
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   175
                \global\@RightOffset=0pt \@ReturnLeftOffsetfalse $##$\cr
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   176
                #3\cr}}\relax
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   177
%                       Here is a little trick.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   178
%                       \@ReturnLeftOffsettrue(false) influences on \infer or
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   179
%                       \deduce placed in ## locally
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   180
%                       because of \@SaveMath and \@RestoreMath.
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   181
        \UpperLeftOffset=\@LeftOffset
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   182
        \UpperRightOffset=\@RightOffset
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   183
% Calculate Adjustments
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   184
        \LowerWidth=\wd\@LowerPart
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   185
        \LowerHeight=\ht\@LowerPart
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   186
        \LowerCenter=0.5\LowerWidth
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   187
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   188
        \UpperWidth=\wd\@UpperPart \advance\UpperWidth by -\UpperLeftOffset
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   189
        \advance\UpperWidth by -\UpperRightOffset
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   190
        \UpperCenter=\UpperLeftOffset
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   191
        \advance\UpperCenter by 0.5\UpperWidth
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   192
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   193
        \ifdim \UpperWidth > \LowerWidth
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   194
                % \UpperCenter > \LowerCenter
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   195
        \UpperAdjust=0pt
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   196
        \RuleAdjust=\UpperLeftOffset
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   197
        \LowerAdjust=\UpperCenter \advance\LowerAdjust by -\LowerCenter
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   198
        \RuleWidth=\UpperWidth
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   199
        \global\@LeftOffset=\LowerAdjust
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   200
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   201
        \else   % \UpperWidth <= \LowerWidth
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   202
        \ifdim \UpperCenter > \LowerCenter
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   203
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   204
        \UpperAdjust=0pt
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   205
        \RuleAdjust=\UpperCenter \advance\RuleAdjust by -\LowerCenter
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   206
        \LowerAdjust=\RuleAdjust
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   207
        \RuleWidth=\LowerWidth
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   208
        \global\@LeftOffset=\LowerAdjust
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   209
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   210
        \else   % \UpperWidth <= \LowerWidth
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   211
                % \UpperCenter <= \LowerCenter
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   212
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   213
        \UpperAdjust=\LowerCenter \advance\UpperAdjust by -\UpperCenter
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   214
        \RuleAdjust=0pt
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   215
        \LowerAdjust=0pt
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   216
        \RuleWidth=\LowerWidth
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   217
        \global\@LeftOffset=0pt
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   218
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   219
        \fi\fi
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   220
% Make a box
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   221
        \if@inferRule
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   222
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   223
        \setbox\ResultBox=\vbox{
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   224
                \moveright \UpperAdjust \box\@UpperPart
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   225
                \nointerlineskip \kern\inferLineSkip
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   226
                \if@DoubleRule
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   227
                \moveright \RuleAdjust \vbox{\hrule width\RuleWidth
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   228
                        \kern 1pt\hrule width\RuleWidth}\relax
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   229
                \else
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   230
                \moveright \RuleAdjust \vbox{\hrule width\RuleWidth}\relax
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   231
                \fi
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   232
                \nointerlineskip \kern\inferLineSkip
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   233
                \moveright \LowerAdjust \box\@LowerPart }\relax
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   234
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   235
        \@ifEmpty{#1}{}{\relax
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   236
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   237
        \HLabelAdjust=\wd\ResultBox     \advance\HLabelAdjust by -\RuleAdjust
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   238
        \advance\HLabelAdjust by -\RuleWidth
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   239
        \WidthAdjust=\HLabelAdjust
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   240
        \advance\WidthAdjust by -\inferLabelSkip
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   241
        \advance\WidthAdjust by -\wd\@LabelPart
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   242
        \ifdim \WidthAdjust < 0pt \WidthAdjust=0pt \fi
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   243
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   244
        \VLabelAdjust=\dp\@LabelPart
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   245
        \advance\VLabelAdjust by -\ht\@LabelPart
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   246
        \VLabelAdjust=0.5\VLabelAdjust  \advance\VLabelAdjust by \LowerHeight
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   247
        \advance\VLabelAdjust by \inferLineSkip
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   248
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   249
        \setbox\ResultBox=\hbox{\box\ResultBox
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   250
                \kern -\HLabelAdjust \kern\inferLabelSkip
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   251
                \raise\VLabelAdjust \box\@LabelPart \kern\WidthAdjust}\relax
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   252
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   253
        }\relax % end @ifEmpty
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   254
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   255
        \else % \@inferRulefalse
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   256
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   257
        \setbox\ResultBox=\vbox{
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   258
                \moveright \UpperAdjust \box\@UpperPart
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   259
                \nointerlineskip \kern\inferLineSkip
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   260
                \moveright \LowerAdjust \hbox{\unhbox\@LowerPart
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   261
                        \@ifEmpty{#1}{}{\relax
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   262
                        \kern\inferLabelSkip \unhbox\@LabelPart}}}\relax
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   263
        \fi
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   264
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   265
        \global\@RightOffset=\wd\ResultBox
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   266
        \global\advance\@RightOffset by -\@LeftOffset
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   267
        \global\advance\@RightOffset by -\LowerWidth
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   268
        \if@ReturnLeftOffset \else \global\@LeftOffset=\@SavedLeftOffset \fi
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   269
%
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   270
        \box\ResultBox
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   271
        \@RestoreMath
230b9b4b783e Version of the proof macros for LaTeX 2.09
paulson
parents:
diff changeset
   272
}