1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
|
% proofeg.tex (An example file for proof.sty)
%
% Mar 6, 1997
% Makoto Tatsuta
%
% I hope you can learn how to use proof figure macros easily
% by these examples.
\def\imp{\to}
\def\land{\mathbin\&}
\documentstyle[proof]{article}
% for LaTeX 2e naitive mode.
%\documentclass[]{article}
%\usepackage{proof}
\begin{document}
\section*{Examples of proof.sty}
\verb|\infer| draws beautiful proof figures easily:
\noindent (1)
$$
\infer{A}{
\infer{B}{
B11\land B12\land B13
&
B21\land B22\land B23
}
&
C
}
$$
\noindent (2)
$$
\infer{A1\land A2\land A3\land A4\land A5\land A6}{
\infer{B}{
B11\land B12\land B13
&
B21\land B22\land B23
}
&
C
}
$$
\noindent (3)
$$
\infer{A1\land A2\land A3\land A4\land A5\land A6}{
C
&
\infer{B}{
B11\land B12\land B13
&
B21\land B22\land B23
}
}
$$
You can use also some variations:
\noindent (4)
$$
\infer[(1)]{A}{
\infer*{B}{
B11\land B12\land B13
&
B21\land B22\land B23
}
&
C
}
$$
\noindent (5)
$$
\infer*[(1)]{A1\land A2\land A3\land A4\land A5\land A6}{
\deduce[{\displaystyle \sum}]{B}{
B11\land B12\land B13
&
B21\land B22\land B23
}
&
\deduce{C}{(2)}
}
$$
\noindent (6)
$$
\infer={A}{A \land B \land C}
$$
Here are more practical examples:
\noindent (7)
$$
\infer[(\land I)]{A \land B}{A & B}
\qquad
\infer[(\land E_l)]A{A\land B}
\qquad
\infer[(\land E_r)]B{A\land B}
$$
$$
\infer[(\imp I)]{A \imp B}{
\infer*{B}{[A]}
}
\qquad
\infer[(\imp E)]{B}{
A \imp B
&
A
}
$$
Some techniques:
Use \verb|\vcenter| for an equation of proofs.
\noindent (8)
$$
\pi = \vcenter{
\infer{E}{
A
&
\infer{D}{B & C}
}
}
$$
Use \verb|\kern| to adjust the form of a proof.
\noindent (9)
$$
\infer{E}{
A
&
\infer{D}{B & C} \kern 0.5cm
}
$$
\end{document}
|