Debian Codegraph @

texmf-dist/doc/latex/turnstile/turnstile_article.tex

raw
1 \documentclass{pracjourn}
2
3 %\usepackage{amsmath}
4 \usepackage{turnstile}
5
6 \TPJrevision{2007}{08}{18}
7 \TPJissue{2007}{3}
8
9 \title{A Tool for Logicians}
10
11 \author{Arthur Buchsbaum and Francisco Reinaldo}
12 \email{[email protected], [email protected]}
13
14 \abstract{\textsf{turnstile} is a \LaTeX{} package that allows typesetting of the mathematical logic symbol, ``turnstile'', in all of the various ways it is used. This package was developed because there was no easy way in \LaTeX{} to typeset this symbol in its various forms, and place expressions above and below the crossbar.}
15
16 \bibliographystyle{plain}
17
18 \begin{document}
19
20 \maketitle
21
22 \section{Introduction}
23
24 Logic is a science whose initial motivation was the analysis of correct reasoning. In recent years it has advanced beyond of the study of reasoning, and has many intersections with research areas such as Mathematics, Philosophy, Computer Science, Linguistics, Physics and Artificial Intelligence. One of the main signs used in Logic is the~turnstile sign, from which there are versions such as ``$\,\vdash$'' and ``$\,\models$'', issued respectively by the \LaTeX\ commands \begin{verb}=\vdash=\end{verb} and \begin{verb}=\models=\end{verb}
25
26 \section{The turnstile Project} % (fold)
27 \label{sec:turnstile_project}
28
29 The turnstile\footnote{\url{http://tug.ctan.org/tex-archive/macros/latex/contrib/turnstile}} is a sign often used by logicians for denoting a consequence relation, related to a given logic, between a collection of formulas and a formula. Many logicians have complained that there is no easy method in \LaTeX\ to typeset turnstile signs. They occur in many forms, and must be able to have expressions placed correctly above and below them. \LaTeX\ commands such as \begin{verb}=\vdash=\end{verb} and \begin{verb}=\models=\end{verb} typeset the turnstile sign, but they are not capable of placing data below or above them in an acceptable way. For example, sometimes it is necessary to place the name of a considered logical system below the turnstile sign, and sometimes it is necessary to put additional information above it.
30
31 \vspace{0.2em}
32
33 If we want to say that a formula $P$ is a logical consequence of a collection $\Gamma$ of~formulas in a logic $\mathrm{L}$, we could try to typeset it by \begin{verbatim}\Gamma \vdash_\mathrm{L} P,\end{verbatim} giving $\Gamma \vdash_\mathrm{L} P$.
34
35 \medskip
36
37 Note that ``$\mathrm{L}$'' was not placed correctly with respect to the turnstile sign; it~should be placed and centred exactly below the sign. With \texttt{turnstile.sty} we can typeset it by \begin{verbatim}\Gamma \sststile{\mathrm{L}}{} P,\end{verbatim} giving $\Gamma \sststile{\mathrm{L}}{} P$.
38
39 \medskip
40
41 On the other hand, if we want to say that a formula $P$ is a logical semantical consequence of a collection $\Gamma$ of formulas in a logic $\mathrm{L}$, through varying of $x$ and~$y$\footnote{In \cite{BuchsbaumBeziau2004} and \cite{BuchsbaumPequeno1997} varying objects are presented.}, we could try to typeset it by \begin{verbatim}\Gamma \models_\mathrm{L}^{x,y} P,\end{verbatim} giving $\Gamma \models_\mathrm{L}^{x,y} P$.
42
43 \medskip
44
45 Note that both ``$\mathrm{L}$'' and ``$x,y$'' were not placed correctly with respect to turnstile sign; they should be placed and centered exactly below and above the sign. With \texttt{turnstile.sty} we can typeset it by \begin{verbatim}\Gamma \sdtstile{\mathrm{L}}{x,y} P,\end{verbatim} giving $\Gamma \sdtstile{\mathrm{L}}{x,y} P$.
46
47 \medskip
48
49 %%% LAC: Rei - it will take a super-logician to figure out the following paragraphs ;-)
50
51 The commands provided by this style are all formed by the string ``tstile'' preceded by a string with two or three letters. These letters indicate the kind of~lines to be drawn successively; they can be ``n'', ``s'', ``d'', or ``t''. The~letter~``n'' says that the line is empty, the letter ``s'' that the line is single, the letter ``d'' that the line is double, and finally ``t'' indicates that the line is triple. The corresponding commands for the two-lettered strings provide the most common turnstile signs, in which there is not a second vertical line following the~horizontal line. The first letter of these strings indicates the kind of the vertical line and the second the kind of the horizontal line to be drawn after the vertical line. The three-lettered strings can contain any of the letters ``n'', ``s'', ``d'', and~``t'', with~the restriction that the last letter must not be ``n'', because the~case in which the third line is empty is already dealt with by the commands with two-lettered strings preceding ``tstile''. The first letter specifies the kind of the first vertical line, the~second the kind of the horizontal line, and the third letter the kind of the second vertical line.
52
53 All these commands have three arguments, and the first one is optional.
54
55 The first argument, which is optional, gives the size by which the internal expressions must be displayed: ``d'' for displayed formulas, ``t'' for text formulas, ``s'' for first subscript or superscript formulas, and ``ss'' for later subscript or superscript formulas. The default value is ``s''. The result of applying ``t'' or ``d'' is the same, except if there is a mathematical sign in the second or third argument issued in~distinct ways, depending on whether it is used in text math mode or displayed math mode.
56
57 The second and third arguments provide the expressions to be placed below and above the turnstile sign respectively, where both these expressions are converted to the size specified by the first argument. On the other hand, if the~second or the third argument is empty, then nothing is put below or above the turnstile sign.
58
59 \section{Examples} % (fold)
60 \label{sec:examples}
61
62 Some examples are shown below. For the sake of illustration, $\Gamma$ is a~given collection of formulas and $P$ is a logical formula. Of course, the signs ``$\Gamma$'' and ``$P$'' illustrate only one possible context in which the turnstile sign could appear.
63
64 \begin{verbatim}
65 \Gamma \sststile{}{} P
66 \end{verbatim}
67 \begin{equation}\Gamma \sststile{}{} P \end{equation} \vspace{0.4em}
68
69 \pagebreak
70
71 \begin{verbatim}
72 \Gamma \sststile{\mathrm{LPD}}{} P
73 \end{verbatim}
74 \begin{equation}\Gamma \sststile{\mathrm{LPD}}{} P\end{equation} \vspace{0.4em}
75
76 \begin{verbatim}
77 \Gamma \sststile{}{x,y} P
78 \end{verbatim}
79 \begin{equation}\Gamma \sststile{}{x,y} P\end{equation} \vspace{0.4em}
80
81 If the optional argument is not used, then the result is the same as if ``s'' was the optional argument:
82
83 \begin{verbatim}
84 \Gamma \sststile{\mathrm{LPD}}{x,y} P
85 \end{verbatim}
86 \begin{equation}\Gamma \sststile{\mathrm{LPD}}{x,y} P\end{equation} \vspace{0.4em}
87
88 \begin{verbatim}
89 \Gamma \sststile[d]{\mathrm{LPD}}{x,y} P
90 \end{verbatim}
91 \begin{equation}\Gamma \sststile[t]{\mathrm{LPD}}{x,y} P\end{equation} \vspace{0.4em}
92
93 \begin{verbatim}
94 \Gamma \sststile[t]{\mathrm{LPD}}{x,y} P
95 \end{verbatim}
96 \begin{equation}\Gamma \sststile[d]{\mathrm{LPD}}{x,y} P\end{equation} \vspace{0.4em}
97
98 \begin{verbatim}
99 \Gamma \sststile[s]{\mathrm{LPD}}{x,y} P
100 \end{verbatim}
101 \begin{equation}\Gamma \sststile[s]{\mathrm{LPD}}{x,y} P\end{equation} \vspace{0.4em}
102
103 \pagebreak
104
105 \begin{verbatim}
106 \Gamma \sststile[ss]{\mathrm{LPD}}{x,y} P
107 \end{verbatim}
108 \begin{equation}\Gamma \sststile[ss]{\mathrm{LPD}}{x,y} P\end{equation} \vspace{0.4em}
109
110 \begin{verbatim}
111 \Gamma \sststile{\mathrm{LPDEFGH}}{x,y} P
112 \end{verbatim}
113 \begin{equation}\Gamma \sststile{\mathrm{LPDEFGH}}{x,y} P\end{equation} \vspace{0.4em}
114
115 \begin{verbatim}
116 \Gamma \sststile{\mathrm{LC}}{x,y,z,w} P
117 \end{verbatim}
118 \begin{equation}\Gamma \sststile{\mathrm{LC}}{x,y,z,w} P\end{equation} \vspace{0.4em}
119
120 \begin{verbatim}
121 \Gamma \sdtstile{\mathrm{LC}}{x,y,z,w} P
122 \end{verbatim}
123 \begin{equation}\Gamma \sdtstile{\mathrm{LC}}{x,y,z,w} P\end{equation} \vspace{0.4em}
124
125 \begin{verbatim}
126 \Gamma \dststile{\mathrm{LC}}{x,y,z,w} P
127 \end{verbatim}
128 \begin{equation}\Gamma \dststile{\mathrm{LC}}{x,y,z,w} P\end{equation} \vspace{0.4em}
129
130 \begin{verbatim}
131 \Gamma \ddtstile{\mathrm{LC}}{x,y,z,w} P
132 \end{verbatim}
133 \begin{equation}\Gamma \ddtstile{\mathrm{LC}}{x,y,z,w} P\end{equation} \vspace{0.4em}
134
135 \pagebreak
136
137 \begin{verbatim}
138 \Gamma \dttstile{\mathrm{LC}}{x,y,z,w} P
139 \end{verbatim}
140 \begin{equation}\Gamma \dttstile{\mathrm{LC}}{x,y,z,w} P\end{equation} \vspace{0.4em}
141
142 \begin{verbatim}
143 \Gamma \nsststile{\mathrm{LC}}{x,y,z,w} P
144 \end{verbatim}
145 \begin{equation}\Gamma \nsststile{\mathrm{LC}}{x,y,z,w} P\end{equation} \vspace{0.4em}
146
147 \begin{verbatim}
148 \Gamma \ndststile{\mathrm{LC}}{x,y,z,w} P
149 \end{verbatim}
150 \begin{equation}\Gamma \ndststile{\mathrm{LC}}{x,y,z,w} P\end{equation} \vspace{0.4em}
151
152 \begin{verbatim}
153 \Gamma \nsdtstile{\mathrm{LC}}{x,y,z,w} P
154 \end{verbatim}
155 \begin{equation} \nsdtstile{\mathrm{LC}}{x,y,z,w} P\end{equation} \vspace{0.4em}
156
157 \begin{verbatim}
158 \Gamma \nddtstile{\mathrm{LC}}{x,y,z,w} P
159 \end{verbatim}
160 \begin{equation}\Gamma \nddtstile{\mathrm{LC}}{x,y,z,w} P\end{equation} \vspace{0.4em}
161
162 \begin{verbatim}
163 \Gamma \ndttstile{\mathrm{LC}}{x,y,z,w} P
164 \end{verbatim}
165 \begin{equation}\Gamma \ndttstile{\mathrm{LC}}{x,y,z,w} P\end{equation} \vspace{0.4em}
166
167 \pagebreak
168
169 \begin{verbatim}
170 \Gamma \ssststile{\mathrm{LC}}{x,y,z,w} P
171 \end{verbatim}
172 \begin{equation}\Gamma \ssststile{\mathrm{LC}}{x,y,z,w} P\end{equation} \vspace{0.4em}
173
174
175 \begin{verbatim}
176 \Gamma \stststile{\mathrm{LC}}{x,y,z,w} P
177 \end{verbatim}
178 \begin{equation}\Gamma \stststile{\mathrm{LC}}{x,y,z,w} P\end{equation} \vspace{0.4em}
179
180 \begin{verbatim}
181 \Gamma \stttstile{\mathrm{LC}}{x,y,z,w} P
182 \end{verbatim}
183 \begin{equation}\Gamma \stttstile{\mathrm{LC}}{x,y,z,w} P\end{equation} \vspace{0.4em}
184
185 Below are some examples of mathematical expressions below and~above the turnstile sign which show how it changes depending on the optional argument. If no optional argument is given, then it is considered to be ``s''.
186
187 The reader should also note that the vertical lines don't stretch according to~the~heights of the expressions located below and above the turnstile sign. Because logicians use this sign mainly in text mode, we feel that it should have a standard height.
188
189 \begin{verbatim}
190 \Gamma \sststile{\sum_0^\infty 1/2^n}{\int_a^b f} P
191 \end{verbatim}
192 \begin{equation}\Gamma \sststile{\sum_0^\infty 1/2^n}{\int_a^b f} P\end{equation} \vspace{0.4em}
193
194 \begin{verbatim}
195 \Gamma \sststile[d]{\sum_0^\infty 1/2^n}{\int_a^b f} P
196 \end{verbatim}
197 \begin{equation}\Gamma \sststile[d]{\sum_0^\infty 1/2^n}{\int_a^b f} P\end{equation} \vspace{0.4em}
198
199 \begin{verbatim}
200 \Gamma \sststile[t]{\sum_0^\infty 1/2^n}{\int_a^b f} P
201 \end{verbatim}
202 \begin{equation}\Gamma \sststile[t]{\sum_0^\infty 1/2^n}{\int_a^b f} P\end{equation} \vspace{0.4em}
203
204 \begin{verbatim}
205 \Gamma \sststile[s]{\sum_0^\infty 1/2^n}{\int_a^b f} P
206 \end{verbatim}
207 \begin{equation}\Gamma \sststile[s]{\sum_0^\infty 1/2^n}{\int_a^b f} P\end{equation} \vspace{0.4em}
208
209 \begin{verbatim}
210 \Gamma \sststile[ss]{\sum_0^\infty 1/2^n}{\int_a^b f} P
211 \end{verbatim}
212 \begin{equation}\Gamma \sststile[ss]{\sum_0^\infty 1/2^n}{\int_a^b f} P\end{equation} \vspace{0.4em}
213
214 \section{Conclusions} % (fold)
215 \label{sec:conclusions}
216
217 The package \texttt{turnstile.sty} seems to be adequate for typesetting the turnstile sign in~its many forms. It correctly places additional expressions below and above it, if necessary, and stretches the the crossbar width as much as needed to contain the expressions.
218
219 For a future version of this package, we want to look at changing the height of the turnstile sign. This will take into account the heights of the~expressions above and below, similar to the way we currently allow for the widths of the expressions.
220
221 \begin{thebibliography}{1}
222
223 \bibitem{BuchsbaumBeziau2004}
224 Arthur Buchsbaum and Jean-Yves B{\'e}ziau.
225 \newblock Introduction of implication and~generalization in axiomatic calculi.
226 \newblock In Jean-Yves B{\'e}ziau, Alexandre~Costa Leite, and Alberto Facchini,
227 editors, {\em Aspects of Universal Logic}, number~17 in~Travaux de Logique,
228 page 231. Centre de Recherches S{\'e}miologiques, \mbox{Universit{\'e}} de
229 Neuch{\^a}tel, December 2004.
230
231 \bibitem{BuchsbaumPequeno1997}
232 Arthur Buchsbaum and Tarcisio Pequeno.
233 \newblock A general treatment for the deduction theorem in open calculi.
234 \newblock {\em Logique et Analyse}, 157:9--29, January--March 1997.
235
236 \bibitem{KopkaDaly1999}
237 Helmut Kopka and Patrick~W. Daly.
238 \newblock {\em A Guide to \LaTeX}.
239 \newblock Addison-Wesley, 1999.
240
241 \bibitem{Lamport1994}
242 Leslie Lamport.
243 \newblock {\em \LaTeX\ -- A Document Preparation System -- User's Guide and Reference Manual}.
244 \newblock Addison-Wesley, 1994.
245
246 \bibitem{NerodeShore1997}
247 Anil Nerode and Richard~A. Shore.
248 \newblock {\em Logic for Applications}.
249 \newblock Springer, 1997.
250
251 \bibitem{Nolt1996}
252 John Nolt.
253 \newblock {\em Logics}.
254 \newblock Wadsworth, 1996.
255
256 \end{thebibliography}
257
258 \end{document}