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